authbff.api 582 B

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