package com.zksy.visualization.domain.response;

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

import java.util.List;

/**
 * @author Administrator
 * @version 1.0
 * @project dh-server-micro
 * @description 批量开启/关闭、单个设备开启/关闭
 * @date 2024/12/19 08:46:18
 */
@Data
public class DevicesOperatorResponse {

    @ApiModelProperty(value = "成功操作的空开数量")
    private Integer successCount;

    @ApiModelProperty(value = "操作失败的空开信息")
    private List<FailDeviceInfo> failData;

    @Data
    class FailDeviceInfo {
        @ApiModelProperty(value = "失败的空开名称")
        private String deviceName;

        @ApiModelProperty(value = "空开的失败原因")
        private String reason;
    }
}

