archive.go 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. package model
  2. // resource archive const
  3. const (
  4. // StateOpen 开放浏览
  5. StateOpen = int8(0)
  6. // StateOrange 橙色通过
  7. StateOrange = int8(1)
  8. // StateForbidWait 待审
  9. StateForbidWait = int8(-1)
  10. // StateForbidRecycle 被打回
  11. StateForbidRecycle = int8(-2)
  12. // StateForbidPolice 网警锁定
  13. StateForbidPolice = int8(-3)
  14. // StateForbidLock 被锁定
  15. StateForbidLock = int8(-4)
  16. // StateForbidFackLock 管理员锁定(可浏览)
  17. StateForbidFackLock = int8(-5)
  18. // StateForbidFixed 修复待审
  19. StateForbidFixed = int8(-6)
  20. // StateForbidLater 暂缓审核
  21. StateForbidLater = int8(-7)
  22. // StateForbidPatched 补档待审
  23. StateForbidPatched = int8(-8)
  24. // StateForbidWaitXcode 等待转码
  25. StateForbidWaitXcode = int8(-9)
  26. // StateForbidAdminDelay 延迟审核
  27. StateForbidAdminDelay = int8(-10)
  28. // StateForbidFixing 视频源待修
  29. StateForbidFixing = int8(-11)
  30. // StateForbidStorageFail 转储失败
  31. StateForbidStorageFail = int8(-12)
  32. // StateForbidOnlyComment 允许评论待审
  33. StateForbidOnlyComment = int8(-13)
  34. // StateForbidTmpRecicle 临时回收站
  35. StateForbidTmpRecicle = int8(-14)
  36. // StateForbidDispatch 分发中
  37. StateForbidDispatch = int8(-15)
  38. // StateForbidXcodeFail 转码失败
  39. StateForbidXcodeFail = int8(-16)
  40. // StateForbitUpLoad 创建未提交
  41. StateForbitUpLoad = int8(-20) // NOTE:spell body can judge to change state
  42. // StateForbidSubmit 创建已提交
  43. StateForbidSubmit = int8(-30)
  44. // StateForbidUserDelay 定时发布
  45. StateForbidUserDelay = int8(-40)
  46. // StateForbidUpDelete 用户删除
  47. StateForbidUpDelete = int8(-100)
  48. // resource apply
  49. ApplyFirstAudit = 0 // 待一审
  50. ApplySecondAudit = 1 // 待二审
  51. ApplyNoAssignment = 2 // 未投放
  52. ApplyAssignment = 3 // 已投放
  53. ApplyReject = -1 // 已驳回
  54. ApplyRecall = -2 // 已撤回
  55. )
  56. // Archive archive struct
  57. type Archive struct {
  58. ID int64 `json:"id"`
  59. Mid int64 `json:"mid"`
  60. TypeID int16 `json:"typeid"`
  61. HumanRank int `json:"humanrank"`
  62. Duration int `json:"duration"`
  63. Title string `json:"title"`
  64. Cover string `json:"cover"`
  65. Content string `json:"content"`
  66. Tag string `json:"tag"`
  67. Attribute int32 `json:"attribute"`
  68. Copyright int8 `json:"copyright"`
  69. AreaLimit int8 `json:"arealimit"`
  70. State int8 `json:"state"`
  71. Author string `json:"author"`
  72. Access int `json:"access"`
  73. Forward int `json:"forward"`
  74. PubTime string `json:"pubtime"`
  75. Reason string `json:"reject_reason"`
  76. Round int8 `json:"round"`
  77. CTime string `json:"ctime"`
  78. MTime string `json:"mtime"`
  79. }