package com.njcn.product.terminal.mysqlTerminal.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * pqs
 * 终端树实体
 * @author cdf
 * @date 2021/7/19
 */
@ApiModel
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TerminalTree implements Serializable {
    @ApiModelProperty(name = "index",value = "序号")
    private Integer index;

    private String id;
    @ApiModelProperty(name = "parentId",value = "父id")
    private String pid;
    @ApiModelProperty(name = "level",value = "等级")
    private Integer level;
    @ApiModelProperty(name = "name",value = "名称")
    private String name;
    @ApiModelProperty(name = "sort",value = "排序")
    private Integer sort;
    @ApiModelProperty(name = "comFlag",value = "设备状态")
    private Integer comFlag;

    @ApiModelProperty(name = "children",value = "子节点")
    private List<TerminalTree> children = new ArrayList<>();

    private String pids;

    /**
     * 终端厂家
     */
    private String manufacturer;

    /**
     * 电压等级Id，字典表
     */
    private String scale;

    /**
     * 干扰源类型,字典表
     */
    private String loadType;

    /**
     * 接线方式
     */
    private Integer ptType;

    /**
     * 电网标志（0-电网侧；1-非电网侧）
     */
    private Integer powerFlag;

    /**
     * 电网侧变电站
     */
    private String powerSubstationName;

    /**
     * 电网侧变电站
     */
    private String objName;

    private String objId;
}
