log_ip.go 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. //播报处理的iplog
  13. type IpLogBroadcast struct {
  14. Id uint `json:"id"`
  15. Ip string `json:"ip"` //模拟器ip
  16. User string `json:"user"` //负责人
  17. LogUuid string `json:"log_uuid"` //日志UUID
  18. GameId int `json:"game_id"` //游戏id
  19. Account string `json:"account"` //账号
  20. PcCode string `json:"pc_code"` //电脑编号
  21. CreateDate string `json:"create_date"` // 创建日期
  22. CreateTime string `json:"create_time"` // 创建时间
  23. }
  24. type IpLogRequest struct {
  25. Id uint `json:"id"`
  26. Ip string `json:"ip"` //模拟器ip
  27. Date []string `json:"date"`
  28. LogUuid string `json:"log_uuid"` //日志UUID
  29. GameId int `json:"game_id"` //游戏id
  30. Account string `json:"account"` //账号
  31. PcCode string `json:"pc_code"` //电脑编号
  32. CreateDate string `json:"create_date"` // 创建日期
  33. CreateTime string `json:"create_time"` // 创建时间
  34. }
  35. type IpLogResponse struct {
  36. PcCode string `json:"pc_code"` //电脑编号
  37. GameId int `json:"game_id"` //游戏id
  38. CreateDate string `json:"create_date"` // 创建日期
  39. CountTotal int `json:"count_total"` //ip总上报次数
  40. CountDistinctIp int `json:"count_distinct_ip"` //IP个数
  41. }
  42. type GameIpRequest struct {
  43. Id uint `json:"id"`
  44. Ip string `json:"ip"` //模拟器ip
  45. Date []string `json:"date"`
  46. User string `json:"user"` //负责人
  47. LogUuid string `json:"log_uuid"` //日志UUID
  48. GameId int `json:"game_id"` //游戏id
  49. Account string `json:"account"` //账号
  50. PcCode string `json:"pc_code"` //电脑编号
  51. CreateDate string `json:"create_date"` // 创建日期
  52. CreateTime string `json:"create_time"` // 创建时间
  53. }
  54. type GameIpResponse struct {
  55. GameId int `json:"game_id"` //游戏id
  56. User string `json:"user"` //负责人
  57. TaskName string `json:"task_name"` //游戏名
  58. CreateDate string `json:"create_date"` // 创建日期
  59. CountTotal int `json:"count_total"` //ip总上报次数
  60. SuccessIp int `json:"success_ip"` //进入游戏所上报ip个数
  61. CountDistinctIp int `json:"count_distinct_ip"` //ip个数
  62. TaskCount int `json:"task_count"` //完成任务总数
  63. MaxCount int `json:"max_count"` //最多ip的数量
  64. ExceedThree int64 `json:"exceed_three"` //超过3的ip数量
  65. IpRepetitionRate float64 `json:"ip_repetition_rate"` //ip重复率
  66. AverageIpRepetitionRate float64 `json:"average_ip_repetition_rate"` //平均重复率
  67. }
  68. type QueryIpList struct {
  69. Ip string `json:"ip"` //模拟器ip
  70. Count int `json:"count"`
  71. }
  72. type AbnormalMachineIp struct {
  73. Id uint `json:"id"`
  74. Ip string `json:"ip"` //模拟器ip
  75. Count int `json:"count"` //ip数量
  76. GameId int `json:"game_id"` //游戏id
  77. User string `json:"user"` //负责人
  78. TaskName string `json:"task_name"` //任务名称
  79. PcCode string `json:"pc_code"` //电脑编号
  80. CreateDate string `json:"create_date"` // 创建日期
  81. }
  82. type AbnormalIpLogRequest struct {
  83. Id uint `json:"id"`
  84. Ip string `json:"ip"` //模拟器ip
  85. Date []string `json:"date"`
  86. GameId int `json:"game_id"` //游戏id
  87. PcCode string `json:"pc_code"` //电脑编号
  88. CreateDate string `json:"create_date"` // 创建日期
  89. }
  90. type TodayAbnormalMachineIp struct {
  91. Id uint `json:"id"`
  92. Ip string `json:"ip"` //模拟器ip
  93. Count int `json:"count"` //ip数量
  94. GameId int `json:"game_id"` //游戏id
  95. PcCode string `json:"pc_code"` //电脑编号
  96. User string `json:"user"` //负责人名称
  97. TaskName string `json:"task_name"` //任务名称
  98. CreateDate string `json:"create_date"` // 创建日期
  99. }
  100. func (IpLog) TableName() string {
  101. return "ip_log"
  102. }
  103. func (AbnormalMachineIp) TableName() string {
  104. return "abnormal_machine_ip"
  105. }
  106. func (GameIpResponse) TableName() string {
  107. return "game_ip_list"
  108. }