LogLTV.go 921 B

12345678910111213141516171819202122232425
  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 LogLTV struct {
  8. Id primitive.ObjectID `bson:"_id" json:"id"`
  9. CreatDay string `bson:"creatday" json:"creatday"` // 统计日期
  10. NewUser int `bson:"newuser" json:"newuser"` // 统计日期当天新增角色数
  11. Day int `bson:"day" json:"day"` // 统计日期的第n天
  12. DayAmount int64 `bson:"dayamount" json:"dayamount"` // 统计日期当天新增角色数的第n天充值的金额
  13. LogTime int64 `bson:"logTime" json:"logTime"`
  14. }
  15. var (
  16. // Table is the table name of account.
  17. TableLtv = "ltv"
  18. LtvTablbeName = g.Config().GetString("db.login")
  19. // Model is the model object of account.
  20. ModelLtv = dao.NewMgo(LtvTablbeName, TableLtv)
  21. )