jury.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package model
  2. import xtime "go-common/library/time"
  3. // Notice struct
  4. type Notice struct {
  5. ID int64 `json:"id"`
  6. Content string `json:"content"`
  7. URL string `json:"url"`
  8. }
  9. // Reason struct
  10. type Reason struct {
  11. ID int64 `json:"id"`
  12. Reason string `json:"reason"`
  13. Content string `json:"content"`
  14. }
  15. // KPI is jury kpi info.
  16. type KPI struct {
  17. ID int64 `json:"id"`
  18. Mid int64 `json:"mid"`
  19. Number int64 `json:"number"`
  20. Day xtime.Time `json:"day"`
  21. Rate int64 `json:"rate"`
  22. Rank int64 `json:"rank"`
  23. RankPer int64 `json:"rankper"`
  24. RankTotal int64 `json:"rankTotal"`
  25. Point int64 `json:"point"`
  26. ActiveDays int64 `json:"activeDays"`
  27. VoteTotal int64 `json:"voteTotal"`
  28. VoteRadio int64 `json:"voteRadio"`
  29. BlockedTotal int64 `json:"blockedTotal"`
  30. TermStart xtime.Time `json:"termStart"`
  31. TermEnd xtime.Time `json:"termEnd"`
  32. OpinionLikes int64 `json:"opinion_likes"`
  33. }
  34. //KPIData is jury kpi data info.
  35. type KPIData struct {
  36. KPI
  37. VoteRealTotal int64 `json:"vote_real_total"`
  38. }
  39. // Opinion jury vote opinion.
  40. type Opinion struct {
  41. // user info.
  42. Mid int64 `json:"mid,omitempty"`
  43. Face string `json:"face,omitempty"`
  44. Name string `json:"name,omitempty"`
  45. OpID int64 `json:"opid"`
  46. Vote int8 `json:"vote"`
  47. Content string `json:"content"`
  48. Attr int8 `json:"attr"`
  49. Hate int64 `json:"hate"`
  50. Like int64 `json:"like"`
  51. }
  52. // OpinionRes get opinion response.
  53. type OpinionRes struct {
  54. Count int `json:"count"`
  55. Opinion []*Opinion `json:"opinion"`
  56. }
  57. // SimCase struct
  58. type SimCase struct {
  59. ID int64 `json:"id"`
  60. Mid int64 `json:"mid"`
  61. VoteRule int64 `json:"vote_rule"`
  62. VoteBreak int64 `json:"vote_break"`
  63. VoteDelete int64 `json:"vote_delete"`
  64. CaseType int8 `json:"case_type"`
  65. Stime xtime.Time `json:"start_time"`
  66. Etime xtime.Time `json:"end_time"`
  67. }