package com.njcn.prepare.harmonic.pojo.param;

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

import javax.management.loading.PrivateMLet;
import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * Description:
 * Date: 2023/5/4  15:18【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
@Data
public class DeviceParam {

    private List<DeviceDetail> detailList;

    @ApiModelProperty(name = "dataDate",value = "时间")
    @NotBlank(message = "报表时间不可为空")
    private String dataDate;

    /**
     * 调度任务开始时间
     */
    @NotBlank(message = "调度任务开始时间不可为空")
    private String beginTime;

    /**
     * 调度任务结束时间
     */
    @NotBlank(message = "调度任务结束时间不可为空")
    private String endTime;


    /**
     * 是否补招标识,默认false不补招
     */
    @ApiModelProperty(name = "repairFlag",value = "0.不补招 1.补招",example = "false")
    private Boolean repairFlag = false;

    @Data
    public static class DeviceDetail{
        @ApiModelProperty(name = "devId",value = "终端id")
        private String devId;

        @ApiModelProperty(name = "updateTime",value = "终端最后统计时间")
        private String updateTime;

        @ApiModelProperty(name = "lineIds",value = "监测点索引集合")
        private List<String> lineIds;

        private String deviceStatus;
    }
}
