From 8bff8e737798effd3a03ee42340c49a2edf19691 Mon Sep 17 00:00:00 2001 From: yanweidong Date: Wed, 28 Feb 2024 13:40:34 +0800 Subject: [PATCH] fix errors code. --- exception/auth.go | 3 ++- exception/errors.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/exception/auth.go b/exception/auth.go index 2e0cfe9..f63187c 100644 --- a/exception/auth.go +++ b/exception/auth.go @@ -2,7 +2,8 @@ package exception // jwt custom error code ,begin:200 var ( - ErrAuthPasswd = Errorf(201, "Password Error") + ErrAuthSecret = Errorf(200, "Auth JwtSecret Error") + ErrAuthDecode = Errorf(201, "Auth Token Base64 Decode Error") ErrAuthNotFound = Errorf(202, "Auth Token Not Found") ErrAuthParseFail = Errorf(203, "Auth Parse Fail") ErrAuthId = Errorf(204, "Auth Id Not Passed") diff --git a/exception/errors.go b/exception/errors.go index 98ff4b0..d264a41 100644 --- a/exception/errors.go +++ b/exception/errors.go @@ -28,6 +28,7 @@ var ( ErrUnauthenticated = Errorf(16, "Unauthenticated") ErrJSONMarshal = Errorf(17, "Marshal JSON") ErrJSONUnmarshal = Errorf(18, "Unmarshal JSON") + ErrPasswd = Errorf(19, "Password Error") ErrSmsCode = Errorf(20, "SMS Code Invalid")