loging.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package request
  2. import (
  3. "log-server/model/log"
  4. )
  5. type AddLogRequest struct {
  6. SimulatorIp string `json:"simulator_ip"`
  7. SimulatorMac string `json:"simulator_mac"`
  8. PcCode string `json:"pc_code"`
  9. PcIp string `json:"pc_ip"`
  10. PcMac string `json:"pc_mac"`
  11. DeviceId string `json:"device_id"`
  12. Account string `json:"account"`
  13. GameId int `json:"game_id"`
  14. Coding int `json:"coding"`
  15. ComputerType int `json:"computer_type"`
  16. EnvCode int `json:"env_code"`
  17. LogUuid string `json:"log_uuid"`
  18. Operator string `json:"operator"`
  19. AccountType int `json:"account_type"`
  20. ReportPointsData string `json:"report_points_data"`
  21. Remarks string `json:"remarks"`
  22. TaskType int `json:"task_type"` // 新增1,活跃2
  23. ScriptType int `json:"script_type"` // 中控1,脚本2
  24. SimulatorCode string `json:"simulator_code"`
  25. DeviceManufacturer string `json:"device_manufacturer"`
  26. DeviceModel string `json:"device_model"`
  27. DeviceImei string `json:"device_imei"`
  28. DeviceSdk string `json:"device_sdk"`
  29. DeviceMac string `json:"device_mac"`
  30. DeviceNumber string `json:"device_number"`
  31. DeviceIp string `json:"device_ip"`
  32. ScriptDeviceId string `json:"script_device_id"`
  33. Err string `json:"err"` // 0或不传表示没有异常,其他表示异常,脚本端自定义
  34. SimulatorIpCity string `json:"simulator_ip_city"`
  35. }
  36. type ReportPointsData struct {
  37. Date string `json:"date"`
  38. Data string `json:"data"`
  39. }
  40. type GetLogListRequest struct {
  41. Code int `json:"code"`
  42. log.Loging
  43. PageInfo
  44. OrderKey string `json:"orderKey"` // 排序
  45. Desc bool `json:"desc"` // 排序方式:升序false(默认)|降序true
  46. }