Documentation ¶
Index ¶
- Variables
- func HttpFail(ctx *gin.Context, data ...interface{})
- func HttpFailWithCodeAndMessage(code int, message string, ctx *gin.Context, data ...interface{})
- func HttpFailWithErr(ctx *gin.Context, data ...error)
- func HttpFailWithMessage(ctx *gin.Context, message string, data ...interface{})
- func HttpFailWithParameter(ctx *gin.Context, data ...interface{})
- func HttpOk(ctx *gin.Context, data ...interface{})
- func HttpOkWithMessage(ctx *gin.Context, message string, data ...interface{})
- func HttpParameterError(ctx *gin.Context, err error)
- func HttpSuccessWithError(ctx *gin.Context, err error, Data interface{})
- func ReturnCode(ctx *gin.Context, StatusCode int, Message string, Data interface{})
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SuccessMessage = "操作成功" FailMessage = "操作失败" SuccessCode = 200 FailCode = 400 ParameterCodeError = 422 ParameterError = "参数错误" )
Functions ¶
func HttpFailWithErr ¶
func HttpFailWithMessage ¶
func HttpFailWithParameter ¶
func HttpOkWithMessage ¶
func HttpParameterError ¶
func HttpSuccessWithError ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.