support

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseQueryPageCmd

type BaseQueryPageCmd struct {
	Page int `query:"page"`
	Size int `query:"size"`
}

func (BaseQueryPageCmd) Offset

func (cmd BaseQueryPageCmd) Offset() int

type Page

type Page struct {
	// 页码
	Page int `json:"page"`
	// 每页条数
	Size int `json:"size"`
	// 总数
	Count int64 `json:"count"`
}

Page 是分页信息

func (Page) PageCount

func (pg Page) PageCount() int

PageCount 返回页数

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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