1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- package model
- import (
- xtime "go-common/library/time"
- )
- type NoticeCondition uint8
- type NoticeStatus uint8
- type NoticePlat uint8
- const (
-
- PlatUnknow NoticePlat = 0
-
- PlatWeb NoticePlat = 1
-
- PlatAndroid NoticePlat = 2
-
- PlatIPhone NoticePlat = 3
-
- PlatWpM NoticePlat = 4
-
- PlatIPad NoticePlat = 5
-
- PlatPadHd NoticePlat = 6
-
- PlatWpPc NoticePlat = 7
- )
- const (
-
- StatusOffline NoticeStatus = 0
-
- StatusOnline NoticeStatus = 1
- )
- const (
-
- ConditionEQ NoticeCondition = 0
-
- ConditionGT NoticeCondition = 1
-
- ConditionLT NoticeCondition = 2
- )
- type Notice struct {
- ID uint32 `json:"id"`
- Plat NoticePlat `json:"plat"`
- Version string `json:"version"`
- Condition NoticeCondition `json:"condi"`
- Build uint32 `json:"build"`
- Title string `json:"title"`
- Content string `json:"content"`
- Link string `json:"link"`
- StartTime xtime.Time `json:"stime"`
- EndTime xtime.Time `json:"etime"`
- Status NoticeStatus `json:"status"`
- CreateTime xtime.Time `json:"ctime"`
- ModifyTime xtime.Time `json:"mtime"`
-
- ClientType string `json:"client_type"`
- }
|