MQTT通讯功能联调
This commit is contained in:
@@ -21,6 +21,14 @@ public enum AccessEnum {
|
||||
REGISTERED(2, "注册"),
|
||||
ACCESS(3, "接入"),
|
||||
|
||||
/**
|
||||
* 装置运行状态
|
||||
* 0:删除 1:离线 2:在线
|
||||
*/
|
||||
DEL(0, "删除"),
|
||||
OFFLINE(1, "离线"),
|
||||
ONLINE(2, "在线"),
|
||||
|
||||
/**
|
||||
* 报文处理优先级
|
||||
*/
|
||||
|
||||
@@ -42,7 +42,7 @@ public enum TypeEnum {
|
||||
TYPE_26("4660","设备文件删除"),
|
||||
TYPE_27("4661","设备文件删除"),
|
||||
TYPE_28("4662","设备根目录查询应答"),
|
||||
TYPE_29("4353","设备心跳请求"),
|
||||
TYPE_29("9217","设备心跳请求"),
|
||||
TYPE_30("4865","设备数据主动上送"),
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.njcn.access.pojo.dto;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import com.njcn.access.annotation.ParamName;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
@@ -23,25 +24,30 @@ public class ReqAndResDto implements Serializable {
|
||||
@SerializedName("Mid")
|
||||
@ApiModelProperty("报文ID,在请求报文中该值为请求ID")
|
||||
@NotNull(message = "报文ID不能为空")
|
||||
@ParamName("Mid")
|
||||
private Integer mid;
|
||||
|
||||
@SerializedName("Did")
|
||||
@ApiModelProperty("设备唯一标识lDid,填入0代表nDid")
|
||||
@NotBlank(message = "设备唯一标识lDid不能为空")
|
||||
@ParamName("Did")
|
||||
private Integer did;
|
||||
|
||||
@SerializedName("Pri")
|
||||
@ApiModelProperty("报文处理的优先级")
|
||||
@NotNull(message = "报文处理的优先级不能为空")
|
||||
@ParamName("Pri")
|
||||
private Integer pri;
|
||||
|
||||
@SerializedName("Type")
|
||||
@ApiModelProperty("消息类型")
|
||||
@NotNull(message = "消息类型不能为空")
|
||||
@ParamName("Type")
|
||||
private Integer type;
|
||||
|
||||
@SerializedName("Msg")
|
||||
@ApiModelProperty("报文内容")
|
||||
@ParamName("Msg")
|
||||
private Object msg;
|
||||
|
||||
/**
|
||||
@@ -53,6 +59,7 @@ public class ReqAndResDto implements Serializable {
|
||||
@SerializedName("Expire")
|
||||
@ApiModelProperty("此报文过期的相对时间,单位秒,该字段为-1时表示永不过期.控制类报文接收者超时处理按此时间")
|
||||
@NotNull(message = "报文过期的相对时间不能为空")
|
||||
@ParamName("Expire")
|
||||
private Integer expire;
|
||||
}
|
||||
|
||||
@@ -65,6 +72,7 @@ public class ReqAndResDto implements Serializable {
|
||||
@SerializedName("Code")
|
||||
@ApiModelProperty("标识应答的返回码")
|
||||
@NotNull(message = "状态码不能为空")
|
||||
@ParamName("Code")
|
||||
private Integer code;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,11 +44,11 @@ public class EpdPqdDto implements Serializable {
|
||||
|
||||
@SerializedName("HarmStart")
|
||||
@ApiModelProperty("数据开始谐波次数")
|
||||
private Integer harmStart;
|
||||
private Double harmStart;
|
||||
|
||||
@SerializedName("HarmEnd")
|
||||
@ApiModelProperty("数据结束谐波次数")
|
||||
private Integer harmEnd;
|
||||
private Double harmEnd;
|
||||
|
||||
@SerializedName("StatMethod")
|
||||
@ApiModelProperty("数据统计方法(max,min,avg,cp95)")
|
||||
|
||||
@@ -6,6 +6,7 @@ import lombok.Data;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -46,7 +47,7 @@ public class CsSoftInfoPO extends BaseEntity {
|
||||
/**
|
||||
* 应用程序发布日期
|
||||
*/
|
||||
private LocalDateTime appDate;
|
||||
private Date appDate;
|
||||
|
||||
/**
|
||||
* 应用程序校验码
|
||||
|
||||
Reference in New Issue
Block a user