Documentation ¶
Index ¶
- Constants
- func Fail(ctx *gin.Context)
- func FailWithDetailed(data interface{}, message string, ctx *gin.Context)
- func FailWithMessage(message string, ctx *gin.Context)
- func ForbiddenFailWithMessage(message string, ctx *gin.Context)
- func Ok(ctx *gin.Context)
- func OkWithData(data interface{}, ctx *gin.Context)
- func OkWithDetailed(data interface{}, message string, ctx *gin.Context)
- func OkWithMessage(message string, ctx *gin.Context)
- func Result(code int, data interface{}, msg string, ctx *gin.Context)
- func UnauthorizedFailWithDetailed(data interface{}, message string, ctx *gin.Context)
- func UnauthorizedFailWithMessage(message string, ctx *gin.Context)
- type BaseResponse
- type PageResult
- type Response
- type SelectOption
Constants ¶
View Source
const ( ResponseOkMessage = "操作成功" ResponseErrorMessage = "操作失败" )
Variables ¶
This section is empty.
Functions ¶
func FailWithDetailed ¶
func FailWithMessage ¶
func OkWithData ¶
func OkWithDetailed ¶
func OkWithMessage ¶
Types ¶
type BaseResponse ¶
type PageResult ¶
type SelectOption ¶
Click to show internal directories.
Click to hide internal directories.