fix errors code.

This commit is contained in:
yanweidong 2024-02-28 13:40:34 +08:00
parent 983545b0d7
commit 8bff8e7377
2 changed files with 3 additions and 1 deletions

View File

@ -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")

View File

@ -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")