org.wf.jwtp.annotation.RequiresRoles Maven / Gradle / Ivy
The newest version!
package org.wf.jwtp.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 角色判断注解
*
* @author wangfan
*/
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface RequiresRoles {
String[] value();
/**
* 多个权限的逻辑操作,是and还是or,默认是and
* @return 逻辑操作
*/
Logical logical() default Logical.AND;
}