mdb

package
v0.0.0-...-6b52b4a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Paginate

type Paginate struct {
	Page     int `json:"page" form:"page,default=1"`            // 分页号
	LimitNum int `json:"limit_num" form:"limit_num,default=10"` // 每页限制数量
	Offset   int // 计算获取offset
}

func (*Paginate) DealOffset

func (p *Paginate) DealOffset()

func (*Paginate) GetOffset

func (p *Paginate) GetOffset() int

func (*Paginate) GetPageNum

func (p *Paginate) GetPageNum(limitNum int, defaultNum int) int

func (*Paginate) Init

func (p *Paginate) Init()

Jump to

Keyboard shortcuts

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