From 1cb726d66d42b6123a0b451193f9a53ded6764bb Mon Sep 17 00:00:00 2001 From: what Date: Fri, 3 Nov 2023 11:04:39 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E6=96=B0=E5=A2=9EWeChat=20=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- errno.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 // 审批节点不存在