Documentation ¶
Index ¶
- Constants
- func CreateFail(c *gin.Context)
- func CreateFailWithData(data interface{}, c *gin.Context)
- func CreateSuccess(c *gin.Context)
- func CreateSuccessWithData(data interface{}, c *gin.Context)
- func DeleteFail(c *gin.Context)
- func DeleteFailWithData(data interface{}, c *gin.Context)
- func DeleteSuccess(c *gin.Context)
- func DeleteSuccessWithData(data interface{}, c *gin.Context)
- func FailWithDetail(message string, data interface{}, c *gin.Context)
- func FailWithMessage(message string, c *gin.Context)
- func GetFail(c *gin.Context)
- func GetFailWithData(data interface{}, c *gin.Context)
- func GetSuccess(c *gin.Context)
- func GetSuccessWithData(data interface{}, c *gin.Context)
- func Result(code int, message string, data interface{}, c *gin.Context)
- func SuccessWithDetail(message string, data interface{}, c *gin.Context)
- func SuccessWithMessage(message string, c *gin.Context)
- func UpdateFail(c *gin.Context)
- func UpdateFailWithData(data interface{}, c *gin.Context)
- func UpdateSuccess(c *gin.Context)
- func UpdateSuccessWithData(data interface{}, c *gin.Context)
- type ListData
- type Response
Constants ¶
View Source
const ( CODE_SUCCESS = 0 CODE_FAIL = 1 CODE_ERROR = -1 )
Variables ¶
This section is empty.
Functions ¶
func CreateFail ¶
func CreateFailWithData ¶
func CreateSuccess ¶
func CreateSuccessWithData ¶
func DeleteFail ¶
func DeleteFailWithData ¶
func DeleteSuccess ¶
func DeleteSuccessWithData ¶
func FailWithDetail ¶
func FailWithMessage ¶
func GetFailWithData ¶
func GetSuccess ¶
func GetSuccessWithData ¶
func SuccessWithDetail ¶
func SuccessWithMessage ¶
func UpdateFail ¶
func UpdateFailWithData ¶
func UpdateSuccess ¶
func UpdateSuccessWithData ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.