sk_gm_server/library/mongo/gameinfo/NoticeInfo.go

23 lines
713 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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)
)