新增公用数据

This commit is contained in:
2023-10-13 12:52:09 +08:00
parent 108ce662ff
commit 1b5bad51f1
4 changed files with 33 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
package com.njcn.mq.message;
import com.google.gson.annotations.SerializedName;
import com.njcn.middle.rocket.domain.BaseMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -60,6 +61,9 @@ public class AppEventMessage extends BaseMessage {
@ApiModelProperty("事件类型")
private String type;
@ApiModelProperty("告警故障编码一般显示为Hex")
private String code;
private List<Param> param;
}

View File

@@ -40,6 +40,14 @@ public class AppFileMessage extends BaseMessage {
private String data;
private String name;
private Integer frameCurr;
private Integer frameTotal;
private Integer frameLen;
private Integer offset;
}
@Data

View File

@@ -58,4 +58,20 @@ public interface AppRedisKey {
*/
String FILE_PART="filePartKey:";
/**
* 文件分片信息接收超时时间
*/
String FILE_PART_TIME="filePartTimeKey:";
/**
* 文件分片信息缺失
*/
String FILE_PART_MISSING="filePartMissingKey:";
/**
* 文件等待处理时间
*/
String FILE_WAITING="fileWaitingKey:";
}

View File

@@ -167,6 +167,11 @@ public interface InfluxDBTableConstant {
*/
String UUID = "uuid";
/**
* 流程1:设备登记2功能调试3出厂调试 4设备投运)
*/
String process = "process";
/**
* 报表业务计算方式
*/