jinlin
2023-11-03 35435e8b1995e6775c82b86652381e07e3faff54
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.zt.common.annotation;
 
import com.zt.common.db.constant.OP;
 
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
 
/**
 * 数据过滤
 *
 * Created by hehz on 2020/6/15.
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface DataFilter {
 
    String name() default "";// 权限节点名称
 
    String field();// 字段
 
    String alias() default "a";// 表别名
 
    String accept();// 可选值
 
    String dict() default "";// 可选值为字典时的字典key
 
    String op() default OP.EQ;// 操作符
 
    String defaul() default "";// 默认值
}