authbff.api 595 B

123456789101112131415161718192021222324252627282930313233343536
  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. Code int64 `json:"code"`
  17. Msg string `json:"msg"`
  18. Data interface{} `json:"data"`
  19. }
  20. @server(
  21. prefix: api/v1
  22. )
  23. service Authbff {
  24. @doc "玩家认证"
  25. @handler playerAuth
  26. post /player/auth (PlayerAuthReq) returns (AuthResp)
  27. @doc "客服认证"
  28. @handler csAuth
  29. post /cs/auth (CsAuthReq) returns (AuthResp)
  30. }