12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- package model
- // TAnnouncement [...]
- type TAnnouncement struct {
- AnnouncementCache
- Isvalid int64 `db:"isvalid" json:"isvalid"`
- AnnounceType int64 `db:"announce_type" json:"announce_type"`
- }
- // TableName get sql table name.获取数据库表名
- func (TAnnouncement) TableName() string {
- return "crazygod_api_config.t_announcement"
- }
- type AnnouncementShow struct {
- Id int64 `json:"id"`
- Title string `json:"title"`
- Content Lang `json:"content"`
- DateRange []int64 `json:"dateRange"`
- Device int64 `json:"device"`
- Usertype int64 `json:"usertype"`
- Whitelist []int64 `json:"whitelist"`
- Blacklist []int64 `json:"blacklist"`
- }
- type AnnouncementCache struct {
- Id int64 `db:"id" redis:"id" json:"id"`
- Title string `db:"title" redis:"title" json:"title"`
- Content Lang `db:"content" redis:"content" json:"content"`
- Stime int64 `db:"stime" redis:"stime" json:"stime"`
- Etime int64 `db:"etime" redis:"etime" json:"etime"`
- Device int64 `db:"device" redis:"device" json:"device"` // 0全部,1安卓,2fb
- Usertype int64 `db:"usertype" redis:"usertype" json:"usertype"` // 0全部,1安卓,2fb
- Type int64 `db:"type" redis:"type" json:"type"` // 0不停服1停服
- Wlist string `db:"wlist" redis:"wlist" json:"wlist"` // 白名单
- Blist string `db:"blist" redis:"blist" json:"blist"` // 黑名单
- }
- type StopServerConf struct {
- Id int64 `json:"id"`
- Type int64 `json:"type"`
- AnnouncementId int64 `json:"announcement_id"`
- Url string `json:"url"`
- }
- type StopServerShowConf struct {
- BasicConf StopServerConf `json:"basicConf"`
- NoticeOptions Options `json:"noticeOptions"`
- }
- type StopServerStatic struct {
- Type int64 `json:"type"`
- Content StopServerStaticContent `json:"content"`
- Url string `json:"url"`
- }
- type StopServerStaticContent struct {
- Title string `json:"title"`
- Content Lang `json:"content"`
- Whitelist []int64 `json:"wlist"`
- }
|