db.go 865 B

1234567891011121314151617181920212223242526272829
  1. package model
  2. import "time"
  3. // Figure user figure model
  4. type Figure struct {
  5. ID int64 `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 int64 `json:"-"`
  14. Ctime time.Time `json:"-"`
  15. Mtime time.Time `json:"-"`
  16. }
  17. // Rank rank fiigure
  18. type Rank struct {
  19. ID int64 `json:"-"`
  20. ScoreFrom int32 `json:"score_from"`
  21. ScoreTo int32 `json:"score_to"`
  22. Percentage int8 `json:"percentage"`
  23. Ver int64 `json:"ver"`
  24. Ctime time.Time `json:"-"`
  25. Mtime time.Time `json:"-"`
  26. }