playurl.go 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package model
  2. // PlayURLReq is used for getting ugc play url param from app
  3. type PlayURLReq struct {
  4. Platform string `form:"platform" validate:"required"`
  5. Device string `form:"device"`
  6. Expire string `form:"expire"`
  7. Cid string `form:"cid" validate:"required"`
  8. Avid int64 `form:"avid" validate:"required"`
  9. Build string `form:"build"`
  10. Qn string `form:"qn"`
  11. Mid string `form:"mid"`
  12. Npcybs string `form:"npcybs"`
  13. Buvid string `form:"buvid"`
  14. TrackPath string `form:"track_path"`
  15. AccessKey string `form:"access_key"`
  16. }
  17. //PlayURLResp is used for return ugc play url result
  18. type PlayURLResp struct {
  19. Code int `json:"code"`
  20. Result string `json:"result"`
  21. Message string `json:"message"`
  22. From string `json:"from"`
  23. Quality int `json:"quality"`
  24. Format string `json:"format"`
  25. Timelength int `json:"timelength"`
  26. AcceptFormat string `json:"accept_format"`
  27. AcceptDescription []string `json:"accept_description"`
  28. AcceptQuality []int `json:"accept_quality"`
  29. AcceptWatermark []bool `json:"accept_watermark"`
  30. VideoCodecid int `json:"video_codecid"`
  31. VideoProject bool `json:"video_project"`
  32. SeekParam string `json:"seek_param"`
  33. SeekType string `json:"seek_type"`
  34. Durl []struct {
  35. Order int `json:"order"`
  36. Length int `json:"length"`
  37. Size int `json:"size"`
  38. Ahead string `json:"ahead"`
  39. Vhead string `json:"vhead"`
  40. URL string `json:"url"`
  41. } `json:"durl"`
  42. }