sk_gm_server/library/mongo/gameinfo/LogHour.go

26 lines
761 B
Go

package gameinfo
import (
"github.com/gogf/gf/frame/g"
dao "gmanager/library/mongo"
"go.mongodb.org/mongo-driver/bson/primitive"
)
type LogHour struct {
Id primitive.ObjectID `bson:"_id" json:"id"`
CreatDay string `bson:"creatday" json:"creatday"`
NewUser int `bson:"newuser" json:"newuser"`
Hour int `bson:"hour" json:"hour"`
HourCount int `bson:"hourcount" json:"hourcount"`
LogTime string `bson:"logTime" json:"logTime"`
}
var (
// Table is the table name of account.
TableHour = "hour"
HourTablbeName = g.Config().GetString("db.login")
// Model is the model object of account.
ModelHour = dao.NewMgo(HourTablbeName, TableHour)
)