Documentation ¶
Index ¶
Constants ¶
View Source
const ( PAGE = 1 PAGE_SIZE = 10 MAX_PAGE_SIZE = 1000 )
Variables ¶
This section is empty.
Functions ¶
func GetPageOffset ¶
Types ¶
type Option ¶
type Option func(*Pagination)
func WithNopaging ¶
func WithNopaging() Option
func WithOrderBy ¶
func WithPageSize ¶
type Pagination ¶
type Pagination struct { // 当前页 Page int32 // 每一页的行数 PageSize int32 // 查询参数 Query map[string]interface{} // 排序 OrderBy map[string]bool // 是否不分页 Nopaging bool }
func NewPagination ¶
func NewPagination(opts ...Option) *Pagination
type PaginationHandler ¶
Click to show internal directories.
Click to hide internal directories.