Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = New(404, "NotFound", "没有找到相应记录") ErrAuthFailed = New(401, "AuthFailed", "登录失败") ErrForbidden = New(403, "Forbidden", "权限不足") ErrDuplicate = New(400, "Duplicate", "已有相同业务数据存在") )
定义错误
Functions ¶
func ErrorHandler ¶
func ErrorHandler(err error, c echo.Context)
ErrorHandler customize echo's HTTP error handler.
Types ¶
Click to show internal directories.
Click to hide internal directories.