[feat] 增加错误类型

This commit is contained in:
what 2023-10-30 15:00:17 +08:00
parent d775bd6c0f
commit 901767a1dc

View File

@ -40,6 +40,7 @@ var (
ErrResFieldNotFound = &Errno{Code: 10008, Msg: "资源字段不存在"} ErrResFieldNotFound = &Errno{Code: 10008, Msg: "资源字段不存在"}
ErrFileUpload = &Errno{Code: 10009, Msg: "文件上传错误"} ErrFileUpload = &Errno{Code: 10009, Msg: "文件上传错误"}
ErrFileNotFound = &Errno{Code: 10010, Msg: "文件不存在"} ErrFileNotFound = &Errno{Code: 10010, Msg: "文件不存在"}
ErrConfigureNotFound = &Errno{Code: 10011, Msg: "配置不存在"}
// service 错误 // service 错误
ErrServiceDecode = &Errno{Code: 10101, Msg: "解析 base62param 错误"} ErrServiceDecode = &Errno{Code: 10101, Msg: "解析 base62param 错误"}
@ -68,6 +69,7 @@ var (
ErrUserAuth = &Errno{Code: 20303, Msg: "无权限"} ErrUserAuth = &Errno{Code: 20303, Msg: "无权限"}
ErrUserReadAuth = &Errno{Code: 20304, Msg: "无查询权限"} ErrUserReadAuth = &Errno{Code: 20304, Msg: "无查询权限"}
ErrUserWriteAuth = &Errno{Code: 20305, Msg: "无写入权限"} ErrUserWriteAuth = &Errno{Code: 20305, Msg: "无写入权限"}
ErrUserIncomplete = &Errno{Code: 20306, Msg: "用户信息不完善"}
// 审批错误, 前缀是 204 // 审批错误, 前缀是 204
// 审批节点不存在 // 审批节点不存在