urgent_task_conf.go 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. package task
  2. import "log-server/model/typeManage"
  3. type UrgentTaskConf struct {
  4. Id int `json:"id"`
  5. TaskId int `json:"task_id"` //任务id
  6. PcCode string `json:"pc_code"` //电脑编号
  7. CreateDate string `json:"create_date"` //创建日期
  8. CreateTime typeManage.LocalTime `json:"create_time"`
  9. UpdateTime typeManage.LocalTime `json:"update_time"`
  10. }
  11. //紧急任务请求
  12. type UrgentTaskConfRequest struct {
  13. Id int `json:"id"`
  14. TaskId int `json:"task_id"` //任务id
  15. Date []string `json:"date"`
  16. PcCode string `json:"pc_code"` //电脑编号
  17. CreateDate string `json:"create_date"` //创建日期
  18. CreateTime typeManage.LocalTime `json:"create_time"`
  19. UpdateTime typeManage.LocalTime `json:"update_time"`
  20. }
  21. type UnusedPc struct {
  22. PcCode string `json:"pc_code"`
  23. }
  24. func (UrgentTaskConf) TableName() string {
  25. return "urgent_task_conf"
  26. }