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