Documentation
¶
Index ¶
- Constants
- func Send(ctx *gin.Context, resData interface{}, err *errors.Error)
- func SendInternalServerError(ctx *gin.Context, err *errors.Error)
- func SendNotFound(ctx *gin.Context, err *errors.Error)
- func SendOK(ctx *gin.Context)
- func SendParamParseError(ctx *gin.Context, err *errors.Error)
- func SendRefuse(ctx *gin.Context, err *errors.Error)
- func SendUnauthorized(ctx *gin.Context, err *errors.Error)
- type Response
Constants ¶
View Source
const ( // SUCCESS 成功 SUCCESS = "ok" // 成功 // ReqDataValError 请求数据校验失败 ReqDataValError = "参数解析失败" // 请求数据校验失败 // InternalServerError 服务器内部错误 InternalServerError = "服务器内部错误" Unauthorized = "认证失败" // session认证失败 // NotFound 未找到相关资源 NotFound = "未找到相关资源" // 未找到相关资源 // Expired 页面过期 Expired = "页面过期" // 页面过期 // Refuse 正在发布拒绝执行 Refuse = "请求被拒绝,建议刷新页面" // 正在发布拒绝执行 )
Variables ¶
This section is empty.
Functions ¶
func SendInternalServerError ¶
SendInternalServerError 服务器内部错误
func SendParamParseError ¶
SendParamParseError 返回参数解析失败错误
Types ¶
Click to show internal directories.
Click to hide internal directories.