types.go 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. }
  29. type MessageFindReq struct {
  30. UserId string `form:"userId"`
  31. AppId string `form:"appId"`
  32. ReceiveUserId string `form:"receiveUserId"`
  33. MsgType int64 `form:"msgType"` // 是否限制消息类型 -1 不限制
  34. IsRead int64 `form:"isRead"` // 是否限制未读 -1 不限制
  35. Offset int64 `form:"offset"` // 页数
  36. PageSize int64 `form:"pageSize"` //
  37. }
  38. type MessageFindRes struct {
  39. Code int64 `json:"code"`
  40. Message string `json:"message"`
  41. Data []map[string]interface{} `json:"data"`
  42. Total int64 `json:"total"`
  43. }
  44. type MessageUnreadClassCountReq struct {
  45. UserId string `form:"userId"`
  46. AppId string `form:"appId"`
  47. NeedMsg bool `form:"needMsg"`
  48. }
  49. type MessageUnreadClassCountRes struct {
  50. Code int64 `json:"code"`
  51. Message string `json:"message"`
  52. Data []map[string]interface{} `json:"data"`
  53. Info []map[string]interface{} `json:"info"`
  54. }
  55. type MessageUnreadCountReq struct {
  56. UserId string `form:"userId"`
  57. AppId string `form:"appId"`
  58. }
  59. type MessageUnreadCountRes struct {
  60. Code int64 `json:"code"`
  61. Message string `json:"message"`
  62. Data map[string]interface{} `json:"data"`
  63. }
  64. type MessageTypeReq struct {
  65. UserId string `form:"userId"`
  66. AppId string `form:"appId"`
  67. }
  68. type MessageTypeRes struct {
  69. Code int64 `json:"code"`
  70. Message string `json:"message"`
  71. Data []int64 `json:"data"`
  72. }
  73. type MsgReadStatusReq struct {
  74. UserId string `form:"userId"`
  75. AppId string `form:"appId"`
  76. MsgType int `form:"msgType"`
  77. }
  78. type MsgReadStatusResp struct {
  79. Code int64 `json:"code"`
  80. Message string `json:"message"`
  81. Status int64 `json:"status"`
  82. }
  83. type MarkReadReq struct {
  84. MsgId int64 `form:"msgId"`
  85. AppId string `form:"appId"`
  86. }
  87. type MarkReadRes struct {
  88. Code int64 `json:"code"`
  89. Message string `json:"message"`
  90. Data int64 `json:"data"`
  91. }