Documentation
¶
Index ¶
- func BadRequest(ctx *gin.Context, err error)
- 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 GetParamInt32(paramName string, c *gin.Context) (int32, error)
- func GetStrParamByKey(c *gin.Context, key string) (string, error)
- func GetTxAndContext() (tx *gorm.DB, ctx context.Context)
- func InternalServer(ctx *gin.Context, err error)
- func Success(ctx *gin.Context)
- func SuccessWithData(ctx *gin.Context, data interface{})
- func SuccessWithDataGzipped(ctx *gin.Context, data interface{})
- func SuccessWithMsg(ctx *gin.Context, msg string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func CheckBindAndValidate ¶
func InternalServer ¶
func SuccessWithData ¶
func SuccessWithDataGzipped ¶
func SuccessWithMsg ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.