component

package
v0.0.0-...-d140a6e Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalOffset

func CalOffset(page int, limit int) (offset int)

CalOffset 计算offset /**

Types

type Pagination

type Pagination struct {
	Page  int         `json:"page"`
	Limit int         `json:"limit"`
	Total int64       `json:"total"`
	Items interface{} `json:"items"`
}

func PageStructure

func PageStructure(page int, limit int, total int64, items interface{}) *Pagination

PageStructure 构建分页数据结构 **/

Jump to

Keyboard shortcuts

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