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