user_country_count.go 1018 B

12345678910111213141516171819202122
  1. package entity
  2. type UserCountryResp struct {
  3. Details []*UserCountryDetail `json:"details"`
  4. Total int64 `json:"total"`
  5. }
  6. type UserCountryDetail struct {
  7. Country string `json:"country"` // 国家
  8. IPCount int `json:"ip_count"` // IP数量
  9. Percentage float64 `json:"percentage"` // 百分比
  10. }
  11. type UserCountryReq struct {
  12. }
  13. type PlayerCountryStat struct {
  14. Daily int64 `bson:"daily" json:"daily"` // 日期
  15. Platform string `bson:"platform" json:"platform"` // platform: 用户所在的平台,例如“Android”或“IOS”
  16. Channel string `bson:"channel" json:"channel"` // channel: 用户来源渠道
  17. PlayerRegisterCountry map[string]int `bson:"playerRegisterCountry" json:"playerRegisterCountry"` // playerRegisterCountry 玩家注册国家
  18. UpdateTime int64 `bson:"updateTime" json:"updateTime"`
  19. }