Helius
2022-05-16 80d17668d4e1b96ac88301cf7d2f7b9a086c9d32
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
package cc.mrbird.febs.common.annotation;
 
 
import cc.mrbird.febs.common.entity.DesensitizationType;
 
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
 
/**
 * @author MrBird
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Desensitization {
 
    /**
     * 脱敏规则类型
     */
    DesensitizationType type();
 
    /**
     * 附加值, 自定义正则表达式等
     */
    String[] attach() default "";
}