video.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package result
  2. const (
  3. // video xcode and dispatch state.
  4. VideoUploadInfo = 0
  5. VideoXcodeSDFail = 1
  6. VideoXcodeSDFinish = 2
  7. VideoXcodeHDFail = 3
  8. VideoXcodeHDFinish = 4
  9. VideoDispatchRunning = 5
  10. VideoDispatchFinish = 6
  11. XcodeFailZero = 0
  12. // video status.
  13. VideoStatusOpen = int16(0)
  14. VideoStatusAccess = int16(10000)
  15. VideoStatusWait = int16(-1)
  16. VideoStatusRecicle = int16(-2)
  17. VideoStatusLock = int16(-4)
  18. VideoStatusXcodeFail = int16(-16)
  19. VideoStatusSubmit = int16(-30)
  20. VideoStatusDelete = int16(-100)
  21. )
  22. type VideoUpInfo struct {
  23. Table string
  24. Action string
  25. Nw *Video
  26. Old *Video
  27. }
  28. type Video struct {
  29. ID int64 `json:"id"`
  30. Filename string `json:"filename"`
  31. Cid int64 `json:"cid"`
  32. Aid int64 `json:"aid"`
  33. Title string `json:"eptitle"`
  34. Desc string `json:"description"`
  35. SrcType string `json:"src_type"`
  36. Duration int64 `json:"duration"`
  37. Filesize int64 `json:"filesize"`
  38. Resolutions string `json:"resolutions"`
  39. Playurl string `json:"playurl"`
  40. FailCode int8 `json:"failinfo"`
  41. Index int `json:"index_order"`
  42. Attribute int32 `json:"attribute"`
  43. XcodeState int8 `json:"xcode_state"`
  44. Status int16 `json:"status"`
  45. CTime string `json:"ctime"`
  46. MTime string `json:"mtime"`
  47. }