提交 | 用户 | 时间
|
a6de49
|
1 |
/** |
H |
2 |
* Copyright (c) 2018 人人开源 All rights reserved. |
|
3 |
* |
|
4 |
* https://www.renren.io |
|
5 |
* |
|
6 |
* 版权所有,侵权必究! |
|
7 |
*/ |
|
8 |
|
|
9 |
package com.iailab.common.annotation; |
|
10 |
|
|
11 |
import java.lang.annotation.*; |
|
12 |
|
|
13 |
/** |
|
14 |
* 数据过滤注解 |
|
15 |
* |
|
16 |
* @author Mark sunlightcs@gmail.com |
|
17 |
*/ |
|
18 |
@Target(ElementType.METHOD) |
|
19 |
@Retention(RetentionPolicy.RUNTIME) |
|
20 |
@Documented |
|
21 |
public @interface DataFilter { |
|
22 |
/** |
|
23 |
* 表的别名 |
|
24 |
*/ |
|
25 |
String tableAlias() default ""; |
|
26 |
|
|
27 |
/** |
|
28 |
* 用户ID |
|
29 |
*/ |
|
30 |
String userId() default "creator"; |
|
31 |
|
|
32 |
/** |
|
33 |
* 部门ID |
|
34 |
*/ |
|
35 |
String deptId() default "dept_id"; |
|
36 |
|
|
37 |
} |