Helius
2021-09-16 4d80b819948366cb0754369b1bea5e0e83cf6af1
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 "";
}