30 lines
635 B
Plaintext
30 lines
635 B
Plaintext
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"`
|
|
}
|
|
)
|