base

package
v0.0.0-...-296dcbf Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPaginate

func GetPaginate(c *gin.Context) (int, int)

func OffsetByPage

func OffsetByPage(pageSize, page int) int

OffsetByPage 根据页计算偏移

func RenderError

func RenderError(c *gin.Context, status int, err error)

func RenderResult

func RenderResult(c *gin.Context, err error, data gin.H)

Types

This section is empty.

Jump to

Keyboard shortcuts

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