NewRechargeInfo.go 2.0 KB

12345678910111213141516171819202122232425262728
  1. package gameinfo
  2. import (
  3. "github.com/gogf/gf/frame/g"
  4. dao "gmanager/library/mongo"
  5. "go.mongodb.org/mongo-driver/bson/primitive"
  6. )
  7. type StatisticalRecharge struct {
  8. Id primitive.ObjectID `bson:"_id" json:"id"`
  9. CreatDay string `bson:"creatday" json:"creatday"`
  10. NewRechargeNum int `bson:"new_recharge_num" json:"newrechargenum"` //新增充值人数
  11. NewRechargeAmount float64 `bson:"new_recharge_amount" json:"newrechargeamount"` //新增充值总额
  12. NewRechargeCount int `bson:"new_recharge_count" json:"newrechargecount"` //新增充值次数
  13. RechargeNum int `bson:"recharge_num" json:"rechargenum"` //充值人数
  14. RechargeAmount float64 `bson:"recharge_amount" json:"rechargeamount"` //充值总额
  15. RechargeCount int `bson:"recharge_count" json:"rechargecount"` //充值次数
  16. //TodayNewCumulativeRechargeNum int `bson:"today_new_cumulative_recharge_num" json:"todaynewcumulativerechargenum"` //当日新增玩家累计付费人数
  17. //TodayNewCumulativeRechargeAmount float64 `bson:"today_new_cumulative_recharge_amount" json:"todaynewcumulativerechargeamount"` //当日新增玩家累计付费金额
  18. //TodayNewCumulativeRechargeCount int `bson:"today_new_cumulative_recharge_count" json:"todaynewcumulativerechargecount"` //当日新增玩家累计付费次数
  19. }
  20. var (
  21. TableStatisticalRecharge = "statistical_recharge"
  22. StatisticalRechargeTablbeName = g.Config().GetString("db.login")
  23. ModelStatisticalRecharge = dao.NewMgo(StatisticalRechargeTablbeName, TableStatisticalRecharge)
  24. )