helper

package
v0.0.0-...-74a8e61 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequest

func BadRequest(ctx *gin.Context, err error)

func CheckBind

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

func CheckBindAndValidate

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 GetParamInt32

func GetParamInt32(paramName string, c *gin.Context) (int32, error)

func GetStrParamByKey

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

func GetTxAndContext

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

func InternalServer

func InternalServer(ctx *gin.Context, err error)

func Success

func Success(ctx *gin.Context)

func SuccessWithData

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

func SuccessWithDataGzipped

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

func SuccessWithMsg

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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