KKSU
2025-02-06 adf1b59d2e839ee67ed3def7549f1ad50de521fa
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 "";
}