Documentation ¶
Index ¶
- Constants
- func Fail(c context.Context, ctx *app.RequestContext)
- func FailWithMessage(c context.Context, ctx *app.RequestContext, message string)
- func Ok(c context.Context, ctx *app.RequestContext)
- func OkWithBody(data []byte, ctx *app.RequestContext, bodyLength int)
- func OkWithData(c context.Context, ctx *app.RequestContext, data interface{})
- func OkWithDetailed(c context.Context, ctx *app.RequestContext, data interface{}, message string)
- func OkWithMessage(c context.Context, ctx *app.RequestContext, msg string)
- func ReLoginWithMessage(c context.Context, ctx *app.RequestContext, message string)
- func Result(c context.Context, ctx *app.RequestContext, code int, data interface{}, ...)
- type Response
Constants ¶
View Source
const ( RELOGIN = 1 ERROR = 7 SUCCESS = 0 )
Variables ¶
This section is empty.
Functions ¶
func FailWithMessage ¶
func FailWithMessage(c context.Context, ctx *app.RequestContext, message string)
func OkWithBody ¶
func OkWithBody(data []byte, ctx *app.RequestContext, bodyLength int)
func OkWithData ¶
func OkWithData(c context.Context, ctx *app.RequestContext, data interface{})
func OkWithDetailed ¶
func OkWithDetailed(c context.Context, ctx *app.RequestContext, data interface{}, message string)
func OkWithMessage ¶
func OkWithMessage(c context.Context, ctx *app.RequestContext, msg string)
func ReLoginWithMessage ¶
func ReLoginWithMessage(c context.Context, ctx *app.RequestContext, message string)
Types ¶
Click to show internal directories.
Click to hide internal directories.