page

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

offset位移分页组件

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PageInfo

type PageInfo struct {
	Total int64                    `json:"total" xml:"total"` // 数据总数
	List  []map[string]interface{} `json:"list" xml:"list"`   // 分页数据
}

分页数据结果

type RecordsInfo

type RecordsInfo struct {
	Records PageInfo `json:"records" xml:"records"`
}

func Generate

func Generate(total int64, dataList []map[string]interface{}) (RecordsInfo, error)

Generate 输出格式化的分页信息 total: int64 记录总数 dataList: []map[string]interface{} 查询结果集

Jump to

Keyboard shortcuts

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