Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultPage = 1 DefaultLimit = 10 MaxLimit = 100 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pagination ¶
type Pagination struct {
Page int `json:"page" required:"true" nullable:"false"`
Limit int `json:"limit" required:"true" nullable:"false"`
Total int `json:"total" required:"true" nullable:"false"`
TotalPages int `json:"total_pages" required:"true" nullable:"false"`
HasMore bool `json:"has_more" required:"true" nullable:"false"`
}
func New ¶
func New(page, limit, total int) Pagination
Click to show internal directories.
Click to hide internal directories.