提交 | 用户 | 时间 | ||
722af2 | 1 | package com.dl.common.annotation; |
X | 2 | |
3 | import java.lang.annotation.*; | |
4 | ||
5 | /** | |
6 | * 数据权限 | |
7 | * | |
8 | * 一个注解只能对应一个模板 | |
9 | * | |
10 | * @author Lion Li | |
11 | * @version 3.5.0 | |
12 | */ | |
13 | @Target(ElementType.METHOD) | |
14 | @Retention(RetentionPolicy.RUNTIME) | |
15 | @Documented | |
16 | public @interface DataColumn { | |
17 | ||
18 | /** | |
19 | * 占位符关键字 | |
20 | */ | |
21 | String[] key() default "deptName"; | |
22 | ||
23 | /** | |
24 | * 占位符替换值 | |
25 | */ | |
26 | String[] value() default "dept_id"; | |
27 | ||
28 | } |