|
|
@ -2,6 +2,7 @@ package jwt |
|
|
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
import ( |
|
|
|
"context" |
|
|
|
"context" |
|
|
|
|
|
|
|
"git.diulo.com/mogfee/kit/errors" |
|
|
|
"git.diulo.com/mogfee/kit/transport" |
|
|
|
"git.diulo.com/mogfee/kit/transport" |
|
|
|
"git.diulo.com/mogfee/kit/transport/http" |
|
|
|
"git.diulo.com/mogfee/kit/transport/http" |
|
|
|
"strings" |
|
|
|
"strings" |
|
|
@ -53,5 +54,5 @@ func (j *JwtDefault) Validate(ctx context.Context, permission string, permission |
|
|
|
return nil |
|
|
|
return nil |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return errorx.Forbidden("TOKEN_PERMISSION_BAD", "权限不足") |
|
|
|
return errors.Forbidden("TOKEN_PERMISSION_BAD", "权限不足") |
|
|
|
} |
|
|
|
} |
|
|
|