From b805a76ae03bbe8958fdca310880615b33e39fd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BC=9F=E4=B9=90?= Date: Wed, 18 Oct 2023 09:48:16 +0800 Subject: [PATCH] auto commit --- middleware/jwt/default.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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", "权限不足") }