package com.njcn.csdevice.pojo.vo;

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

import java.util.List;

/**
 * 类的介绍：方案树、测试项树、基础数据树
 *
 * @author xuyang
 * @version 1.0.0
 * @createTime 2024/4/2 10:23
 */
@Data
public class RecordAllDevTreeVo {

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("设备名称")
    private String name;

    @ApiModelProperty("设备状态")
    private Integer runStatus;

    @ApiModelProperty("线路")
    private List<RecordAllLineTreeVo> children;

    @Data
    public static class RecordAllLineTreeVo {

        @ApiModelProperty("线路ID")
        private String id;

        @ApiModelProperty("线路名称")
        private String name;

        @ApiModelProperty("设备ID")
        private String pid;

        @ApiModelProperty("线路")
        private List<RecordAllTimeTreeVo> children;

    }

    @Data
    public static class RecordAllTimeTreeVo {

        @ApiModelProperty("数据ID")
        private String id;

        @ApiModelProperty("数据名称(开始时间-结束时间)")
        private String name;

        @ApiModelProperty("监测点ID")
        private String pid;

    }
}
