log_ip.go 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. Ip string `json:"ip"` //模拟器ip
  25. PcCode string `json:"pc_code"` //电脑编号
  26. GameId int `json:"game_id"` //游戏id
  27. CreateDate string `json:"create_date"` // 创建日期
  28. CountTotal int `json:"count_total"` //总数
  29. CountDistinctIp int `json:"count_distinct_ip"`
  30. }
  31. type QueryIpList struct {
  32. Ip string `json:"ip"` //模拟器ip
  33. }
  34. func (IpLog) TableName() string {
  35. return "ip_log"
  36. }