model.go 802 B

123456789101112131415161718192021222324252627282930
  1. package model
  2. import "time"
  3. // Figure user figure model
  4. type Figure struct {
  5. ID int32 `json:"-"`
  6. Mid int64 `json:"mid"`
  7. Score int32 `json:"score"`
  8. LawfulScore int32 `json:"lawful_score"`
  9. WideScore int32 `json:"wide_score"`
  10. FriendlyScore int32 `json:"friendly_score"`
  11. BountyScore int32 `json:"bounty_score"`
  12. CreativityScore int32 `json:"creativity_score"`
  13. Ver int32 `json:"ver"`
  14. Ctime time.Time `json:"-"`
  15. Mtime time.Time `json:"-"`
  16. }
  17. type FigureWithRank struct {
  18. *Figure
  19. Percentage int8 `json:"percentage"`
  20. }
  21. // Rank user rank model
  22. type Rank struct {
  23. ScoreFrom int32 `json:"score_from"`
  24. ScoreTo int32 `json:"score_to"`
  25. Percentage int8 `json:"percentage"`
  26. }