apix

package
v0.0.0-...-110d06e Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 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 PageInfo

type PageInfo struct {
	Current int64 `json:"current"` // 当前页
	Prev    int64 `json:"prev"`    // 前一页
	Next    int64 `json:"next"`    // 后一页
	First   int64 `json:"first"`   // 第一页
	Last    int64 `json:"last"`    // 最后一页
	Pages   int64 `json:"pages"`   // 总页数
}

func MakePageInfo

func MakePageInfo(current int64, pageSize int64, count int64) PageInfo

MakePageInfo 生成分页信息

current: 当前页号
pageSize: 分页尺寸
count: 查询结果总数量

type PageResult

type PageResult struct {
	PageInfo
	Data interface{}
}

type Request

type Request struct {
}

type Result

type Result struct {
	Code int         `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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