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;
|
}
|