user_country_count.go 973 B

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