pagemodel

package
Version: v0.0.0-...-41229de Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: Apache-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 DbNum

type DbNum struct {
	Limit  int //条数
	Offset int //偏移数
}

DbNum 偏移查询

type PageInfo

type PageInfo struct {
	PageNum     int         //当前页
	PageSize    int         //每页的数量
	Size        int         //当前页的数量
	Total       int64       //数据库中总的记录数目
	Pages       int         //总的页数
	PrePage     int         //前一页
	NextPage    int         //下一页
	IsFirstPage bool        //是否为第一页
	IsLastPage  bool        //是否为最后一页
	ListData    interface{} //查询出来的数据
}

PageInfo 页面信息

type PageQueryCondition

type PageQueryCondition struct {
	PageNum  int //要查询的页码
	PageSize int //要查询的每页的个数
}

PageQueryCondition 页码查询条件

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL