oversea

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

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 Pager

type Pager struct {
	Num   int64 `json:"num"`
	Size  int64 `json:"size"`
	Total int64 `json:"total"`
}

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

type PolicyParams struct {
	ID       int64   `json:"id"`
	DownAuth int8    `json:"down_auth"`
	PlayAuth int8    `json:"play_auth"`
	AreaIds  []int64 `json:"area_id"`
}

type Zone

type Zone struct {
	ID     int64  `json:"id"`
	Name   string `json:"name"`
	Pid    int64  `json:"pid"`
	Ppid   int64  `json:"ppid"`
	ZoneID int64  `json:"zone_id"`
	Status int8   `json:"status"`
}

func (Zone) TableName

func (Zone) TableName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL