Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pageable ¶
Pageable 分页
func DefaultPageable ¶
func DefaultPageable() Pageable
func NewPageable ¶
type Pagination ¶
type Pagination struct {
Page int `json:"page"`
Size int `json:"size"`
Total int `json:"total"`
TotalPages int `json:"total_pages"`
}
Pagination http返回分页数据结构
func NewPagination ¶
func NewPagination(total int64, page Pageable) *Pagination
Click to show internal directories.
Click to hide internal directories.