pageable

package
v0.0.0-...-f1dee43 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pageable

type Pageable interface {
	Page() int
	Size() int
	Skip() int
	Limit() int
}

Pageable 分页

func DefaultPageable

func DefaultPageable() Pageable

func NewPageable

func NewPageable(page, size int) Pageable

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL