2020-07-19 10:25:40 +08:00
|
|
|
|
package com.ruoyi.common.annotation;
|
2019-10-08 09:14:38 +08:00
|
|
|
|
|
|
|
|
|
import java.lang.annotation.Documented;
|
|
|
|
|
import java.lang.annotation.ElementType;
|
|
|
|
|
import java.lang.annotation.Retention;
|
|
|
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
|
import java.lang.annotation.Target;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 数据权限过滤注解
|
|
|
|
|
*
|
|
|
|
|
* @author ruoyi
|
|
|
|
|
*/
|
|
|
|
|
@Target(ElementType.METHOD)
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
|
@Documented
|
|
|
|
|
public @interface DataScope
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* 部门表的别名
|
|
|
|
|
*/
|
|
|
|
|
public String deptAlias() default "";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 用户表的别名
|
|
|
|
|
*/
|
|
|
|
|
public String userAlias() default "";
|
2022-08-21 22:53:57 +08:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 权限字符(如不填默认会自动根据注解获取)
|
|
|
|
|
*/
|
|
|
|
|
public String permission() default "";
|
2019-10-08 09:14:38 +08:00
|
|
|
|
}
|