sk_gm_server/library/mongo/gameinfo/LogLTV.go

26 lines
921 B
Go

package gameinfo
import (
"github.com/gogf/gf/frame/g"
dao "gmanager/library/mongo"
"go.mongodb.org/mongo-driver/bson/primitive"
)
type LogLTV struct {
Id primitive.ObjectID `bson:"_id" json:"id"`
CreatDay string `bson:"creatday" json:"creatday"` // 统计日期
NewUser int `bson:"newuser" json:"newuser"` // 统计日期当天新增角色数
Day int `bson:"day" json:"day"` // 统计日期的第n天
DayAmount int64 `bson:"dayamount" json:"dayamount"` // 统计日期当天新增角色数的第n天充值的金额
LogTime int64 `bson:"logTime" json:"logTime"`
}
var (
// Table is the table name of account.
TableLtv = "ltv"
LtvTablbeName = g.Config().GetString("db.login")
// Model is the model object of account.
ModelLtv = dao.NewMgo(LtvTablbeName, TableLtv)
)