up_stats_history.go 844 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package upcrmmodel
  2. import "go-common/library/time"
  3. // UpStatsHistory is table up_stats_history mapping
  4. type UpStatsHistory struct {
  5. ID uint32 `gorm:"column:id"`
  6. Type int `gorm:"column:type"`
  7. SubType int `gorm:"column:sub_type"`
  8. Value1 int64 `gorm:"column:value1"`
  9. Value2 int64 `gorm:"column:value2"`
  10. GenerateDate time.Time `gorm:"column:generate_date"`
  11. Ctime time.Time `gorm:"column:ctime"`
  12. Mtime time.Time `gorm:"column:mtime"`
  13. }
  14. const (
  15. //ActivityType 活跃Up主数量
  16. ActivityType = iota + 1
  17. //IncrType 新增
  18. IncrType
  19. //TotalType 总数
  20. TotalType
  21. )
  22. //Activity 活跃度
  23. type Activity int
  24. const (
  25. //HighActivity 1
  26. HighActivity Activity = iota + 1
  27. //MediumActivity 2
  28. MediumActivity
  29. //LowActivity 3
  30. LowActivity
  31. //LostActivity 4
  32. LostActivity
  33. )