admin
昨天 768498719683f85e5ed19c73eb3d14cdbf420df4
提交 | 用户 | 时间
e57a89 1 package com.jcdm.common.annotation;
2
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.ElementType;
5 import java.lang.annotation.Retention;
6 import java.lang.annotation.RetentionPolicy;
7 import java.lang.annotation.Target;
8
9 /**
10  * 数据权限过滤注解
11  * 
12  * @author jc
13  */
14 @Target(ElementType.METHOD)
15 @Retention(RetentionPolicy.RUNTIME)
16 @Documented
17 public @interface DataScope
18 {
19     /**
20      * 部门表的别名
21      */
22     public String deptAlias() default "";
23
24     /**
25      * 用户表的别名
26      */
27     public String userAlias() default "";
28
29     /**
30      * 权限字符(用于多个角色匹配符合要求的权限)默认根据权限注解@ss获取,多个权限用逗号分隔开来
31      */
32     public String permission() default "";
33 }