NoticeInfo.go 713 B

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