From a1b821d0f226e9e0b67796549c28f1f55d20653c Mon Sep 17 00:00:00 2001 From: naah69 Date: Wed, 12 Oct 2022 14:54:05 +0800 Subject: [PATCH] fix satoken interceptor annotation binding parameter --- .../main/java/cn/dev33/satoken/annotation/SaCheckBasic.java | 3 +++ .../java/cn/dev33/satoken/annotation/SaCheckDisable.java | 4 ++++ .../main/java/cn/dev33/satoken/annotation/SaCheckLogin.java | 2 ++ .../java/cn/dev33/satoken/annotation/SaCheckPermission.java | 5 +++++ .../main/java/cn/dev33/satoken/annotation/SaCheckRole.java | 4 ++++ .../main/java/cn/dev33/satoken/annotation/SaCheckSafe.java | 2 ++ 6 files changed, 20 insertions(+) diff --git a/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckBasic.java b/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckBasic.java index 9d707bf..770efe2 100644 --- a/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckBasic.java +++ b/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckBasic.java @@ -5,6 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import javax.enterprise.util.Nonbinding; import javax.interceptor.InterceptorBinding; import cn.dev33.satoken.basic.SaBasicTemplate; @@ -28,6 +29,7 @@ * * @return see note */ + @Nonbinding String realm() default SaBasicTemplate.DEFAULT_REALM; /** @@ -35,6 +37,7 @@ * * @return see note */ + @Nonbinding String account() default ""; } diff --git a/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckDisable.java b/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckDisable.java index 3047cb1..231ac0e 100644 --- a/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckDisable.java +++ b/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckDisable.java @@ -5,6 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import javax.enterprise.util.Nonbinding; import javax.interceptor.InterceptorBinding; import cn.dev33.satoken.util.SaTokenConsts; @@ -27,6 +28,7 @@ * * @return see note */ + @Nonbinding String type() default ""; /** @@ -34,6 +36,7 @@ * * @return see note */ + @Nonbinding String[] value() default { SaTokenConsts.DEFAULT_DISABLE_SERVICE }; /** @@ -41,6 +44,7 @@ * * @return / */ + @Nonbinding int level() default SaTokenConsts.DEFAULT_DISABLE_LEVEL; } diff --git a/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckLogin.java b/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckLogin.java index 6ec6077..dfa4ffe 100644 --- a/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckLogin.java +++ b/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckLogin.java @@ -5,6 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import javax.enterprise.util.Nonbinding; import javax.interceptor.InterceptorBinding; /** @@ -25,6 +26,7 @@ * * @return see note */ + @Nonbinding String type() default ""; } diff --git a/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckPermission.java b/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckPermission.java index fff1b53..39867d5 100644 --- a/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckPermission.java +++ b/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckPermission.java @@ -5,6 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import javax.enterprise.util.Nonbinding; import javax.interceptor.InterceptorBinding; /** @@ -25,6 +26,7 @@ * * @return 需要校验的权限码 */ + @Nonbinding String[] value() default {}; /** @@ -32,6 +34,7 @@ * * @return 验证模式 */ + @Nonbinding SaMode mode() default SaMode.AND; /** @@ -39,6 +42,7 @@ * * @return see note */ + @Nonbinding String type() default ""; /** @@ -56,6 +60,7 @@ * * @return / */ + @Nonbinding String[] orRole() default {}; } diff --git a/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckRole.java b/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckRole.java index d71936e..cc18dfd 100644 --- a/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckRole.java +++ b/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckRole.java @@ -5,6 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import javax.enterprise.util.Nonbinding; import javax.interceptor.InterceptorBinding; /** @@ -25,6 +26,7 @@ * * @return 需要校验的角色标识 */ + @Nonbinding String[] value() default {}; /** @@ -32,6 +34,7 @@ * * @return 验证模式 */ + @Nonbinding SaMode mode() default SaMode.AND; /** @@ -41,6 +44,7 @@ * * @return see note */ + @Nonbinding String type() default ""; } diff --git a/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckSafe.java b/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckSafe.java index 5fab11c..d34fcb6 100644 --- a/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckSafe.java +++ b/quarkus-satoken-main/quarkus-satoken-resteasy/runtime/src/main/java/cn/dev33/satoken/annotation/SaCheckSafe.java @@ -5,6 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import javax.enterprise.util.Nonbinding; import javax.interceptor.InterceptorBinding; /** @@ -26,6 +27,7 @@ * * @return see note */ + @Nonbinding String type() default ""; }