“djh”
3 天以前 d7471cff04678b91271bdc566bcbddf2f4ab04b7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.gkhy.exam.common.annotation;
 
import com.gkhy.exam.common.enums.SensitiveTypeEnum;
 
import java.lang.annotation.*;
 
/**
 * 数据脱敏注解,字段上含有该注解表示需要数据脱敏
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DataDesensitizationType {
    /**
     * 脱敏类型(规则)
     * @return
     */
    SensitiveTypeEnum type();
}