others.go 846 B

123456789101112131415161718192021222324252627282930313233
  1. package model
  2. import "go-common/library/time"
  3. // Channel defines the structure of the channel & splash data
  4. type Channel struct {
  5. ID int
  6. Title string
  7. Desc string
  8. Splash string
  9. Deleted int
  10. Ctime time.Time
  11. Mtime time.Time
  12. }
  13. //ReqTransode is the request structure for the transcode api
  14. type ReqTransode struct {
  15. ContType string `form:"cont_type" validate:"required"` // content type: pgc/ugc
  16. CID int64 `form:"cid" validate:"required"`
  17. Action int64 `form:"action" validate:"min=0,max=2"` // 1 = finished, others = failed
  18. }
  19. // Hotword item def.
  20. type Hotword struct {
  21. Keyword string `json:"keyword"`
  22. Status string `json:"status"`
  23. }
  24. // ReqApply is request for apply time storage
  25. type ReqApply struct {
  26. CID int64 `form:"cid" validate:"required"`
  27. ApplyTime int64 `form:"apply_time" validate:"required"`
  28. }