13693261870
2024-08-16 7efa8af608c37abf09b817bda0f2f5e216ec6e0e
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
61
62
63
64
65
66
67
68
69
70
71
72
package com.wgcloud.config;
 
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
 
 
@Data
@Configuration
@ConfigurationProperties(prefix = "base")
public class CommonConfig {
 
 
    //admin管理员密码
    private String admindPwd = "111111";
    private String wgToken = "";
    private String dashView;
    private Integer dbTableTimes = 3600000;
    private Integer heathTimes = 600000;
 
 
    public String getAdmindPwd() {
        return admindPwd;
    }
 
    public void setAdmindPwd(String admindPwd) {
        this.admindPwd = admindPwd;
    }
 
    public String getWgToken() {
        return wgToken;
    }
 
    public void setWgToken(String wgToken) {
        this.wgToken = wgToken;
    }
 
 
    public String getDashView() {
        if (StringUtils.isEmpty(dashView)) {
            return "true";
        }
        return dashView;
    }
 
    public void setDashView(String dashView) {
        this.dashView = dashView;
    }
 
    public Integer getDbTableTimes() {
        if (dbTableTimes == null) {
            return 3600000;
        }
        return dbTableTimes;
    }
 
    public void setDbTableTimes(Integer dbTableTimes) {
        this.dbTableTimes = dbTableTimes;
    }
 
    public Integer getHeathTimes() {
        if (heathTimes == null) {
            return 600000;
        }
        return heathTimes;
    }
 
    public void setHeathTimes(Integer heathTimes) {
        this.heathTimes = heathTimes;
    }
}