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