bean.api 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. PlayerFetchCsInfoReq {
  14. CsId string `json:"cs_id"`
  15. }
  16. PlayerFetchHistoryMsgReq {
  17. Page int `json:"page"`
  18. Limit int `json:"limit"`
  19. }
  20. PlayerSendMsgReq {
  21. Content string `json:"content"`
  22. Pic string `json:"pic"`
  23. }
  24. )
  25. type (
  26. CsFetchPlayerQueueReq {
  27. Limit int `json:"limit"`
  28. }
  29. CsConnectPlayerReq {
  30. PlayerId string `json:"player_id"`
  31. GameId string `json:"game_id"`
  32. }
  33. CsFetchHistoryChatReq {
  34. Page int `json:"page"`
  35. Limit int `json:"limit"`
  36. }
  37. CsFetchHistoryMsgReq {
  38. PlayerId string `json:"player_id"`
  39. GameId string `json:"game_id"`
  40. Page int `json:"page"`
  41. Limit int `json:"limit"`
  42. }
  43. CsFetchMsgReq {
  44. PlayerId string `json:"player_id"`
  45. GameId string `json:"game_id"`
  46. }
  47. CsSendMsgReq {
  48. PlayerId string `json:"player_id"`
  49. GameId string `json:"game_id"`
  50. Content string `json:"content"`
  51. Pic string `json:"pic"`
  52. }
  53. )