package gm import ( "github.com/gogf/gf/frame/g" dao "gmanager/library/mongo" ) type CdkInfo struct { Id string `bson:"_id" json:"id"` Class string `bson:"_class" json:"class"` // GoodsId int `bson:"goodsId" json:"goodsId"` // Status int `bson:"status" json:"status"` // } var ( // Table is the table name of account. TableCdkInfo = "cdk_info" CdkInfoTablbeName = g.Config().GetString("db.core") // Model is the model object of account. ModelCdkInfo = dao.NewMgo(CdkInfoTablbeName, TableCdkInfo) )