StatisticalRecharge.go 1.4 KB

12345678910111213141516171819202122232425262728
  1. package gm
  2. import (
  3. "github.com/gogf/gf/frame/g"
  4. dao "gmanager/library/mongo"
  5. )
  6. type RechargeInfo struct {
  7. //Id primitive.ObjectID `bson:"_id" json:"id"`
  8. //UserId string `bson:"user_id" json:"userid"` //用户id
  9. //ServerId string `bson:"server_id" json:"serverid"` //服务器id
  10. //ServerName string `bson:"server_name" json:"servername"` //服务器id
  11. SaveAmt float64 `bson:"saveAmt" json:"saveAmt"` //累计充值
  12. SoulCrystalAmt int32 `bson:"soulCrystalAmt" json:"soulCrystalAmt"` //累计充值购买魂晶
  13. MonthSaveAmt float64 `bson:"monthSaveAmt" json:"monthSaveAmt"` //月卡累计总额
  14. SmonthSaveAmt float64 `bson:"smonthSaveAmt" json:"smonthSaveAmt"` //豪华月卡累计总额
  15. IsFirst int32 `bson:"isFirst" json:"isFirst"` //第一次充值
  16. CreateTime int64 `bson:"createTime" json:"createTime"`
  17. IsDayFirst int32 `bson:"isDayFirst" json:"isDayFirst"` //首日充值
  18. }
  19. var (
  20. // Table is the table name of account.
  21. TableRechargeInfo = "user"
  22. // Model is the model object of account.
  23. RechargeInfoTablbeName = g.Config().GetString("db.prefix")
  24. ModelRechargeInfo = dao.NewMgo(RechargeInfoTablbeName, TableRechargeInfo)
  25. )