task.go 3.0 KB

12345678910111213141516171819202122232425262728293031
  1. package datamodel
  2. import "time"
  3. type Task struct {
  4. OcId int64 `json:"ocId" xorm:"'oc_id' bigint comment('OC ID') " `
  5. TaskId int64 `json:"taskId" xorm:"'task_id' bigint pk comment('主键ID') " `
  6. TaskCode string `json:"taskCode" xorm:"'task_code' varchar(127) comment('TASK编码') " `
  7. TaskTitle string `json:"taskTitle" xorm:"'task_title' varchar(127) comment('TASK类型名称') " `
  8. TaskDesc string `json:"taskDesc" xorm:"'task_desc' varchar(127) comment('描述') " `
  9. TaskCatId int64 `json:"taskCatId" xorm:"'task_cat_id' bigint comment('类别ID') " `
  10. TaskTypeId int64 `json:"taskTypeId" xorm:"'task_type_id' bigint comment('类别ID') " `
  11. ExpectedStartTime string `json:"expectedStartTime" xorm:"'expected_start_time' datetime comment('TASK类型名称') " `
  12. ExpectedEndTime string `json:"expectedEndTime" xorm:"'expected_end_time' datetime comment('TASK类型名称') " `
  13. ActualStartTime string `json:"actualStartTime" xorm:"'actual_start_time' datetime comment('实际开始时间') " `
  14. ActualEndTime string `json:"actualEndTime" xorm:"'actual_end_time' datetime comment('实际结束时间') " `
  15. TaskPriority int64 `json:"taskPriority" xorm:"'task_priority' bigint comment('优先级') " `
  16. TaskUrgency int64 `json:"taskUrgency" xorm:"'task_urgency' bigint comment('紧急程序') " `
  17. Status int64 `json:"status" xorm:"'status' bigint comment('状态') " `
  18. TaskLevel int64 `json:"taskLevel" xorm:"'task_level' bigint comment('任务级别') " `
  19. ParentId int64 `json:"parentId" xorm:"'parent_id' bigint comment('父任务') " `
  20. TaskOrigin int64 `json:"taskOrigin" xorm:"'task_origin' bigint comment('任务来源') " `
  21. CreatedBy int64 `json:"createdBy" xorm:"'created_by' " `
  22. CreatedAt time.Time `json:"createdAt" xorm:"'created_at' " `
  23. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by' " `
  24. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at' " `
  25. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'" `
  26. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by' " `
  27. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at' " `
  28. }