video.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package archive
  2. import "go-common/library/time"
  3. // VideoStatus
  4. const (
  5. VideoUploadInfo = int8(0)
  6. VideoXcodeSDFail = int8(1)
  7. VideoXcodeSDFinish = int8(2)
  8. VideoXcodeHDFail = int8(3)
  9. VideoXcodeHDFinish = int8(4)
  10. VideoDispatchRunning = int8(5)
  11. VideoDispatchFinish = int8(6)
  12. VideoStatusOpen = int16(0)
  13. VideoStatusAccess = int16(10000)
  14. VideoStatusWait = int16(-1)
  15. VideoStatusRecicle = int16(-2)
  16. VideoStatusLock = int16(-4)
  17. VideoStatusXcodeFail = int16(-16)
  18. VideoStatusSubmit = int16(-30)
  19. VideoStatusDelete = int16(-100)
  20. XcodeFailZero = 0
  21. )
  22. // Video is archive_video model.
  23. type Video struct {
  24. // ID int64 `json:"-"`
  25. Aid int64 `json:"aid"`
  26. Title string `json:"title"`
  27. Desc string `json:"desc"`
  28. Filename string `json:"filename"`
  29. // SrcType string `json:"-"`
  30. // Cid int64 `json:"-"`
  31. // Duration int64 `json:"-"`
  32. // Filesize int64 `json:"-"`
  33. // Resolutions string `json:"-"`
  34. Index int `json:"index"`
  35. // Playurl string `json:"-"`
  36. Status int16 `json:"status"`
  37. StatusDesc string `json:"status_desc"`
  38. FailCode int8 `json:"fail_code"`
  39. FailDesc string `json:"fail_desc"`
  40. // XcodeState int8 `json:"-"`
  41. // Attribute int32 `json:"-"`
  42. CTime time.Time `json:"ctime"`
  43. // MTime time.Time `json:"-"`
  44. }