log_ip.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package log
  2. type IpLog struct {
  3. Id uint `json:"id"`
  4. Ip string `json:"ip"` //模拟器ip
  5. LogUuid string `json:"log_uuid"` //日志UUID
  6. GameId int `json:"game_id"` //游戏id
  7. Account string `json:"account"` //账号
  8. PcCode string `json:"pc_code"` //电脑编号
  9. CreateDate string `json:"create_date"` // 创建日期
  10. CreateTime string `json:"create_time"` // 创建时间
  11. }
  12. type IpLogRequest struct {
  13. Id uint `json:"id"`
  14. Ip string `json:"ip"` //模拟器ip
  15. Date []string `json:"date"`
  16. LogUuid string `json:"log_uuid"` //日志UUID
  17. GameId int `json:"game_id"` //游戏id
  18. Account string `json:"account"` //账号
  19. PcCode string `json:"pc_code"` //电脑编号
  20. CreateDate string `json:"create_date"` // 创建日期
  21. CreateTime string `json:"create_time"` // 创建时间
  22. }
  23. type IpLogResponse struct {
  24. PcCode string `json:"pc_code"` //电脑编号
  25. GameId int `json:"game_id"` //游戏id
  26. CreateDate string `json:"create_date"` // 创建日期
  27. CountTotal int `json:"count_total"` //ip总上报次数
  28. CountDistinctIp int `json:"count_distinct_ip"` //IP个数
  29. }
  30. type GameIpResponse struct {
  31. GameId int `json:"game_id"` //游戏id
  32. CreateDate string `json:"create_date"` // 创建日期
  33. CountTotal int `json:"count_total"` //ip总上报次数
  34. SuccessIp int `json:"success_ip"` //进入游戏所上报ip个数
  35. CountDistinctIp int `json:"count_distinct_ip"` //ip个数
  36. TaskCount int `json:"task_count"` //完成任务总数
  37. }
  38. type QueryIpList struct {
  39. Ip string `json:"ip"` //模拟器ip
  40. Count int `json:"count"`
  41. }
  42. func (IpLog) TableName() string {
  43. return "ip_log"
  44. }