28 lines
476 B
Java
28 lines
476 B
Java
package com.xinelu.common.annotation;
|
|
|
|
import java.lang.annotation.*;
|
|
|
|
/**
|
|
* 数据权限过滤注解
|
|
*
|
|
* @author xinelu
|
|
*/
|
|
@Target(ElementType.METHOD)
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@Documented
|
|
public @interface DataScope {
|
|
/**
|
|
* 机构表别名
|
|
*/
|
|
public String anencyAlias() default "";
|
|
/**
|
|
* 部门表的别名
|
|
*/
|
|
public String deptAlias() default "";
|
|
|
|
/**
|
|
* 用户表的别名
|
|
*/
|
|
public String userAlias() default "";
|
|
}
|