page

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 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 PageQueryParam

type PageQueryParam struct {
	PageNo   int `form:"pageNo"`   // 当前页码
	PageSize int `form:"pageSize"` // 每页显示条数
}

func (*PageQueryParam) GetLimit

func (thiz *PageQueryParam) GetLimit() int

func (*PageQueryParam) GetOffset

func (thiz *PageQueryParam) GetOffset() int

func (*PageQueryParam) GetPageNo

func (thiz *PageQueryParam) GetPageNo() int

func (*PageQueryParam) GetPageSize

func (thiz *PageQueryParam) GetPageSize() int

type PageResult

type PageResult[T any] struct {
	Total    int64 `json:"total"`
	PageData []T   `json:"pageData"`
}

func NewPageResult

func NewPageResult[T any](total int64, pageData []T) *PageResult[T]

Jump to

Keyboard shortcuts

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