package com.evobms.project.iot.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(value = "OtaUploadResultDTO", description = "OTA固件上传结果")
@Data
public class OtaUploadResultDTO {

    @ApiModelProperty(value = "状态码", example = "200")
    private Integer code;

    @ApiModelProperty(value = "是否成功，1成功/0失败", example = "1")
    private String success;

    @ApiModelProperty(value = "提示信息", example = "success")
    private String msg;

    @ApiModelProperty(value = "固件落盘路径", example = "E:/OTA/v1.0.3.bin")
    private String path;

    @ApiModelProperty(value = "文件大小(字节)", example = "102400")
    private Long size;

    @ApiModelProperty(value = "分片总数", example = "100")
    private Integer chunks;

    @ApiModelProperty(value = "分片大小(字节)", example = "1024")
    private Integer chunkSize;
}
