Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pagination ¶
type Pagination struct {
// contains filtered or unexported fields
}
redis分页工具
func NewPagination ¶
func NewPagination(total int, pageIndex int, pageSize ...int) *Pagination
获取redis分页对象 @param total 总页数 @param pageIndex 当前页数 @param pageSize 页码长度
func (*Pagination) Json ¶
func (this *Pagination) Json() PageJson
将分页信息转换成json字符串 @param path 当前请求连接,不包含page字段
Click to show internal directories.
Click to hide internal directories.