servant

package
v0.0.0-...-b532d83 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorMsg

func ErrorMsg(c *gin.Context, code int, err error)

ErrorMsg 通用错误响应

func GetPageSize

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

GetPageSize 通用获取页面信息

func GetPathId

func GetPathId(c *gin.Context) (int, error)

GetPathId 通用获取 path 信息

func RawMsg

func RawMsg(c *gin.Context, name string, text []byte)

func SuccessMsg

func SuccessMsg(c *gin.Context, total int64, data interface{})

SuccessMsg 通用正常响应

Types

This section is empty.

Jump to

Keyboard shortcuts

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