潘志宝
2024-12-12 3374d19db03cce97572c3a294f137d1ea70b307f
提交 | 用户 | 时间
e7c126 1 package com.iailab.framework.desensitize.core.slider.handler;
H 2
3 import com.iailab.framework.desensitize.core.slider.annotation.CarLicenseDesensitize;
4
5 /**
6  * {@link CarLicenseDesensitize} 的脱敏处理器
7  *
8  * @author gaibu
9  */
10 public class CarLicenseDesensitization extends AbstractSliderDesensitizationHandler<CarLicenseDesensitize> {
11     @Override
12     Integer getPrefixKeep(CarLicenseDesensitize annotation) {
13         return annotation.prefixKeep();
14     }
15
16     @Override
17     Integer getSuffixKeep(CarLicenseDesensitize annotation) {
18         return annotation.suffixKeep();
19     }
20
21     @Override
22     String getReplacer(CarLicenseDesensitize annotation) {
23         return annotation.replacer();
24     }
25 }