bean.api 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. syntax = "v1"
  2. info(
  3. title: "用户操作实例"
  4. desc: "用户操作实例"
  5. author: "#Suyghur"
  6. )
  7. type CommResp {
  8. Code int64 `json:"code"`
  9. Msg string `json:"msg"`
  10. Data interface{} `json:"data"`
  11. }
  12. type (
  13. PlayerAuthReq {
  14. PlayerId string `json:"player_id"`
  15. GameId string `json:"game_id"`
  16. }
  17. PlayerFetchCsInfoReq {
  18. CsId string `json:"cs_id"`
  19. }
  20. PlayerFetchHistoryMsgReq {
  21. Page int `json:"page"`
  22. Limit int `json:"limit"`
  23. }
  24. PlayerSendMsgReq {
  25. Content string `json:"content"`
  26. Pic string `json:"pic"`
  27. }
  28. )
  29. type (
  30. CsAuthReq {
  31. Uname string `json:"uname"`
  32. Password string `json:"password"`
  33. }
  34. CsFetchPlayerInfoReq {
  35. PlayerId string `json:"palyer_id"`
  36. GameId string `json:"game_id"`
  37. }
  38. CsFetchPlayerQueueReq {
  39. Limit int `json:"limit"`
  40. }
  41. CsConnectPlayerReq {
  42. PlayerId string `json:"player_id"`
  43. GameId string `json:"game_id"`
  44. }
  45. CsFetchHistoryChatReq {
  46. Page int `json:"page"`
  47. Limit int `json:"limit"`
  48. }
  49. CsFetchHistoryMsgReq {
  50. PlayerId string `json:"player_id"`
  51. GameId string `json:"game_id"`
  52. Page int `json:"page"`
  53. Limit int `json:"limit"`
  54. }
  55. CsFetchMsgReq {
  56. PlayerId string `json:"player_id"`
  57. GameId string `json:"game_id"`
  58. }
  59. CsSendMsgReq {
  60. PlayerId string `json:"player_id"`
  61. GameId string `json:"game_id"`
  62. Content string `json:"content"`
  63. Pic string `json:"pic"`
  64. }
  65. )