diff --git a/errno.go b/errno.go index 86bc75f..74e37bf 100644 --- a/errno.go +++ b/errno.go @@ -64,12 +64,14 @@ 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: "无写入权限"} - ErrUserIncomplete = &Errno{Code: 20306, 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: "用户信息不完善"} + ErrUserWechatBound = &Errno{Code: 20307, Msg: "该用户已绑定微信号"} + ErrUserWechatPhoneBound = &Errno{Code: 20308, Msg: "该微信号已绑定手机"} // 审批错误, 前缀是 204 // 审批节点不存在