paginator

package
v0.0.0-...-ba408d3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Paginator

type Paginator struct {
	BaseURL    string
	PerPage    int
	Page       int
	Offset     int
	TotalCount int64
	TotalPage  int
	Sort       string
	Order      string
	// contains filtered or unexported fields
}

type Paging

type Paging struct {
	CurrentPage int
	PerPage     int
	TotalPage   int
	TotalCount  int64
	NextPageURL string
	PrevPageURL string
}

func Paginate

func Paginate(c *gin.Context, db *gorm.DB, data interface{}, baseURL string, perPage int, withQuery bool) Paging

Jump to

Keyboard shortcuts

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