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

import com.evobms.project.ota.domain.OtaTasks;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@ApiModel(value = "OtaHistoryResultDTO", description = "OTA操作历史查询结果")
@Data
public class OtaHistoryResultDTO {

    @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 = "设备SN", example = "137PBP1M11001AFCF0000007")
    private String sn;

    @ApiModelProperty(value = "设备ID（平台侧deviceId）", example = "BAT_001")
    private String deviceId;

    @ApiModelProperty(value = "任务列表（按最近时间倒序）")
    private List<OtaTasks> taskList;
}
