task_info.go 707 B

1234567891011121314151617181920212223242526272829303132333435
  1. package upcrmmodel
  2. import "go-common/library/time"
  3. const (
  4. //TaskStateStart 0
  5. TaskStateStart = 0
  6. //TaskStateFinish 1
  7. TaskStateFinish = 1
  8. //TaskStateError 2
  9. TaskStateError = 2
  10. )
  11. const (
  12. //TaskTypeCreditDaily 1
  13. TaskTypeCreditDaily = 1
  14. //TaskTypeScoreSectionDaily 2
  15. TaskTypeScoreSectionDaily = 2
  16. //TaskTypeSignTaskCalculate 3
  17. TaskTypeSignTaskCalculate = 3
  18. //TaskTypeSignCheckDue 4
  19. TaskTypeSignCheckDue = 4
  20. )
  21. //TaskInfo struct
  22. type TaskInfo struct {
  23. ID uint32 `gorm:"column:id"`
  24. GenerateDate string
  25. TaskType int8
  26. StartTime time.Time
  27. EndTime time.Time
  28. TaskState int16
  29. CTime time.Time `gorm:"column:ctime"`
  30. MTime time.Time `gorm:"column:mtime"`
  31. }