pkg

package
v0.0.0-...-08c5772 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonPage

type CommonPage struct {
	// 当前页
	PageNum int `json:"pageNum" form:"page_num" binding:"required" default:"1"`
	// 每页数量
	PageSize int `json:"pageSize" form:"page_size" binding:"required" default:"10"`
	// 总页数
	TotalPage int64 `json:"totalPage" form:"total_page"`
	// 总记录数
	Total int64 `json:"total" form:"total"`
	// 分页数据
	List any `json:"list" form:"list"`
	// 排序
	OrderBy string `json:"orderBy" form:"order_by"`
	// 排序方式
	Sort string `json:"sort" form:"sort"`
}

type Paginator

type Paginator interface {
	Paginate() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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