recommend.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package model
  2. import xtime "go-common/library/time"
  3. // MCNUPRecommendSource .
  4. type MCNUPRecommendSource int8
  5. // const .
  6. const (
  7. // MCNUPRecommendSourceUnKnown 未知来源
  8. MCNUPRecommendSourceUnKnown MCNUPRecommendSource = iota
  9. // MCNUPRecommendSourceAuto 自动添加(大数据)
  10. MCNUPRecommendSourceAuto
  11. // MCNUPRecommendStateManual 手动添加
  12. MCNUPRecommendStateManual
  13. )
  14. // MCNUPRecommendState .
  15. type MCNUPRecommendState int8
  16. // const .
  17. const (
  18. // MCNUPRecommendStateUnKnown 未知状态
  19. MCNUPRecommendStateUnKnown MCNUPRecommendState = 0
  20. // MCNUPRecommendStateOff 未推荐
  21. MCNUPRecommendStateOff MCNUPRecommendState = 1
  22. // MCNUPRecommendStateOn 推荐中
  23. MCNUPRecommendStateOn MCNUPRecommendState = 2
  24. // MCNUPRecommendStateBan 禁止推荐
  25. MCNUPRecommendStateBan MCNUPRecommendState = 3
  26. // MCNUPRecommendStateDel 移除中
  27. MCNUPRecommendStateDel MCNUPRecommendState = 100
  28. )
  29. // McnUpRecommendPool .
  30. type McnUpRecommendPool struct {
  31. ID int64 `json:"id"`
  32. UpMid int64 `json:"up_mid"`
  33. UpName string `json:"up_name"`
  34. FansCount int64 `json:"fans_count"`
  35. FansCountIncreaseMonth int64 `json:"fans_count_increase_month"`
  36. ArchiveCount int64 `json:"archive_count"`
  37. PlayCountAccumulate int64 `json:"play_count_accumulate"`
  38. PlayCountAverage int64 `json:"play_count_average"`
  39. ActiveTid int16 `json:"active_tid"`
  40. LastArchiveTime xtime.Time `json:"last_archive_time"`
  41. State MCNUPRecommendState `json:"state"`
  42. Source MCNUPRecommendSource `json:"source"`
  43. GenerateTime xtime.Time `json:"generate_time"`
  44. Ctime xtime.Time `json:"ctime"`
  45. Mtime xtime.Time `json:"mtime"`
  46. }