更新sql和代码规范修改

This commit is contained in:
moxiangrong
2024-02-18 15:26:45 +08:00
parent 6f5e6e4662
commit c132b68745
1293 changed files with 43935 additions and 18456 deletions

View File

@ -22,7 +22,7 @@ import java.lang.reflect.Field;
/**
* 脱敏序列化器
*
* <p>
* 实现 JSON 返回数据时,使用 {@link DesensitizationHandler} 对声明脱敏注解的字段,进行脱敏处理。
*
* @author gaibu

View File

@ -29,7 +29,7 @@ public @interface EmailDesensitize {
/**
* 替换规则,邮箱;
*
* <p>
* 比如example@gmail.com 脱敏之后为 e****@gmail.com
*/
String replacer() default "$1****$2";

View File

@ -29,7 +29,7 @@ public @interface RegexDesensitize {
/**
* 替换规则,会将匹配到的字符串全部替换成 replacer
*
* <p>
* 例如regex=123; replacer=******
* 原始字符串 123456789
* 脱敏后字符串 ******456789

View File

@ -34,7 +34,7 @@ public @interface PasswordDesensitize {
/**
* 替换规则,密码;
*
* <p>
* 比如123456 脱敏之后为 ******
*/
String replacer() default "*";

View File

@ -29,7 +29,7 @@ public @interface SliderDesensitize {
/**
* 替换规则,会将前缀后缀保留后,全部替换成 replacer
*
* <p>
* 例如prefixKeep = 1; suffixKeep = 2; replacer = "*";
* 原始字符串 123456
* 脱敏后 1***56

View File

@ -13,7 +13,7 @@ import java.lang.annotation.Target;
/**
* 地址
*
* <p>
* 用于 {@link DesensitizeTest} 测试使用
*
* @author gaibu

View File

@ -6,7 +6,7 @@ import co.yixiang.yshop.framework.desensitize.core.annotation.Address;
/**
* {@link Address} 的脱敏处理器
*
* <p>
* 用于 {@link DesensitizeTest} 测试使用
*/
public class AddressHandler implements DesensitizationHandler<Address> {