types.go 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 MessageDeleteResp struct {
  8. Code int64 `json:"code"`
  9. Message string `json:"message"`
  10. Status int64 `json:"isOk"`
  11. }
  12. type MessageGetLastReq struct {
  13. UserId string `form:"userId"`
  14. AppId string `form:"appId"`
  15. MsgType int64 `form:"msgType"`
  16. }
  17. type MessageGetLastRes struct {
  18. Code int64 `json:"code"`
  19. Message string `json:"message"`
  20. Data map[string]interface{} `json:"data"`
  21. Status int64 `json:"isOk"`
  22. }
  23. type MessageFindReq struct {
  24. UserId string `form:"userId"`
  25. AppId string `form:"appId"`
  26. ReceiveUserId string `form:"receiveUserId"`
  27. MsgType int64 `form:"msgType"` // 是否限制消息类型 -1 不限制
  28. IsRead int64 `form:"isRead"` // 是否限制未读 -1 不限制
  29. Offset int64 `form:"offset"` // 页数
  30. PageSize int64 `form:"pageSize"` //
  31. }
  32. type MessageFindRes struct {
  33. Code int64 `json:"code"`
  34. Message string `json:"message"`
  35. Status int64 `json:"isOk"`
  36. Data []map[string]interface{} `json:"data"`
  37. Total int64 `json:"total"`
  38. }
  39. type MessageUnreadClassCountReq struct {
  40. UserId string `form:"userId"`
  41. AppId string `form:"appId"`
  42. }
  43. type MessageUnreadClassCountRes struct {
  44. Code int64 `json:"code"`
  45. Status int64 `json:"isOk"`
  46. Message string `json:"message"`
  47. Data []map[string]interface{} `json:"data"`
  48. Info []map[string]interface{} `json:"info"`
  49. }
  50. type MessageUnreadCountReq struct {
  51. UserId string `form:"userId"`
  52. AppId string `form:"appId"`
  53. }
  54. type MessageUnreadCountRes struct {
  55. Code int64 `json:"code"`
  56. Status int64 `json:"isOk"`
  57. Message string `json:"message"`
  58. Data map[string]interface{} `json:"data"`
  59. }
  60. type MessageTypeReq struct {
  61. UserId string `form:"userId"`
  62. AppId string `form:"appId"`
  63. }
  64. type MessageTypeReqRes struct {
  65. Code int64 `json:"code"`
  66. Status int64 `json:"isOk"`
  67. Message string `json:"message"`
  68. Data []int64 `json:"data"`
  69. }