Logliucun.go 770 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 LogLiucun 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"`
  12. DayCount int `bson:"daycount" json:"daycount"`
  13. LogTime string `bson:"logTime" json:"logTime"`
  14. }
  15. var (
  16. // Table is the table name of account.
  17. TableLiucun = "luncun"
  18. LiucunTablbeName = g.Config().GetString("db.login")
  19. // Model is the model object of account.
  20. ModelLiucun = dao.NewMgo(LiucunTablbeName, TableLiucun)
  21. )