add updatequery

This commit is contained in:
2025-04-16 19:43:46 +08:00
parent 68804850c7
commit 04fe5f8ac0
6 changed files with 130 additions and 0 deletions

View File

@@ -65,5 +65,10 @@ service main {
service main {
@handler querySingleTest
post /query/single/test (QuerySingleTestReq) returns (QuerySingleTestResp)
@doc "更新查询数据"
@handler updateQueryData
post /query/update_data (UpdateQueryDataReq) returns (UpdateQueryDataResp)
}

View File

@@ -113,3 +113,13 @@ type QuerySingleTestResp {
Api string `json:"api"`
}
type (
UpdateQueryDataReq {
Id int64 `json:"id"` // 查询ID
QueryData string `json:"query_data"` // 查询数据(未加密的JSON)
}
UpdateQueryDataResp {
Id int64 `json:"id"`
UpdatedAt string `json:"updated_at"` // 更新时间
}
)