heheng
6 天以前 61f6970c48d5334ca2b76e90eff94b46f593f5bd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.gkhy.exam.common.annotation;
 
import java.lang.annotation.*;
 
/**
 * 数据权限过滤注解
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DataScope {
    /**
     * 用户表的别名
     * @return
     */
    public String userAlias() default "";
 
    /**
     * 权限字符(用于多个角色匹配符合要求的权限)默认根据权限注解@RequiresPermissions获取,多个权限用逗号分隔开来
     * @return
     */
    public String permission() default "";
}