heheng
7 天以前 eb71761e48cc18972b64d1e0abc1e34a3d8bc546
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();
}