diff --git a/middleware/jwt/default.go b/middleware/jwt/default.go index 7f5a4d5..9f3f777 100644 --- a/middleware/jwt/default.go +++ b/middleware/jwt/default.go @@ -2,6 +2,7 @@ package jwt import ( "context" + "git.diulo.com/mogfee/kit/errors" "git.diulo.com/mogfee/kit/transport" "git.diulo.com/mogfee/kit/transport/http" "strings" @@ -53,5 +54,5 @@ func (j *JwtDefault) Validate(ctx context.Context, permission string, permission return nil } } - return errorx.Forbidden("TOKEN_PERMISSION_BAD", "权限不足") + return errors.Forbidden("TOKEN_PERMISSION_BAD", "权限不足") }