docs 补充项目注释
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
<!-- 序列化模块 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-json</artifactId>
|
||||
|
||||
+5
@@ -10,6 +10,11 @@ import org.springframework.context.annotation.Bean;
|
||||
@AutoConfiguration
|
||||
public class SensitiveConfig {
|
||||
|
||||
/**
|
||||
* 创建脱敏 JSON 字段处理器。
|
||||
*
|
||||
* @return 脱敏 JSON 字段处理器
|
||||
*/
|
||||
@Bean
|
||||
public SensitiveJsonFieldProcessor sensitiveJsonFieldProcessor() {
|
||||
return new SensitiveJsonFieldProcessor();
|
||||
|
||||
+8
@@ -105,8 +105,16 @@ public enum SensitiveStrategy {
|
||||
|
||||
//可自行添加其他脱敏策略
|
||||
|
||||
/**
|
||||
* 当前策略对应的脱敏函数。
|
||||
*/
|
||||
private final Function<String, String> desensitizer;
|
||||
|
||||
/**
|
||||
* 获取当前策略对应的脱敏函数。
|
||||
*
|
||||
* @return 脱敏函数
|
||||
*/
|
||||
public Function<String, String> desensitizer() {
|
||||
return desensitizer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user