package com.evobms.project.ota.domain;

import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.evobms.framework.aspectj.lang.annotation.Excel;
import com.evobms.framework.web.domain.BaseEntity;

/**
 * OTA任务对象 ota_tasks
 *
 * @author ruoyi
 * @date 2025-10-14
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "OTA任务对象")
@Data
public class OtaTasks extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务ID（UUID） */
    @ApiModelProperty(value = "任务ID（UUID）")
    private String id;

    /** 设备ID */
    @ApiModelProperty(value = "设备ID")
    @Excel(name = "设备ID")
    private String deviceId;

    /** 任务名称 */
    @ApiModelProperty(value = "任务名称")
    @Excel(name = "任务名称")
    private String taskName;

    /** 目标固件版本 */
    @ApiModelProperty(value = "目标固件版本")
    @Excel(name = "目标固件版本")
    private String firmwareVersion;

    /** 任务状态 */
    @ApiModelProperty(value = "任务状态")
    @Excel(name = "任务状态")
    private String status;

    /** 升级进度(0-100) */
    @ApiModelProperty(value = "升级进度(0-100)")
    @Excel(name = "升级进度(0-100)")
    private Long progress;

    /** 开始时间 */
    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 错误信息 */
    @ApiModelProperty(value = "错误信息")
    @Excel(name = "错误信息")
    private String errorMessage;


}
