central_control_conf.go 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. func (CentralControlConf) TableName() string {
  27. return "central_control_conf"
  28. }
  29. type CentralControlConfList struct {
  30. CentralControlConf
  31. User string `json:"user"`
  32. }