computer_task.go 1.0 KB

12345678910111213141516171819202122232425262728
  1. package newCentralControl
  2. import "log-server/model/typeManage"
  3. type ComputerTask struct {
  4. Id int `json:"id"`
  5. PcCode string `json:"pc_code"` //租机编号
  6. TaskId int `json:"task_id"` //任务id
  7. ConfId int `json:"conf_id"` //游戏配置id
  8. TaskName string `json:"task_name"` //任务名称
  9. ConfName string `json:"conf_name"` //配置名称
  10. Status int `json:"status"` //status:-1停止 ,1运行
  11. CreateTime typeManage.LocalTime `json:"create_time"`
  12. UpdateTime typeManage.LocalTime `json:"update_time"`
  13. }
  14. type GameConfInfo struct {
  15. TaskId int `json:"task_id"` //任务id
  16. ConfId int `json:"conf_id"` //游戏配置id
  17. TaskName string `json:"task_name"` //任务名称
  18. ConfName string `json:"conf_name"` //配置名称
  19. }
  20. func (ComputerTask) TableName() string {
  21. return "computer_task"
  22. }