feat: add toolbox query, upload module, update config and gitignore

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Mrx
2026-05-21 17:29:35 +08:00
parent 0a0ca7bf9b
commit 144d5507dd
22 changed files with 11184 additions and 8 deletions

View File

@@ -0,0 +1,29 @@
syntax = "v1"
info (
title: "工具箱服务"
desc: "免费工具箱(天行聚合等)"
version: "v1"
)
//============================> toolbox v1 <============================
@server (
prefix: api/v1
group: toolbox
)
service main {
@doc "工具箱统一查询"
@handler toolboxQuery
post /toolbox/query (ToolboxQueryReq) returns (ToolboxQueryResp)
}
type (
ToolboxQueryReq {
ToolKey string `json:"tool_key"`
Params map[string]interface{} `json:"params,optional"`
}
ToolboxQueryResp {
ToolKey string `json:"tool_key"`
Result map[string]interface{} `json:"result"`
}
)