Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddCard ¶
type AddCard struct { Name string `json:"name" gorm:"column:name" form:"name" validate:"required"` State int32 `json:"state" gorm:"column:state" form:"state" ` IsHot int32 `json:"is_hot" gorm:"column:is_hot" form:"is_hot"` CardURL string `json:"card_url" gorm:"column:card_url"` BigCradURL string `json:"big_crad_url" gorm:"column:big_crad_url"` CardType int32 `json:"card_type" gorm:"column:card_type" form:"card_type"` OrderNum int64 `json:"order_num" gorm:"column:order_num"` Operator string `json:"operator" gorm:"column:operator"` GroupID int64 `json:"group_id" gorm:"column:group_id" form:"group_id" validate:"required"` CardFileType string `gorm:"-"` CardBody []byte `gorm:"-"` BigCardFileType string `gorm:"-"` BigCardBody []byte `gorm:"-"` }
AddCard add card arg.
type AddGroup ¶
type AddGroup struct { Name string `form:"name" validate:"required" gorm:"column:name"` State int8 `form:"state" gorm:"column:state"` Operator string `gorm:"column:operator"` OrderNum int64 `gorm:"column:order_num"` }
AddGroup add group arg.
type ArgID ¶
type ArgID struct {
ID int64 `form:"id" validate:"required,min=1,gte=1"`
}
ArgID arg id.
type ArgIds ¶
type ArgIds struct {
Ids []int64 `form:"ids,split" validate:"min=1,max=50"`
}
ArgIds ids arg.
type ArgQueryCards ¶
type ArgQueryCards struct {
GroupID int64 `form:"group_id"`
}
ArgQueryCards query cards arg.
type ArgQueryGroup ¶
type ArgQueryGroup struct { GroupID int64 `form:"group_id"` State int8 `form:"state" default:"-1"` }
ArgQueryGroup query group arg.
type ArgState ¶
type ArgState struct { ID int64 `form:"id" validate:"required,min=1,gte=1"` State int8 `form:"state"` }
ArgState update state.
type Card ¶
type Card struct { ID int64 `json:"id" gorm:"primary_key"` Name string `json:"name" gorm:"column:name"` State int32 `json:"state" gorm:"column:state"` Deleted int32 `json:"deleted" gorm:"column:deleted"` IsHot int32 `json:"is_hot" gorm:"column:is_hot"` CardURL string `json:"card_url" gorm:"column:card_url"` BigCradURL string `json:"big_crad_url" gorm:"column:big_crad_url"` CardType int32 `json:"card_type" gorm:"column:card_type"` OrderNum int64 `json:"order_num" gorm:"column:order_num"` GroupID int64 `json:"group_id" gorm:"column:group_id"` Operator string `json:"operator" gorm:"column:operator"` Ctime time.Time `json:"-" gorm:"-"` Mtime time.Time `json:"-" gorm:"-"` }
Card info.
type CardGroup ¶
type CardGroup struct { ID int64 `json:"id" gorm:"primary_key"` Name string `json:"name" gorm:"column:name"` State int8 `json:"state" gorm:"column:state"` Deleted int8 `json:"deleted" gorm:"column:deleted"` Operator string `json:"operator" gorm:"column:operator"` OrderNum int64 `json:"order_num" gorm:"column:order_num"` Ctime time.Time `json:"-" gorm:"-"` Mtime time.Time `json:"-" gorm:"-"` Cards []*Card `json:"cards,omitempty" gorm:"-"` }
CardGroup card group info.
type UpdateCard ¶
type UpdateCard struct { ID int64 `form:"id" validate:"required,min=1,gte=1"` Name string `json:"name" gorm:"column:name" form:"name" validate:"required"` State int32 `json:"state" gorm:"column:state" form:"state" ` IsHot int32 `json:"is_hot" gorm:"column:is_hot" form:"is_hot"` CardURL string `json:"card_url" gorm:"column:card_url"` BigCradURL string `json:"big_crad_url" gorm:"column:big_crad_url"` Operator string `json:"operator" gorm:"column:operator"` CardFileType string `gorm:"-"` CardBody []byte `gorm:"-"` BigCardFileType string `gorm:"-"` BigCardBody []byte `gorm:"-"` }
UpdateCard update card info.
Click to show internal directories.
Click to hide internal directories.