pgc.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package pgc
  2. import (
  3. "go-common/library/time"
  4. )
  5. // TVEpContent reprensents the content table
  6. type TVEpContent struct {
  7. ID int64
  8. SeasonID int64
  9. CID int64
  10. Title string
  11. LongTitle string
  12. Cover string
  13. Length int32
  14. IsDeleted int8
  15. Order int
  16. Ctime time.Time
  17. Mtime time.Time
  18. PayStatus int
  19. }
  20. // TVEpSeason represents the season table
  21. type TVEpSeason struct {
  22. ID int64
  23. OriginName string
  24. Title string
  25. Alias string
  26. Category int8
  27. Desc string
  28. Style string
  29. Area string
  30. PlayTime time.Time
  31. Info int8
  32. State int8
  33. TotalNum int32
  34. Upinfo string
  35. Staff string
  36. Role string
  37. Copyright string
  38. IsDeleted int8
  39. Ctime time.Time
  40. Mtime time.Time
  41. Check int8
  42. AuditTime int
  43. Cover string
  44. Valid int `json:"valid"`
  45. Producer string `json:"producer"`
  46. Version string `json:"version"`
  47. Status int
  48. }
  49. // Offset used for mysql offset
  50. type Offset struct {
  51. Begin int
  52. End int
  53. }
  54. // TableName gives the table name of content
  55. func (*TVEpContent) TableName() string {
  56. return "tv_ep_content"
  57. }
  58. // TableName gives the table name of season
  59. func (*TVEpSeason) TableName() string {
  60. return "tv_ep_season"
  61. }