folder.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package favorite
  2. import "go-common/app/service/main/archive/api"
  3. type Folder struct {
  4. MediaID int64 `json:"media_id"`
  5. Fid int `json:"fid"`
  6. Mid int `json:"mid"`
  7. Name string `json:"name"`
  8. MaxCount int `json:"max_count"`
  9. CurCount int `json:"cur_count"`
  10. AttenCount int `json:"atten_count"`
  11. State int `json:"state"`
  12. CTime int `json:"ctime"`
  13. MTime int `json:"mtime"`
  14. Cover []Cover `json:"cover,omitempty"`
  15. Videos []Cover `json:"videos,omitempty"` // NOTE: old favourite
  16. }
  17. type Cover struct {
  18. Aid int `json:"aid"`
  19. Pic string `json:"pic"`
  20. Type int32 `json:"type"`
  21. }
  22. type Video struct {
  23. Seid string `json:"seid"`
  24. Page int `json:"page"`
  25. Pagesize int `json:"pagesize"`
  26. PageCount int `json:"pagecount"`
  27. Total int `json:"total"`
  28. SuggestKeyword string `json:"suggest_keyword"`
  29. Mid int64 `json:"mid"`
  30. Fid int64 `json:"fid"`
  31. Tid int `json:"tid"`
  32. Order string `json:"order"`
  33. Keyword string `json:"keyword"`
  34. Tlist []struct {
  35. Tid int16 `json:"tid"`
  36. Name string `json:"name"`
  37. Count int `json:"count"`
  38. } `json:"tlist,omitempty"`
  39. Archives []*Archive `json:"archives"`
  40. }
  41. type Archive struct {
  42. *api.Arc
  43. FavAt int64 `json:"fav_at"`
  44. PlayNum string `json:"play_num"`
  45. HighlightTitle string `json:"highlight_title"`
  46. }