central_control_conf.go 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package task
  2. import "log-server/model/typeManage"
  3. type CentralControlConf struct {
  4. Id int `json:"id"`
  5. Mirror string `json:"mirror"` //镜像
  6. Script string `json:"script"` //脚本
  7. CloneMode int `json:"clone_mode"` //克隆模式
  8. SimulatorType int `json:"simulator_type"` //模拟器类型
  9. Resolution string `json:"resolution"` //分辨率
  10. Zoom string `json:"zoom"` //缩放
  11. Timeout int `json:"timeout"` //超时时间
  12. Cpu int `json:"cpu"` //cpu
  13. MemorySize int `json:"memory_size"` //内存
  14. TaskId int `json:"task_id"` //任务id
  15. GameId int `json:"game_id"` //游戏id
  16. Priority string `json:"priority"` //优先级
  17. GameType int `json:"game_type"` //任务类型
  18. TxChannel string `json:"tx_channel"` //'腾讯渠道号',
  19. TxGameId string `json:"tx_game_id"` //'腾讯游戏id',
  20. MzChannel string `json:"mz_channel"` //'魅族渠道号',
  21. MzGameId string `json:"mz_game_id"` //'魅族游戏id',
  22. PayPrice int `json:"pay_price"` //'付费单价',
  23. CreateTime typeManage.LocalTime `json:"create_time"`
  24. UpdateTime typeManage.LocalTime `json:"update_time"`
  25. }
  26. type CentralControlTaskConf struct {
  27. Id int `json:"id"`
  28. TaskName string `json:"task_name"` //任务名称
  29. Mirror string `json:"mirror"` //镜像
  30. Script string `json:"script"` //脚本
  31. CloneMode int `json:"clone_mode"` //克隆模式
  32. SimulatorType int `json:"simulator_type"` //模拟器类型
  33. Resolution string `json:"resolution"` //分辨率
  34. Zoom string `json:"zoom"` //缩放
  35. Timeout int `json:"timeout"` //超时时间
  36. Cpu int `json:"cpu"` //cpu
  37. MemorySize int `json:"memory_size"` //内存
  38. TaskId int `json:"task_id"` //任务id
  39. GameId int `json:"game_id"` //游戏id
  40. Priority string `json:"priority"` //优先级
  41. GameType int `json:"game_type"` //任务类型
  42. TxChannel string `json:"tx_channel"` //'腾讯渠道号',
  43. TxGameId string `json:"tx_game_id"` //'腾讯游戏id',
  44. MzChannel string `json:"mz_channel"` //'魅族渠道号',
  45. MzGameId string `json:"mz_game_id"` //'魅族游戏id',
  46. PayPrice int `json:"pay_price"` //'付费单价',
  47. CreateTime typeManage.LocalTime `json:"create_time"`
  48. UpdateTime typeManage.LocalTime `json:"update_time"`
  49. }
  50. func (CentralControlConf) TableName() string {
  51. return "central_control_conf"
  52. }