message.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package model
  2. import (
  3. xtime "go-common/library/time"
  4. )
  5. const (
  6. // RouteReplyReport report
  7. RouteReplyReport = "report_add"
  8. )
  9. // Reply param struct
  10. type Reply struct {
  11. Action string `json:"action"`
  12. MID int64 `json:"mid"`
  13. Subject *ReplySubject `json:"subject"`
  14. Reply *ReplyMain `json:"reply"`
  15. Report *ReplyReport `json:"report"`
  16. }
  17. // ReplySubject param struct
  18. type ReplySubject struct {
  19. OID int64 `json:"oid"`
  20. Type int8 `json:"type"`
  21. MID int64 `json:"mid"`
  22. State int8 `json:"state"`
  23. CTime xtime.Time `json:"ctime"`
  24. }
  25. // ReplyMain param struct
  26. type ReplyMain struct {
  27. RPID int64 `json:"rpid"`
  28. OID int64 `json:"oid"`
  29. Type int8 `json:"type"`
  30. MID int64 `json:"mid"`
  31. Root int64 `json:"root"`
  32. Parent int64 `json:"parent"`
  33. Floor int32 `json:"floor"`
  34. Count int32 `json:"count"`
  35. Rcount int32 `json:"rcount"`
  36. Like int64 `json:"like"`
  37. Hate int64 `json:"hate"`
  38. State int8 `json:"state"`
  39. Content *struct {
  40. Message string `json:"message"`
  41. } `json:"content"`
  42. CTime xtime.Time `json:"ctime"`
  43. }
  44. // ReplyReport param struct
  45. type ReplyReport struct {
  46. ID int64 `json:"id"`
  47. OID int64 `json:"oid"`
  48. Type int8 `json:"type"`
  49. RPID int64 `json:"rpid"`
  50. MID int64 `json:"mid"`
  51. Reason int8 `json:"reason"`
  52. Content string `json:"content"`
  53. State int8 `json:"state"`
  54. Score int `json:"score"`
  55. Count int `json:"count"`
  56. CTime xtime.Time `json:"ctime"`
  57. }
  58. // LabourAnswer param struct
  59. type LabourAnswer struct {
  60. MID int64 `json:"mid"`
  61. MTime xtime.Time `json:"mtime"`
  62. }