Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderDirection ¶
type OrderDirection int
const ( OrderByASC OrderDirection = 1 OrderByDESC OrderDirection = 2 )
type OrderField ¶
type OrderField struct { Key string Direction OrderDirection }
func NewOrderField ¶
func NewOrderField(key string, d OrderDirection) *OrderField
func NewOrderFields ¶
func NewOrderFields(orderFields ...*OrderField) []*OrderField
type OrderFields ¶
type OrderFields []*OrderField
func (OrderFields) AddIdSortField ¶
func (a OrderFields) AddIdSortField() OrderFields
type Pagination ¶
type Param ¶
type Param struct { Pagination bool `form:"-"` // Pagination OnlyCount bool `form:"-"` // Only count Current uint `form:"current,default=1"` // Current page PageSize uint `form:"pageSize,default=10" binding:"max=100"` // Page size }
func (Param) GetCurrent ¶
func (Param) GetPageSize ¶
Click to show internal directories.
Click to hide internal directories.