Documentation ¶
Index ¶
- Variables
- func DataWithErr(ctx *gin.Context, err error, data interface{}, fns ...ResponseFn)
- func Error(ctx *gin.Context, fns ...ResponseFn)
- func ParameterError(ctx *gin.Context, fns ...ResponseFn)
- func Success(ctx *gin.Context, fns ...ResponseFn)
- func WeChatPayError(ctx *gin.Context)
- func WeChatPaySuccess(ctx *gin.Context)
- type Response
- type ResponseFn
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SuccessCode = 200 ErrorCode = 100 ErrorParameter = 422 SuccessMsg = "success" ErrorMsg = "error" ParameterMsg = "参数错误" )
Functions ¶
func DataWithErr ¶ added in v1.0.2
func DataWithErr(ctx *gin.Context, err error, data interface{}, fns ...ResponseFn)
func ParameterError ¶ added in v1.0.2
func ParameterError(ctx *gin.Context, fns ...ResponseFn)
ParameterError /*
func WeChatPaySuccess ¶
Types ¶
type ResponseFn ¶
Click to show internal directories.
Click to hide internal directories.