add: some user api and all api desc

This commit is contained in:
wwweww
2026-02-27 19:17:01 +08:00
parent a0c720eb2f
commit 5930fb0dde
156 changed files with 9457 additions and 1086 deletions
+30
View File
@@ -0,0 +1,30 @@
syntax = "v1"
import "common.api"
type (
Game {
Id string `json:"id"`
Name string `json:"name"`
Icon string `json:"icon"`
Category string `json:"category"`
}
GameListResp {
Items []Game `json:"items"`
Meta PageMeta `json:"meta"`
}
)
@server(
prefix: api/v1/games
group: game
)
service juwan-api {
@doc "获取游戏列表"
@handler ListGames
get / (PageReq) returns (GameListResp)
@doc "获取游戏详情"
@handler GetGame
get /:id (EmptyResp) returns (Game)
}