diff --git a/errno.go b/errno.go index b2efd6c..86bc75f 100644 --- a/errno.go +++ b/errno.go @@ -30,16 +30,17 @@ var ( UserRequestApproval = &Errno{Code: 1, Msg: "已提交审批申请"} // 系统错误, 前缀为 100 - InternalServerError = &Errno{Code: 10001, Msg: "内部服务器错误"} - ErrBind = &Errno{Code: 10002, Msg: "请求参数错误"} - ErrTokenSign = &Errno{Code: 10003, Msg: "签名 jwt 时发生错误"} - ErrEncrypt = &Errno{Code: 10004, Msg: "加密用户密码时发生错误"} - ErrNotFound = &Errno{Code: 10005, Msg: "Not Found"} - ErrFuncNotFound = &Errno{Code: 10006, Msg: "处理函数不存在"} - ErrResNotFound = &Errno{Code: 10007, Msg: "资源不存在"} - ErrResFieldNotFound = &Errno{Code: 10008, Msg: "资源字段不存在"} - ErrFileUpload = &Errno{Code: 10009, Msg: "文件上传错误"} - ErrFileNotFound = &Errno{Code: 10010, Msg: "文件不存在"} + InternalServerError = &Errno{Code: 10001, Msg: "内部服务器错误"} + ErrBind = &Errno{Code: 10002, Msg: "请求参数错误"} + ErrTokenSign = &Errno{Code: 10003, Msg: "签名 jwt 时发生错误"} + ErrEncrypt = &Errno{Code: 10004, Msg: "加密用户密码时发生错误"} + ErrNotFound = &Errno{Code: 10005, Msg: "Not Found"} + ErrFuncNotFound = &Errno{Code: 10006, Msg: "处理函数不存在"} + ErrResNotFound = &Errno{Code: 10007, Msg: "资源不存在"} + ErrResFieldNotFound = &Errno{Code: 10008, Msg: "资源字段不存在"} + ErrFileUpload = &Errno{Code: 10009, Msg: "文件上传错误"} + ErrFileNotFound = &Errno{Code: 10010, Msg: "文件不存在"} + ErrConfigureNotFound = &Errno{Code: 10011, Msg: "配置不存在"} // service 错误 ErrServiceDecode = &Errno{Code: 10101, Msg: "解析 base62param 错误"} @@ -63,11 +64,12 @@ var ( ErrTokenNotFound = &Errno{Code: 20202, Msg: "token 不存在"} // 用户错误, 前缀为 203 - ErrUserNotFound = &Errno{Code: 20301, Msg: "用户没找到"} - ErrUserPassword = &Errno{Code: 20302, Msg: "用户名或密码错误"} - ErrUserAuth = &Errno{Code: 20303, Msg: "无权限"} - ErrUserReadAuth = &Errno{Code: 20304, Msg: "无查询权限"} - ErrUserWriteAuth = &Errno{Code: 20305, Msg: "无写入权限"} + ErrUserNotFound = &Errno{Code: 20301, Msg: "用户没找到"} + ErrUserPassword = &Errno{Code: 20302, Msg: "用户名或密码错误"} + ErrUserAuth = &Errno{Code: 20303, Msg: "无权限"} + ErrUserReadAuth = &Errno{Code: 20304, Msg: "无查询权限"} + ErrUserWriteAuth = &Errno{Code: 20305, Msg: "无写入权限"} + ErrUserIncomplete = &Errno{Code: 20306, Msg: "用户信息不完善"} // 审批错误, 前缀是 204 // 审批节点不存在