fix errors code.
This commit is contained in:
parent
983545b0d7
commit
8bff8e7377
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue