Documentation ¶
Index ¶
- func HandleError(c *gin.Context, err error, data ...interface{}) bool
- func JsonData(c *gin.Context, data interface{})
- func JsonError(c *gin.Context, msg string, data ...interface{})
- func JsonSuccess(c *gin.Context)
- func ParseParamID(c *gin.Context) (uint, error)
- func ParseParamIDString(c *gin.Context, key ...string) string
- func ParseParamIDStringWithValidator(c *gin.Context, v ParseParam) (err error, res string)
- type ParseParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonSuccess ¶
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 }
Click to show internal directories.
Click to hide internal directories.