sk_gm_server/library/mongo/gameinfo/WhiteList.go

21 lines
532 B
Go

package gameinfo
import (
"github.com/gogf/gf/frame/g"
dao "gmanager/library/mongo"
"go.mongodb.org/mongo-driver/bson/primitive"
)
type WhiteList struct {
Id primitive.ObjectID `bson:"_id" json:"id"`
OpenId string `bson:"openId" json:"openId"`
}
var (
// Table is the table name of account.
TableWhiteList = "white_user_list"
WhiteListTablbeName = g.Config().GetString("db.core")
// Model is the model object of account.
ModelWhiteList = dao.NewMgo(WhiteListTablbeName, TableWhiteList)
)