|
@@ -8,11 +8,11 @@ import org.springframework.stereotype.Component;
|
|
|
@ConfigurationProperties(prefix = "cold-chain.alarm.message")
|
|
@ConfigurationProperties(prefix = "cold-chain.alarm.message")
|
|
|
@Data
|
|
@Data
|
|
|
public class ColdChainAlarmMessageProperties {
|
|
public class ColdChainAlarmMessageProperties {
|
|
|
- private String temperatureOverLimit = "温度报警:{deviceName}的温度超标!\n" +
|
|
|
|
|
|
|
+ private String temperatureOverLimit = "{deviceName}的温度超标!\n" +
|
|
|
"当前温度:{value} {unit},已超出上限(阈值:{threshold})。\n" +
|
|
"当前温度:{value} {unit},已超出上限(阈值:{threshold})。\n" +
|
|
|
"报警时间:{time}";
|
|
"报警时间:{time}";
|
|
|
|
|
|
|
|
- private String temperatureBelowLimit = "温度报警:{deviceName}的温度过低!\n" +
|
|
|
|
|
|
|
+ private String temperatureBelowLimit = "{deviceName}的温度过低!\n" +
|
|
|
"当前温度:{value} {unit},已低于下限(阈值:{threshold})。\n" +
|
|
"当前温度:{value} {unit},已低于下限(阈值:{threshold})。\n" +
|
|
|
"报警时间:{time}";
|
|
"报警时间:{time}";
|
|
|
|
|
|
|
@@ -20,11 +20,11 @@ public class ColdChainAlarmMessageProperties {
|
|
|
"当前温度:{value} {unit},阈值:{threshold}。\n" +
|
|
"当前温度:{value} {unit},阈值:{threshold}。\n" +
|
|
|
"恢复时间:{time}";
|
|
"恢复时间:{time}";
|
|
|
|
|
|
|
|
- private String humidityOverLimit = "湿度报警:{deviceName}的湿度超标!\n" +
|
|
|
|
|
|
|
+ private String humidityOverLimit = "{deviceName}的湿度超标!\n" +
|
|
|
"当前湿度:{value} {unit},已超出上限(阈值:{threshold})。\n" +
|
|
"当前湿度:{value} {unit},已超出上限(阈值:{threshold})。\n" +
|
|
|
"报警时间:{time}";
|
|
"报警时间:{time}";
|
|
|
|
|
|
|
|
- private String humidityBelowLimit = "湿度报警:{deviceName}的湿度过低!\n" +
|
|
|
|
|
|
|
+ private String humidityBelowLimit = "{deviceName}的湿度过低!\n" +
|
|
|
"当前湿度:{value} {unit},已低于下限(阈值:{threshold})。\n" +
|
|
"当前湿度:{value} {unit},已低于下限(阈值:{threshold})。\n" +
|
|
|
"报警时间:{time}";
|
|
"报警时间:{time}";
|
|
|
|
|
|
|
@@ -32,11 +32,11 @@ public class ColdChainAlarmMessageProperties {
|
|
|
"当前湿度:{value} {unit},阈值:{threshold}。\n" +
|
|
"当前湿度:{value} {unit},阈值:{threshold}。\n" +
|
|
|
"恢复时间:{time}";
|
|
"恢复时间:{time}";
|
|
|
|
|
|
|
|
- private String co2OverLimit = "二氧化碳报警:{deviceName}的二氧化碳浓度超标!\n" +
|
|
|
|
|
|
|
+ private String co2OverLimit = "{deviceName}的二氧化碳浓度超标!\n" +
|
|
|
"当前浓度:{value} {unit},已超出上限(阈值:{threshold})。\n" +
|
|
"当前浓度:{value} {unit},已超出上限(阈值:{threshold})。\n" +
|
|
|
"报警时间:{time}";
|
|
"报警时间:{time}";
|
|
|
|
|
|
|
|
- private String co2BelowLimit = "二氧化碳报警:{deviceName}的二氧化碳浓度过低!\n" +
|
|
|
|
|
|
|
+ private String co2BelowLimit = "{deviceName}的二氧化碳浓度过低!\n" +
|
|
|
"当前浓度:{value} {unit},已低于下限(阈值:{threshold})。\n" +
|
|
"当前浓度:{value} {unit},已低于下限(阈值:{threshold})。\n" +
|
|
|
"报警时间:{time}";
|
|
"报警时间:{time}";
|
|
|
|
|
|