channel.go 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package model
  2. import (
  3. v1 "go-common/app/service/main/archive/api"
  4. xtime "go-common/library/time"
  5. )
  6. // Channel channel struct
  7. type Channel struct {
  8. Cid int64 `json:"cid"`
  9. Mid int64 `json:"mid"`
  10. Name string `json:"name"`
  11. Intro string `json:"intro"`
  12. Mtime xtime.Time `json:"mtime"`
  13. Count int `json:"count"`
  14. Cover string `json:"cover"`
  15. }
  16. // ChannelExtra channel extra fields
  17. type ChannelExtra struct {
  18. Aid int64
  19. Cid int64
  20. Count int
  21. Cover string
  22. }
  23. // ChannelDetail channel detail info
  24. type ChannelDetail struct {
  25. *Channel
  26. Archives []*v1.Arc `json:"archives"`
  27. }
  28. // ChannelArc channel video struct
  29. type ChannelArc struct {
  30. ID int64 `json:"id"`
  31. Mid int64 `json:"mid"`
  32. Cid int64 `json:"cid"`
  33. Aid int64 `json:"aid"`
  34. OrderNum int `json:"order_num"`
  35. Mtime xtime.Time `json:"mtime"`
  36. }
  37. // ChannelArcSort channel archive sort struct
  38. type ChannelArcSort struct {
  39. Aid int64 `json:"aid"`
  40. OrderNum int `json:"order_num"`
  41. }