KKSU
2024-12-19 20662f11dc1888e1e737e41e938cb4cc320a44cc
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 "";
}