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{