user_log_daily.go 1.9 KB

1234567891011121314151617181920212223242526272829303132
  1. package entity
  2. type UserLogDailyResp struct {
  3. Details []*UserLogDailyDetail `json:"details"`
  4. Total int64 `json:"total"`
  5. }
  6. type UserLogDailyDetail struct {
  7. Platform string `bson:"platform" json:"platform"` // platform: 用户所在的平台,例如“Android”或“IOS”
  8. Channel string `bson:"channel" json:"channel"` // channel: 用户来源渠道
  9. Registered int `bson:"registered" json:"registered"` // registered: 新用户注册的数量
  10. LoggedIn int `bson:"logged_in" json:"logged_in"` // logged_in: 登陆产品的用户数量
  11. NewLogin int `bson:"new_login" json:"new_login"` // new_login: 登陆产品的新注册用户数量
  12. OldLogin int `bson:"old_login" json:"old_login"` // old_login: 登陆产品的老用户数量
  13. ActiveUsers int `bson:"active_users" json:"active_users"` // active_users: 登录游戏后投掷过骰子的用户数量
  14. NewActive int `bson:"new_active" json:"new_active"` // new_active: 登录游戏后投掷过骰子的新用户数量
  15. OldActive int `bson:"old_active" json:"old_active"` // old_active: 登录游戏后投掷过骰子的老用户数量
  16. TotalPoints int `bson:"total_points" json:"total_points"` // total_points: 全服积分产出总值
  17. UProduced float64 `bson:"u_produced" json:"u_produced"` // u_produced: 全服U的产出总值
  18. UCashout float64 `bson:"u_cashout" json:"u_cashout"` // u_cashout: 全服U的提现总值
  19. Timestamp int64 `bson:"daily" json:"timestamp"` // timestamp: 数据记录的时间戳
  20. }
  21. // UserLogDailyReq 用户日志
  22. type UserLogDailyReq struct {
  23. Platform string `json:"platform"`
  24. StartTime int64 `json:"start_time"`
  25. EndTime int64 `json:"end_time"`
  26. Channel string `json:"channel"`
  27. Page int `json:"page"`
  28. Size int `json:"size"`
  29. }