urgent_task_conf.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. type CreateAndUpdateUrgentTaskConf struct {
  12. Id int `json:"id"`
  13. TaskId int `json:"task_id"` //任务id
  14. PcCode []string `json:"pc_code"` //电脑编号
  15. CreateDate string `json:"create_date"` //创建日期
  16. CreateTime typeManage.LocalTime `json:"create_time"`
  17. UpdateTime typeManage.LocalTime `json:"update_time"`
  18. }
  19. //紧急任务请求
  20. type UrgentTaskConfRequest struct {
  21. Id int `json:"id"`
  22. TaskId int `json:"task_id"` //任务id
  23. Date []string `json:"date"`
  24. PcCode string `json:"pc_code"` //电脑编号
  25. CreateDate string `json:"create_date"` //创建日期
  26. CreateTime typeManage.LocalTime `json:"create_time"`
  27. UpdateTime typeManage.LocalTime `json:"update_time"`
  28. }
  29. type UnusedPc struct {
  30. PcCode string `json:"pc_code"`
  31. }
  32. func (UrgentTaskConf) TableName() string {
  33. return "urgent_task_conf"
  34. }