mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-04 03:43:14 +08:00
add Phased
This commit is contained in:
@@ -36,7 +36,7 @@ import java.lang.annotation.*;
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Inherited
|
||||
@Documented
|
||||
public @interface Authorize {
|
||||
public @interface Authorize {
|
||||
|
||||
/**
|
||||
* 对角色授权,当使用按角色授权时,对模块以及操作级别授权方式失效
|
||||
@@ -91,14 +91,18 @@ public @interface Authorize {
|
||||
*/
|
||||
Logical logical() default Logical.DEFAULT;
|
||||
|
||||
/**
|
||||
* @return 验证时机,在方法调用前还是调用后s
|
||||
*/
|
||||
Phased phased() default Phased.before;
|
||||
|
||||
/**
|
||||
* @return 是否忽略, 忽略后将不进行权限控制
|
||||
*/
|
||||
boolean ignore() default false;
|
||||
|
||||
/**
|
||||
*
|
||||
* @return 数据权限控制
|
||||
*/
|
||||
RequiresDataAccess[] dataAccess()default {};
|
||||
RequiresDataAccess[] dataAccess() default {};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.hswebframework.web.authorization.annotation;
|
||||
|
||||
enum Phased{
|
||||
before,after
|
||||
}
|
||||
Reference in New Issue
Block a user