maven
7 小时以前 1fe82e4b17d8b8095769e2afcf56c9345778e58c
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
package com.ruoyi.api.dto;
 
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
/**
 * 榆林市工信局数据推送配置类
 * 映射 yml 中 api 前缀的所有配置
 */
@Data // Lombok 注解,自动生成 getter/setter/toString 等方法(无需手动写)
@Component // 注册为 Spring Bean,让 Spring 管理
@ConfigurationProperties(prefix = "api") // 绑定前缀为 api 的配置
public class ApiProperties {
 
    /**
     * 推送ip地址
     */
    private String ip;
 
    /**
     * 企业应用id
     */
    private String appid;
 
    /**
     * 企业应用秘钥
     */
    private String secret;
 
    /**
     * 企业名称
     */
    private String entName;
 
    /**
     * 统一社会信用代码
     */
    private String socialCreditCode;
 
    /**
     * 日均用电量
     */
    private Integer dayPowerConsumption;
 
    /**
     * 单位产值基数(万元)
     */
    private Integer outputValuesBase;
 
    /**
     * 月电费
     */
    private Integer electricityCost;
 
    /**
     * 登录推送开关
     */
    private Boolean loginPush;
 
    /**
     * 电数据推送开关
     */
    private Boolean push;
}