package com.njcn.device.pms.pojo.vo;

import com.njcn.device.biz.pojo.po.PqsDeviceUnit;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author wr
 * @description
 * @date 2023/8/21 10:16
 */
@Data
public class DeviceUnitVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    private String id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "频率")
    private String unitFrequency;

    @ApiModelProperty(value = "频率偏差")
    private String unitFrequencyDev;

    @ApiModelProperty(value = "相电压有效值")
    private String phaseVoltage;

    @ApiModelProperty(value = "线电压有效值")
    private String lineVoltage;

    @ApiModelProperty(value = "电压上偏差")
    private String voltageDev;

    @ApiModelProperty(value = "电压下偏差")
    private String uvoltageDev;

    @ApiModelProperty(value = "电流有效值")
    private String ieffective;

    @ApiModelProperty(value = "单相有功功率")
    private String singleP;

    @ApiModelProperty(value = "单相视在功率")
    private String singleViewP;

    @ApiModelProperty(value = "单相无功功率")
    private String singleNoP;

    @ApiModelProperty(value = "总有功功率")
    private String totalActiveP;

    @ApiModelProperty(value = "总视在功率")
    private String totalViewP;

    @ApiModelProperty(value = "总无功功率")
    private String totalNoP;

    @ApiModelProperty(value = "相（线）电压基波有效值")
    private String vfundEffective;

    @ApiModelProperty(value = "基波电流")
    private String ifund;

    @ApiModelProperty(value = "基波有功功率")
    private String fundActiveP;

    @ApiModelProperty(value = "基波无功功率")
    private String fundNoP;

    @ApiModelProperty(value = "电压总谐波畸变率")
    private String vdistortion;

    @ApiModelProperty(value = "2～50次谐波电压含有率")
    private String vharmonicRate;

    @ApiModelProperty(value = "2～50次谐波电流有效值")
    private String iharmonic;

    @ApiModelProperty(value = "2～50次谐波有功功率")
    private String pharmonic;

    @ApiModelProperty(value = "0.5～49.5次间谐波电流有效值")
    private String iiharmonic;

    @ApiModelProperty(value = "正序电压")
    private String positiveV;

    @ApiModelProperty(value = "运行状态")
    private String devFlag;

    @ApiModelProperty(value = "零序负序电压")
    private String noPositiveV;
    @ApiModelProperty(value = "子集数据")
    List<?> children;

    @Data
    public static class DeviceUnit extends PqsDeviceUnit {

        @ApiModelProperty(value = "编号")
        private String id;

        @ApiModelProperty(value = "父节点")
        private String pid;

        @ApiModelProperty(value = "名称")
        private String name;

        @ApiModelProperty(value = "运行状态")
        private String devFlag;

        @ApiModelProperty(value = "子集数据")
        List<?> children;
    }
}
