潘志宝
2024-12-12 3374d19db03cce97572c3a294f137d1ea70b307f
提交 | 用户 | 时间
e7c126 1 package com.iailab.framework.desensitize.core.handler;
H 2
3 import com.iailab.framework.desensitize.core.DesensitizeTest;
4 import com.iailab.framework.desensitize.core.base.handler.DesensitizationHandler;
5 import com.iailab.framework.desensitize.core.annotation.Address;
6
7 /**
8  * {@link Address} 的脱敏处理器
9  *
10  * 用于 {@link DesensitizeTest} 测试使用
11  */
12 public class AddressHandler implements DesensitizationHandler<Address> {
13
14     @Override
15     public String desensitize(String origin, Address annotation) {
16         return origin + annotation.replacer();
17     }
18
19 }