sk_gm_server/library/mongo/gameinfo/UserInfo.go

23 lines
612 B
Go

package gameinfo
import (
"github.com/gogf/gf/frame/g"
dao "gmanager/library/mongo"
)
type UserInfo struct {
Id int32 `bson:"_id" json:"id"`
OpenId string `bson:"openId" json:"openId"`
ServerId string `bson:"serverId" json:"serverId"`
Platform string `bson:"platform" json:"platform"`
Uid int32 `bson:"uid" json:"uid"`
}
var (
// Table is the table name of account.
TableUserInfo = "user_info"
UserInfoTablbeName = g.Config().GetString("db.core")
// Model is the model object of account.
ModelUserInfo = dao.NewMgo(UserInfoTablbeName, TableUserInfo)
)