feat: add toolbox query, upload module, update config and gitignore
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
29
app/main/api/desc/front/toolbox.api
Normal file
29
app/main/api/desc/front/toolbox.api
Normal 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"`
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user