helper

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckBind added in v1.8.0

func CheckBind(req interface{}, c *gin.Context) error

func CheckBindAndValidate added in v1.7.0

func CheckBindAndValidate(req interface{}, c *gin.Context) error

func ErrorWithDetail

func ErrorWithDetail(ctx *gin.Context, code int, msgKey string, err error)

func GetIntParamByKey

func GetIntParamByKey(c *gin.Context, key string) (uint, error)

func GetParamID

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

func GetStrParamByKey

func GetStrParamByKey(c *gin.Context, key string) (string, error)

func GetTxAndContext

func GetTxAndContext() (tx *gorm.DB, ctx context.Context)

func SuccessWithData

func SuccessWithData(ctx *gin.Context, data interface{})

func SuccessWithMsg

func SuccessWithMsg(ctx *gin.Context, msg string)

func SuccessWithOutData added in v1.1.0

func SuccessWithOutData(ctx *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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