ZQN
2025-03-25 1618b864a7db55e541fa5b73022f305aae4cf1e1
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
package com.project.common.annotation;
 
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
 
/**
 * 功能描述:
 *
 * @author ZQN
 * @version 1.0   2025-03-25 17:01
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Sensitive {
    SensitiveType type() default SensitiveType.DEFAULT;
 
    enum SensitiveType {
        DEFAULT,
        PHONE,
        EMAIL,
        ID_CARD
    }
}