mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +08:00
29 lines
602 B
Java
29 lines
602 B
Java
package com.ruoyi.common.annotation;
|
|
|
|
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 "";
|
|
}
|