This commit is contained in:
Shikong 2022-10-06 17:59:12 +08:00
parent 48a6d4d32e
commit 0755485d84

View File

@ -9,7 +9,7 @@ import (
) )
var ( var (
AuthFailed = errors.New("账号或密码错误") Failed = errors.New("账号或密码错误")
) )
type Service struct { type Service struct {
@ -29,7 +29,7 @@ func (s *Service) Login(login *dto.Login) (token string, err error) {
} }
if !exist { if !exist {
return token, AuthFailed return token, Failed
} }
token, err = global.GetToken(global.UserClaims{ token, err = global.GetToken(global.UserClaims{