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) }