feat(code): SaCheckOr 注解添加 append 字段,用于抓取未预先定义的注解类型进行批量注解鉴权

This commit is contained in:
click33
2025-05-15 01:04:54 +08:00
parent 3e13a39244
commit 3edac001ce
26 changed files with 125 additions and 73 deletions

View File

@@ -20,7 +20,7 @@ import cn.dev33.satoken.context.SaHolder;
import cn.dev33.satoken.oauth2.SaOAuth2Manager;
import cn.dev33.satoken.oauth2.annotation.SaCheckAccessToken;
import java.lang.reflect.Method;
import java.lang.reflect.AnnotatedElement;
/**
* 注解 SaCheckAccessToken 的处理器
@@ -36,7 +36,7 @@ public class SaCheckAccessTokenHandler implements SaAnnotationHandlerInterface<S
}
@Override
public void checkMethod(SaCheckAccessToken at, Method method) {
public void checkMethod(SaCheckAccessToken at, AnnotatedElement element) {
_checkMethod(at.scope());
}

View File

@@ -19,7 +19,7 @@ import cn.dev33.satoken.annotation.handler.SaAnnotationHandlerInterface;
import cn.dev33.satoken.oauth2.annotation.SaCheckClientIdSecret;
import cn.dev33.satoken.oauth2.processor.SaOAuth2ServerProcessor;
import java.lang.reflect.Method;
import java.lang.reflect.AnnotatedElement;
/**
* 注解 SaCheckClientSecret 的处理器
@@ -35,7 +35,7 @@ public class SaCheckClientIdSecretHandler implements SaAnnotationHandlerInterfac
}
@Override
public void checkMethod(SaCheckClientIdSecret at, Method method) {
public void checkMethod(SaCheckClientIdSecret at, AnnotatedElement element) {
_checkMethod();
}

View File

@@ -20,7 +20,7 @@ import cn.dev33.satoken.context.SaHolder;
import cn.dev33.satoken.oauth2.SaOAuth2Manager;
import cn.dev33.satoken.oauth2.annotation.SaCheckClientToken;
import java.lang.reflect.Method;
import java.lang.reflect.AnnotatedElement;
/**
* 注解 SaCheckAccessToken 的处理器
@@ -36,7 +36,7 @@ public class SaCheckClientTokenHandler implements SaAnnotationHandlerInterface<S
}
@Override
public void checkMethod(SaCheckClientToken at, Method method) {
public void checkMethod(SaCheckClientToken at, AnnotatedElement element) {
_checkMethod(at.scope());
}