29 lines
631 B
Java
29 lines
631 B
Java
package com.muyu.common.datascope.annotation;
|
||
|
||
import java.lang.annotation.*;
|
||
|
||
/**
|
||
* 数据权限过滤注解
|
||
*
|
||
* @author muyu
|
||
*/
|
||
@Target(ElementType.METHOD)
|
||
@Retention(RetentionPolicy.RUNTIME)
|
||
@Documented
|
||
public @interface DataScope {
|
||
/**
|
||
* 部门表的别名
|
||
*/
|
||
public String deptAlias () default "";
|
||
|
||
/**
|
||
* 用户表的别名
|
||
*/
|
||
public String userAlias () default "";
|
||
|
||
/**
|
||
* 权限字符(用于多个角色匹配符合要求的权限)默认根据权限注解@RequiresPermissions获取,多个权限用逗号分隔开来
|
||
*/
|
||
public String permission () default "";
|
||
}
|