This commit is contained in:
TangJiYangNiko 2023-08-21 14:10:59 +08:00
parent c804490e2c
commit 2d3efb127a

View File

@ -2,6 +2,7 @@ package top.baogutang.common.serialize;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
/**
@ -11,21 +12,10 @@ import org.springframework.context.annotation.Configuration;
*/
@Data
@Configuration
@RefreshScope
@ConfigurationProperties(prefix = "baogutang.system")
public class SystemSettingProperties {
/**
* 是否是演示站点
*/
private Boolean isDemoSite = false;
/**
* 测试模式
* 验证码短信为6个1
*/
private Boolean isTestModel = false;
/**
* 脱敏级别
* 0不做脱敏处理
@ -37,20 +27,6 @@ public class SystemSettingProperties {
private Integer sensitiveLevel = 0;
public Boolean getDemoSite() {
if (isDemoSite == null) {
return false;
}
return isDemoSite;
}
public Boolean getTestModel() {
if (isTestModel == null) {
return false;
}
return isTestModel;
}
public Integer getSensitiveLevel() {
if (sensitiveLevel == null) {
return 0;