Documentation ¶
Index ¶
- Constants
- func Fail(ctx *app.RequestContext)
- func FailWithDetailed(data interface{}, message string, ctx *app.RequestContext)
- func FailWithMessage(message string, ctx *app.RequestContext)
- func Ok(ctx *app.RequestContext)
- func OkWithData(data interface{}, ctx *app.RequestContext)
- func OkWithDetailed(data interface{}, message string, ctx *app.RequestContext)
- func OkWithMessage(message string, ctx *app.RequestContext)
- func Result2(code int, data interface{}, msg string, ctx *app.RequestContext)
- type PageResult
- type Response
Constants ¶
View Source
const ( ERROR = 7 SUCCESS = 0 )
Variables ¶
This section is empty.
Functions ¶
func Fail ¶
func Fail(ctx *app.RequestContext)
func FailWithDetailed ¶
func FailWithDetailed(data interface{}, message string, ctx *app.RequestContext)
func FailWithMessage ¶
func FailWithMessage(message string, ctx *app.RequestContext)
func Ok ¶
func Ok(ctx *app.RequestContext)
func OkWithData ¶
func OkWithData(data interface{}, ctx *app.RequestContext)
func OkWithDetailed ¶
func OkWithDetailed(data interface{}, message string, ctx *app.RequestContext)
func OkWithMessage ¶
func OkWithMessage(message string, ctx *app.RequestContext)
Types ¶
type PageResult ¶
Click to show internal directories.
Click to hide internal directories.