MQTT上传文件至装置

This commit is contained in:
xy
2024-08-13 10:51:19 +08:00
parent c6213d06e5
commit 04e59d2282
9 changed files with 239 additions and 7 deletions

View File

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

View File

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