sk_gm_server/library/mongo/gm/StatisticalRecharge.go

29 lines
1.4 KiB
Go

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