智慧保安后台管理-外网项目备份
zhongrj
2023-09-17 8853292babb2ad94de4a3207966f1e83b767cd2d
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
28
package org.springblade.common.desensitization;
 
import cn.hutool.core.util.DesensitizedUtil;
 
import java.lang.annotation.*;
 
import static cn.hutool.core.util.DesensitizedUtil.DesensitizedType.FIXED_PHONE;
 
/**
 * 脱敏
 * @author zhongrj
 * @date 2023-09-11
 */
public @interface Desensitization {
 
    /**
     * json path 的标识
     * @return
     */
    String jsonPath();
 
    /**
     * 脱敏的字段的数据分类,  默认是座机号码类型脱敏
     * @return
     */
    DesensitizedUtil.DesensitizedType desensitizedType() default FIXED_PHONE;
 
}