Documentation
¶
Index ¶
- func CheckBind(req interface{}, c *gin.Context) error
- func CheckBindAndValidate(req interface{}, c *gin.Context) error
- func ErrorWithDetail(ctx *gin.Context, code int, msgKey string, err error)
- func GetIntParamByKey(c *gin.Context, key string) (uint, error)
- func GetParamID(c *gin.Context) (uint, error)
- func GetStrParamByKey(c *gin.Context, key string) (string, error)
- func GetTxAndContext() (tx *gorm.DB, ctx context.Context)
- func SuccessWithData(ctx *gin.Context, data interface{})
- func SuccessWithMsg(ctx *gin.Context, msg string)
- func SuccessWithOutData(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBindAndValidate ¶ added in v1.7.0
func SuccessWithData ¶
func SuccessWithMsg ¶
func SuccessWithOutData ¶ added in v1.1.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.