authbff.api 593 B

12345678910111213141516171819202122232425262728293031323334
  1. syntax = "v1"
  2. info(
  3. title: "api前端服务"
  4. desc: "api前端服务 "
  5. author: "#Suyghur"
  6. version: "v1"
  7. )
  8. type PlayerAuthReq {
  9. PlayerId string `json:"player_id"`
  10. GameId string `json:"game_id"`
  11. }
  12. type CsAuthReq {
  13. CsId string `json:"cs_id"`
  14. }
  15. type AuthResp {
  16. AccessToken string `json:"access_token"`
  17. }
  18. @server(
  19. prefix: api/v1/auth
  20. )
  21. service authbff {
  22. @doc "玩家登录"
  23. @handler playerLogin
  24. post /player-login (PlayerAuthReq) returns (AuthResp)
  25. @doc "客服登录"
  26. @handler csLogin
  27. post /cs-login (CsAuthReq) returns (AuthResp)
  28. }