pagination

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOffsetAndPageNum

func GetOffsetAndPageNum(pageNum, pageSize string, totalAmount int) (offSet, realPageNum, pageSizeInt int)

GetOffset returns the number of records to skip before starting to return the records http://gorm.io/docs/query.html#Offset

func GetTheLastNumber

func GetTheLastNumber(pageNum, pageSize string, totalAmount int) (lastNum int)

获得最后一页的最后一个是第几个

Types

This section is empty.

Jump to

Keyboard shortcuts

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