syntax = "v1" info( title: "api前端服务" desc: "api前端服务 " author: "#Suyghur" version: "v1" ) type PlayerAuthReq { PlayerId string `json:"player_id"` GameId string `json:"game_id"` } type CsAuthReq { CsId string `json:"cs_id"` } type AuthResp { AccessToken string `json:"access_token"` } @server( prefix: api/v1/auth ) service authbff { @doc "玩家登录" @handler playerLogin post /player-login (PlayerAuthReq) returns (AuthResp) @doc "客服登录" @handler csLogin post /cs-login (CsAuthReq) returns (AuthResp) }