types.go 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. Info []map[string]interface{} `json:"info"`
  53. }
  54. type MessageUnreadCountReq struct {
  55. UserId string `form:"userId"`
  56. AppId string `form:"appId"`
  57. }
  58. type MessageUnreadCountRes struct {
  59. Code int64 `json:"code"`
  60. Message string `json:"message"`
  61. Data map[string]interface{} `json:"data"`
  62. }
  63. type MessageTypeReq struct {
  64. UserId string `form:"userId"`
  65. AppId string `form:"appId"`
  66. }
  67. type MessageTypeRes struct {
  68. Code int64 `json:"code"`
  69. Message string `json:"message"`
  70. Data []int64 `json:"data"`
  71. }
  72. type MsgReadStatusReq struct {
  73. UserId string `form:"userId"`
  74. AppId string `form:"appId"`
  75. MsgType int `form:"msgType"`
  76. }
  77. type MsgReadStatusResp struct {
  78. Code int64 `json:"code"`
  79. Message string `json:"message"`
  80. Status int64 `json:"status"`
  81. }
  82. type MarkReadReq struct {
  83. MsgId int64 `form:"msgId"`
  84. AppId string `form:"appId"`
  85. }
  86. type MarkReadRes struct {
  87. Code int64 `json:"code"`
  88. Message string `json:"message"`
  89. Data int64 `json:"data"`
  90. }