out

package
v2.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(c *gin.Context, err error, data ...interface{}) bool

func JsonData

func JsonData(c *gin.Context, data interface{})

func JsonError

func JsonError(c *gin.Context, msg string, data ...interface{})

func JsonSuccess

func JsonSuccess(c *gin.Context)

func ParseParamID

func ParseParamID(c *gin.Context) (uint, error)

func ParseParamIDString

func ParseParamIDString(c *gin.Context, key ...string) string

func ParseParamIDStringWithValidator added in v2.1.5

func ParseParamIDStringWithValidator(c *gin.Context, v ParseParam) (err error, res string)

Types

type ParseParam added in v2.1.5

type ParseParam struct {
	Key string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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