task_qa.go 607 B

123456789101112131415161718192021222324252627282930313233
  1. package model
  2. import "time"
  3. //qa task state & type & log business/type.
  4. const (
  5. QAStateWait = int16(1)
  6. QAStateFinish = int16(2)
  7. QATypeVideo = int8(1)
  8. LogQATask = 111
  9. LogQATaskVideo = 1
  10. )
  11. //QAStates states.
  12. var (
  13. QAStates = map[int16]string{
  14. QAStateWait: "待质检",
  15. QAStateFinish: "已质检",
  16. }
  17. )
  18. //QATask qatask
  19. type QATask struct {
  20. ID int64 `json:"id"`
  21. State int16 `json:"state"`
  22. Type int8 `json:"type"`
  23. DetailID int64 `json:"detail_id"`
  24. UID int64 `json:"uid"`
  25. FTime time.Time `json:"ftime"`
  26. CTime time.Time `json:"ctime"`
  27. }