bean.api 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. syntax = "v1"
  2. info(
  3. title: "用户操作实例"
  4. desc: "用户操作实例"
  5. author: "#Suyghur"
  6. )
  7. type (
  8. PlayerFetchCsInfoReq {
  9. CsId string `json:"cs_id"`
  10. }
  11. PlayerFetchCsInfoResp {
  12. CsId string `json:"cs_id"`
  13. CsNickname string `json:"cs_nickname"`
  14. CsAvatarUrl string `json:"cs_avatar_url"`
  15. CsSignature string `json:"cs_signature"`
  16. OnlineStatus int64 `json:"online_status"`
  17. }
  18. PlayerFetchHistoryMsgReq {
  19. Page int64 `json:"page"`
  20. Limit int64 `json:"limit"`
  21. }
  22. PlayerFetchHistoryMsgResp {
  23. TotalPage int64 `json:"total_page"`
  24. CurrentPage int64 `json:"current_page"`
  25. List []interface{} `json:"list"`
  26. }
  27. PlayerFetchMsgResp {
  28. List []interface{} `json:"list"`
  29. }
  30. PlayerSendMsgReq {
  31. Content string `json:"content"`
  32. Pic string `json:"pic"`
  33. }
  34. )
  35. type (
  36. CsFetchPlayerQueueReq {
  37. Limit int `json:"limit"`
  38. }
  39. CsFetchPlayerQueueResp {
  40. List []interface{} `json:"list"`
  41. }
  42. CsConnectPlayerReq {
  43. PlayerId string `json:"player_id"`
  44. GameId string `json:"game_id"`
  45. }
  46. CsFetchHistoryChatReq {
  47. Page int `json:"page"`
  48. Limit int `json:"limit"`
  49. }
  50. CsFetchHistoryChatResp {
  51. TotalPage int64 `json:"total_page"`
  52. CurrentPage int64 `json:"current_page"`
  53. List []interface{} `json:"list"`
  54. }
  55. CsFetchHistoryMsgReq {
  56. PlayerId string `json:"player_id"`
  57. GameId string `json:"game_id"`
  58. Page int `json:"page"`
  59. Limit int `json:"limit"`
  60. }
  61. CsFetchHistoryMsgResp {
  62. TotalPage int64 `json:"total_page"`
  63. CurrentPage int64 `json:"current_page"`
  64. List []interface{} `json:"list"`
  65. }
  66. CsFetchMsgReq {
  67. PlayerId string `json:"player_id"`
  68. GameId string `json:"game_id"`
  69. }
  70. CsFetchMsgResp {
  71. List []interface{} `json:"list"`
  72. }
  73. CsSendMsgReq {
  74. PlayerId string `json:"player_id"`
  75. GameId string `json:"game_id"`
  76. Content string `json:"content"`
  77. Pic string `json:"pic"`
  78. }
  79. )