go-common/app/admin/main/up/model/upcrmmodel/task_info.go
2019-04-22 18:49:16 +08:00

36 lines
707 B
Go

package upcrmmodel
import "go-common/library/time"
const (
//TaskStateStart 0
TaskStateStart = 0
//TaskStateFinish 1
TaskStateFinish = 1
//TaskStateError 2
TaskStateError = 2
)
const (
//TaskTypeCreditDaily 1
TaskTypeCreditDaily = 1
//TaskTypeScoreSectionDaily 2
TaskTypeScoreSectionDaily = 2
//TaskTypeSignTaskCalculate 3
TaskTypeSignTaskCalculate = 3
//TaskTypeSignCheckDue 4
TaskTypeSignCheckDue = 4
)
//TaskInfo struct
type TaskInfo struct {
ID uint32 `gorm:"column:id"`
GenerateDate string
TaskType int8
StartTime time.Time
EndTime time.Time
TaskState int16
CTime time.Time `gorm:"column:ctime"`
MTime time.Time `gorm:"column:mtime"`
}