ginplus

package
v0.0.0-...-fa384c1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPageIndex

func GetPageIndex(c *gin.Context) int

GetPageIndex 获取分页的页索引

func GetPageNum

func GetPageNum(c *gin.Context) int

func GetPageSize

func GetPageSize(c *gin.Context) int

GetPageSize 获取分页的页大小

func GetToken

func GetToken(c *gin.Context) string

GetToken 获取用户令牌

func ResError

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

ResError 响应错误

func ResJSON

func ResJSON(c *gin.Context, status int, v interface{})

ResJSON 响应JSON数据

func ResOK

func ResOK(c *gin.Context)

ResOK 响应OK

func ResPage

func ResPage(c *gin.Context, v *dto.ResponseList)

ResPage 响应分页数据

func ResSuccess

func ResSuccess(c *gin.Context, v interface{})

ResSuccess 响应成功

func ValidatorErrorHandle

func ValidatorErrorHandle(c *gin.Context, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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