test
This commit is contained in:
parent
c804490e2c
commit
2d3efb127a
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user