xiangpei
2025-06-12 8e25be6ee345ce5d11918943dcc41fa1d4b3a902
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package cn.lili.common.properties;
 
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
 
/**
 * 系统设置
 *
 * @author Chopper
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "lili.system")
public class SystemSettingProperties {
 
 
    /**
     * 是否是演示站点
     */
    private Boolean isDemoSite = false;
 
    /**
     * 测试模式
     * 验证码短信为6个1
     */
    private Boolean isTestModel = false;
 
    /**
     * 脱敏级别:
     * 0:不做脱敏处理
     * 1:管理端用户手机号等信息脱敏
     * 2:商家端信息脱敏(为2时,表示管理端,商家端同时脱敏)
     * <p>
     * PS:
     */
    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;
        }
        return sensitiveLevel;
    }
}