package gm import ( "github.com/gogf/gf/frame/g" dao "gmanager/library/mongo" ) type CdkAddInfo struct { Id int `bson:"_id" json:"id"` Class string `bson:"_class" json:"class"` // UseType int `bson:"usetype" json:"usetype"` // Pid int `bson:"pid" json:"pid"` // RoleUseNum int `bson:"role_use_num" json:"roleusenum"` // StartTime int64 `bson:"start_time" json:"starttime"` // EndTime int64 `bson:"end_time" json:"endtime"` // Reward string `bson:"reward" json:"reward"` // GoodsName string `bson:"goods_name" json:"goodsname"` // GoodsInfo string `bson:"goods_info" json:"goodsinfo"` // GoodsSum int `bson:"goods_sum" json:"goodssum"` // IsAdd int `bson:"isAdd" json:"isAdd"` // ServerId int `bson:"serverId" json:"serverId"` // GoodsChannel string `bson:"goods_channel" json:"goodschannel"` // } var ( // Table is the table name of account. TableCdkAddInfo = "cdk_add_info" CdkAddInfoTablbeName = g.Config().GetString("db.core") // Model is the model object of account. ModelCdkAddInfo = dao.NewMgo(CdkAddInfoTablbeName, TableCdkAddInfo) )