From fc483bdd6076b5acf00ebec3074f8c806e642bff Mon Sep 17 00:00:00 2001 From: hupeh Date: Wed, 25 Oct 2023 17:41:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=80=9A=E7=94=A8=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/errs/errs.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 internal/errs/errs.go diff --git a/internal/errs/errs.go b/internal/errs/errs.go new file mode 100644 index 0000000..fa443f5 --- /dev/null +++ b/internal/errs/errs.go @@ -0,0 +1,11 @@ +package errs + +import ( + "net/http" + "sorbet/pkg/rsp" +) + +var ( + ErrWechatNotBound = rsp.NewError(http.StatusBadRequest, 10001, "微信尚未绑定") + ErrLoginWithUserpwd = rsp.NewError(http.StatusUnauthorized, 10002, "用户名或密码错误") +)