package gameinfo import ( "github.com/gogf/gf/frame/g" dao "gmanager/library/mongo" ) type NoticeInfo struct { Id string `bson:"_id" json:"id"` Title string `bson:"title" json:"title"` Content string `bson:"content" json:"content"` Grade string `bson:"grade" json:"grade"` //0:常驻;1:优先级中;2:优先级高 PublishTime int64 `bson:"publish_time" json:"publishtime"` } var ( // Table is the table name of account. TableNoticeInfo = "notice_info" NoticeInfoTablbeName = g.Config().GetString("db.core") // Model is the model object of account. ModelNoticeInfo = dao.NewMgo(NoticeInfoTablbeName, TableNoticeInfo) )