Documentation ¶
Index ¶
Constants ¶
View Source
const ( StateOK = 1 StateDeleted = 0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveRelation ¶
type ArchiveRelation struct { ID int64 `json:"id" gorm:"column:id"` GroupID int64 `json:"policy_id" gorm:"column:policy_id"` Aid int64 `json:"aid" gorm:"column:aid"` }
func (ArchiveRelation) TableName ¶
func (ArchiveRelation) TableName() string
type PolicyGroup ¶
type PolicyGroup struct { ID int64 `json:"id" gorm:"column:id"` IsGlobal int8 `json:"is_global" gorm:"column:is_global"` Aid int64 `json:"aid" gorm:"column:aid"` Name string `json:"name" gorm:"column:name"` Type int8 `json:"type" gorm:"column:type"` State int8 `json:"state" gorm:"column:state"` UserName string `json:"username" gorm:"-"` UID int64 `json:"uid" gorm:"column:uid"` Remark string `json:"remark" gorm:"column:remark;size:140"` CTime time.Time `json:"ctime" gorm:"column:ctime"` MTime time.Time `json:"mtime" gorm:"column:mtime"` Items []*PolicyItem `json:"items" gorm:"-"` }
func (PolicyGroup) TableName ¶
func (PolicyGroup) TableName() string
type PolicyGroupData ¶
type PolicyGroupData struct { Items []*PolicyGroup `json:"items"` Pager *Pager `json:"pager"` }
type PolicyItem ¶
type PolicyItem struct { ID int64 `json:"id" gorm:"column:id"` GroupID int64 `json:"group_id" gorm:"column:group_id"` PlayAuth int8 `json:"play_auth" gorm:"column:play_auth"` DownAuth int8 `json:"down_auth" gorm:"column:down_auth"` AreaID string `json:"area_id" gorm:"column:area_id"` ZoneID string `json:"zone_id" gorm:"column:zone_id"` State int8 `json:"state" gorm:"column:state"` }
func (PolicyItem) TableName ¶
func (PolicyItem) TableName() string
type PolicyParams ¶
Click to show internal directories.
Click to hide internal directories.