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 16:34:48
 */
@Data
public class RealTimeDataResponse {
    @ApiModelProperty(value = "分页大小")
    private Integer pageSize;

    @ApiModelProperty(value = "页码")
    private Integer pageNo;

    @ApiModelProperty(value = "总数")
    private Integer totalCount;

    @ApiModelProperty(value = "返回数据对象")
    private List<Result> result;

    @Data
    public static class Result {

        @ApiModelProperty(value = "设备编码")
        private String fsuCode;

        @ApiModelProperty(value = "通道编号")
        private String channelCode;

        @ApiModelProperty(value = "通道名称")
        private String channelName;

        @ApiModelProperty(value = "时间")
        private String time;

        @ApiModelProperty(value = "实时数据")
        private List<DataItem> dataList;

        private String channelId;
        private String failureCause;
        private String result;
        private String domainId;
    }


    @Data
    public static class DataItem {

        @ApiModelProperty(value = "数据类型：1，遥控；2，遥调；3，遥测；4，遥信")
        private Integer type;

        @ApiModelProperty(value = "点位编码")
        private String signalCode;

        @ApiModelProperty(value = "点位名称")
        private String signalName;

        @ApiModelProperty(value = "测量值")
        private String measuredVal;

        @ApiModelProperty(value = "测量值含义")
        private String measuredValName;

        private String setupVal;

        @ApiModelProperty(value = "点位单位")
        private String signalUnit;

        @ApiModelProperty(value = "状态：0，正常；1-4，告警")
        private Integer status;

        private String time;

        private String serialNo;
    }
}
