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