archive.go 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. package archive
  2. import (
  3. "go-common/library/time"
  4. )
  5. // Archive is archive model.
  6. type Archive struct {
  7. Aid int64 `json:"aid"`
  8. Mid int64 `json:"mid"`
  9. TypeID int16 `json:"tid"`
  10. HumanRank int `json:"-"`
  11. Title string `json:"title"`
  12. Author string `json:"-"`
  13. Cover string `json:"cover"`
  14. RejectReason string `json:"reject_reason"`
  15. Tag string `json:"tag"`
  16. Duration int64 `json:"duration"`
  17. Copyright int8 `json:"copyright"`
  18. Desc string `json:"desc"`
  19. MissionID int64 `json:"mission_id"`
  20. Round int8 `json:"-"`
  21. Forward int64 `json:"-"`
  22. Attribute int32 `json:"attribute"`
  23. Access int16 `json:"-"`
  24. State int8 `json:"state"`
  25. Source string `json:"source"`
  26. NoReprint int32 `json:"no_reprint"`
  27. OrderID int64 `json:"order_id"`
  28. Dynamic string `json:"dynamic"`
  29. DTime time.Time `json:"dtime"`
  30. PTime time.Time `json:"ptime"`
  31. CTime time.Time `json:"ctime"`
  32. MTime time.Time `json:"-"`
  33. Tnames []string `json:"tid_names"`
  34. }
  35. // Addit is archive addit info
  36. type Addit struct {
  37. Aid int64 `json:"aid"`
  38. MissionID int64 `json:"mission_id"`
  39. UpFrom int8 `json:"up_from"`
  40. FromIP int64 `json:"from_ip"`
  41. Source string `json:"source"`
  42. OrderID int64 `json:"order_id"`
  43. RecheckReason string `json:"recheck_reason"`
  44. RedirectURL string `json:"redirect_url"`
  45. FlowID int64 `json:"flow_id"`
  46. Advertiser string `json:"advertiser"`
  47. DescFormatID int64 `json:"desc_format_id"`
  48. Dynamic string `json:"dynamic"`
  49. InnerAttr int64 `json:"inner_attr"`
  50. }
  51. // Delay is archive delay info
  52. type Delay struct {
  53. Aid int64
  54. Mid int64
  55. State int16
  56. DTime time.Time
  57. }
  58. // Type is archive type info
  59. type Type struct {
  60. ID int16 `json:"id"`
  61. PID int16 `json:"pid"`
  62. Name string `json:"name"`
  63. Desc string `json:"description"`
  64. }
  65. //ChannelInfo channel info
  66. type ChannelInfo struct {
  67. CheckBack int32 `json:"check_back"`
  68. Channels []*Channel `json:"channels"`
  69. }
  70. //Channel channe & tag hit rule
  71. type Channel struct {
  72. TID int64 `json:"tid"` //频道id
  73. Tname string `json:"tname"` //频道名称
  74. HitRules []string `json:"hit_rules"` //命中的频道规则
  75. HitTagNames []string `json:"hit_tnames"` //命中频道的所有tag名称
  76. }