Documentation
¶
Index ¶
- func BizFailed(c *gin.Context, errCode int, err ...error)
- func HttpResponse(c *gin.Context, httpCode int, msgCode int, data interface{})
- func ServerFailed(c *gin.Context, errCode int, err ...error)
- func Success(c *gin.Context, data interface{})
- func Unauthorized(c *gin.Context, errCode int, err ...error)
- type ApiJson
- type ErrJson
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HttpResponse ¶
HttpResponse common response
func ServerFailed ¶
ServerFailed server internal failed response
Types ¶
Click to show internal directories.
Click to hide internal directories.