package com.vci.starter.web.annotation.undo;
|
|
import org.springframework.stereotype.Component;
|
|
import java.lang.annotation.ElementType;
|
import java.lang.annotation.Retention;
|
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.Target;
|
|
/**
|
* 待办事项的查询的内容
|
* 条件是or的方式判断
|
* @author weidy
|
* @date 2022/8/1
|
*/
|
@Target({ ElementType.TYPE})
|
@Retention(RetentionPolicy.RUNTIME)
|
@Component
|
public @interface UndoTaskPlugin {
|
|
/**
|
* 排序号
|
* @return 排序的内容
|
*/
|
int order() ;
|
/**
|
* 任务类型
|
* @return 任务类型
|
*/
|
String name() default "";
|
|
/**
|
* 权限的名字
|
* @return 权限的名字
|
*/
|
String[] funcNames() default "";
|
|
/**
|
* 指定角色的名称
|
* @return 角色名称
|
*/
|
String[] roles() default "";
|
|
/**
|
* 指定的部门名称
|
* @return 部门名称
|
*/
|
String[] depts() default "";
|
|
/**
|
* 指定的用户名
|
* @return 用户名
|
*/
|
String[] users() default "";
|
|
/**
|
* 指定的角色类型
|
* @return 角色类型
|
*/
|
String[] roleTypes() default "";
|
|
/**
|
* 执行的用户类型
|
* @return 用户类型
|
*/
|
String[] userTypes() default "";
|
|
}
|