MQTT上传文件至装置
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package com.njcn.access.pojo.dto;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author xy
|
||||
*/
|
||||
@Data
|
||||
public class UploadFileDto {
|
||||
|
||||
@SerializedName("Name")
|
||||
@ApiModelProperty("文件名称,全路径")
|
||||
private String name;
|
||||
|
||||
@SerializedName("FileSize")
|
||||
@ApiModelProperty("文件总大小(单位字节)")
|
||||
private Integer fileSize;
|
||||
|
||||
@SerializedName("Offset")
|
||||
@ApiModelProperty("当前上送数据包在文件中偏移位置")
|
||||
private Integer offset;
|
||||
|
||||
@SerializedName("Len")
|
||||
@ApiModelProperty("当前上送数据包长度")
|
||||
private Integer len;
|
||||
|
||||
@SerializedName("Data")
|
||||
@ApiModelProperty("文件包数据")
|
||||
private String data;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.njcn.access.pojo.dto.file;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author xy
|
||||
*/
|
||||
@Data
|
||||
public class FileRedisDto {
|
||||
|
||||
private String name;
|
||||
|
||||
private Integer allStep;
|
||||
|
||||
private Integer nowStep;
|
||||
|
||||
private Integer retry = 0;
|
||||
|
||||
private Integer code;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user