types.go 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. }
  48. type MessageUnreadClassCountRes struct {
  49. Code int64 `json:"code"`
  50. Message string `json:"message"`
  51. Data []map[string]interface{} `json:"data"`
  52. }
  53. type MessageUnreadCountReq struct {
  54. UserId string `form:"userId"`
  55. AppId string `form:"appId"`
  56. }
  57. type MessageUnreadCountRes struct {
  58. Code int64 `json:"code"`
  59. Message string `json:"message"`
  60. Data map[string]interface{} `json:"data"`
  61. }
  62. type MessageTypeReq struct {
  63. UserId string `form:"userId"`
  64. AppId string `form:"appId"`
  65. }
  66. type MessageTypeRes struct {
  67. Code int64 `json:"code"`
  68. Message string `json:"message"`
  69. Data []int64 `json:"data"`
  70. }
  71. type MsgReadStatusReq struct {
  72. UserId string `form:"userId"`
  73. AppId string `form:"appId"`
  74. MsgType int `form:"msgType"`
  75. }
  76. type MsgReadStatusResp struct {
  77. Code int64 `json:"code"`
  78. Message string `json:"message"`
  79. Status int64 `json:"status"`
  80. }
  81. type MarkReadReq struct {
  82. MsgId int64 `form:"msgId"`
  83. AppId string `form:"appId"`
  84. }
  85. type MarkReadRes struct {
  86. Code int64 `json:"code"`
  87. Message string `json:"message"`
  88. Data int64 `json:"data"`
  89. }
  90. type SendMsgReq struct {
  91. ReceiveUserId string `form:"receiveUserId"` //接收方的用户id
  92. ReceiveName string `form:"receiveName,optional"` //接收方的用户名
  93. SendUserId string `form:"sendUserId"` //发送方的用户id
  94. SendName string `form:"sendName"` //发送方的用户名
  95. Title string `form:"title"` //标题
  96. Content string `form:"content"` //内容
  97. MsgType int64 `form:"msgType"` // 消息类型
  98. Link string `form:"link,optional"` //连接
  99. CiteId int64 `form:"citeId,optional"` //应用id
  100. Appid string `form:"appid"`
  101. }
  102. type SendMsgResp struct {
  103. Code int64 `json:"code"`
  104. Message string `json:"message"`
  105. Status int64 `json:"status"`
  106. }