中国算力平台算力登记系统2.0
yanzhaofeige
3 days ago 9a224d216652ef2d6ff2e0bd01fba69c86a3f277
commit | author | age
43dc29 1 package com.odcc.cpzidc.common.annotation;
Y 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 ruoyi
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 }