Documentation ¶
Index ¶
- func AbortWithJSONFail(c *gin.Context, ecode int, msg string, data interface{})
- func AbortWithJSONResponse(c *gin.Context, httpStatus int, ecode int, msg string, data interface{})
- func AbortWithJSONSuccess(c *gin.Context, data interface{})
- func JSONFail(c *gin.Context, err error, data interface{})
- func JSONResponse(c *gin.Context, httpStatus int, ecode int, msg string, data interface{})
- func JSONSuccess(c *gin.Context, data interface{})
- type Resp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbortWithJSONFail ¶
AbortWithJSONFail .
func AbortWithJSONResponse ¶
AbortWithJSONResponse .
func AbortWithJSONSuccess ¶
AbortWithJSONSuccess .
func JSONResponse ¶
JSONResponse .
Types ¶
Click to show internal directories.
Click to hide internal directories.