types.go 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. // Code generated by goctl. DO NOT EDIT.
  2. package types
  3. type MessageDeleteReq struct {
  4. Id string `form:"id"`
  5. AppId string `form:"appId"`
  6. }
  7. type Response struct {
  8. Code int64 `json:"code"`
  9. Message string `json:"message"`
  10. }
  11. type MessageDetailReq struct {
  12. Id int64 `form:"id"`
  13. }
  14. type MessageDetailResp struct {
  15. Code int64 `json:"code"`
  16. Message string `json:"message"`
  17. Data map[string]interface{} `json:"data"`
  18. }
  19. type MessageGetLastReq struct {
  20. UserId string `form:"userId"`
  21. AppId string `form:"appId"`
  22. MsgType int64 `form:"msgType"`
  23. }
  24. type MessageGetLastRes struct {
  25. Code int64 `json:"code"`
  26. Message string `json:"message"`
  27. Data map[string]interface{} `json:"data"`
  28. Status int64 `json:"isOk"`
  29. }
  30. type MessageFindReq struct {
  31. UserId string `form:"userId"`
  32. AppId string `form:"appId"`
  33. ReceiveUserId string `form:"receiveUserId"`
  34. MsgType int64 `form:"msgType"` // 是否限制消息类型 -1 不限制
  35. IsRead int64 `form:"isRead"` // 是否限制未读 -1 不限制
  36. Offset int64 `form:"offset"` // 页数
  37. PageSize int64 `form:"pageSize"` //
  38. }
  39. type MessageFindRes struct {
  40. Code int64 `json:"code"`
  41. Message string `json:"message"`
  42. Status int64 `json:"isOk"`
  43. Data []map[string]interface{} `json:"data"`
  44. Total int64 `json:"total"`
  45. }
  46. type MessageUnreadClassCountReq struct {
  47. UserId string `form:"userId"`
  48. AppId string `form:"appId"`
  49. }
  50. type MessageUnreadClassCountRes struct {
  51. Code int64 `json:"code"`
  52. Status int64 `json:"isOk"`
  53. Message string `json:"message"`
  54. Data []map[string]interface{} `json:"data"`
  55. Info []map[string]interface{} `json:"info"`
  56. }
  57. type MessageUnreadCountReq struct {
  58. UserId string `form:"userId"`
  59. AppId string `form:"appId"`
  60. }
  61. type MessageUnreadCountRes struct {
  62. Code int64 `json:"code"`
  63. Status int64 `json:"isOk"`
  64. Message string `json:"message"`
  65. Data map[string]interface{} `json:"data"`
  66. }
  67. type MessageTypeReq struct {
  68. UserId string `form:"userId"`
  69. AppId string `form:"appId"`
  70. }
  71. type MessageTypeReqRes struct {
  72. Code int64 `json:"code"`
  73. Status int64 `json:"isOk"`
  74. Message string `json:"message"`
  75. Data []int64 `json:"data"`
  76. }
  77. type MsgReadStatusReq struct {
  78. UserId string `form:"userId"`
  79. AppId string `form:"appId"`
  80. MsgType int `form:"msgType"`
  81. }
  82. type MsgReadStatusResp struct {
  83. Code int64 `json:"code"`
  84. Message string `json:"message"`
  85. Status int64 `json:"status"`
  86. }