Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PageOptions ¶
func (*PageOptions) SetOrderDefault ¶
func (p *PageOptions) SetOrderDefault(orders ...string)
type PageResponse ¶
type Pagination ¶
type Pagination struct { Page int64 `json:"page" example:"1"` Total int64 `json:"total" example:"45"` Limit int64 `json:"limit" example:"30"` Count int64 `json:"count" example:"30"` Items interface{} `json:"items"` }
func NewPagination ¶
func NewPagination(items interface{}, options *PageResponse) *Pagination
Click to show internal directories.
Click to hide internal directories.