From 0755485d843fe2e0c159e51113bdb195b4840926 Mon Sep 17 00:00:00 2001 From: Shikong <919411476@qq.com> Date: Thu, 6 Oct 2022 17:59:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/auth/auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/auth/auth.go b/services/auth/auth.go index 81e5947..6cbe70c 100644 --- a/services/auth/auth.go +++ b/services/auth/auth.go @@ -9,7 +9,7 @@ import ( ) var ( - AuthFailed = errors.New("账号或密码错误") + Failed = errors.New("账号或密码错误") ) type Service struct { @@ -29,7 +29,7 @@ func (s *Service) Login(login *dto.Login) (token string, err error) { } if !exist { - return token, AuthFailed + return token, Failed } token, err = global.GetToken(global.UserClaims{