Documentation
¶
Index ¶
- Variables
- func JsonFail(ctx *gin.Context, msg string, data interface{}, codes ...int)
- func JsonFailWithStack(ctx *gin.Context, err error, data interface{}, codes ...int)
- func JsonSuccess(ctx *gin.Context, msg string, data interface{}, codes ...int)
- func ToFailMsg(msg string, data interface{}, codes ...int) gin.H
- func ToSuccessMsg(msg string, data interface{}, codes ...int) gin.H
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger internal.ILogger
Functions ¶
func JsonFailWithStack ¶
JsonFailWithStack build a stack of given error and will be logged by Logger then call JsonFail
func JsonSuccess ¶
JsonSuccess serializes the given struct as JSON into the response body.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.