Documentation
¶
Index ¶
- func BadRequest(c *gin.Context, message string)
- func Error(c *gin.Context, code int, message string)
- func ErrorWithData(c *gin.Context, code int, message string, data interface{})
- func Forbidden(c *gin.Context, message string)
- func InternalServerError(c *gin.Context, message string)
- func NotFound(c *gin.Context, message string)
- func Success(c *gin.Context, data interface{})
- func SuccessWithMessage(c *gin.Context, message string, data interface{})
- func Unauthorized(c *gin.Context, message string)
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorWithData ¶
ErrorWithData 错误响应(带数据)
func InternalServerError ¶
func SuccessWithMessage ¶
SuccessWithMessage 成功响应(自定义消息)
func Unauthorized ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.