package com.hdkj.lt.modle.vo.measurement;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.Value;

import java.util.List;

@NoArgsConstructor
@Data
@ApiModel("遥测通用查询 配变查询结果")
@JsonIgnoreProperties(ignoreUnknown = true)
public class DistributionReceiveVO {
    private String status;
    private String errors;
    private DistributionReceiveVO.ResultDTO result;

    @NoArgsConstructor
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class ResultDTO {
        private Integer current;
        private Integer total;
        private Integer pages;
        private Integer size;
        private List<DistributionReceiveVO.ResultDTO.RecordsDTO> records;

        @NoArgsConstructor
        @Data
        @JsonIgnoreProperties(ignoreUnknown = true)
        public static class RecordsDTO {
            private String measPointId;
            private String psrId;
            private String psrType;
            private Object astId;
            private Object astType;
            private Object consNo;
            private Object consType;
            private String measTypeCode;
            private String measTypeName;
            private String source;
            private Object pt;
            private Object ct;
            private String locationType;
            private List<DistributionReceiveVO.ResultDTO.RecordsDTO.TelemetryValueDTO> telemetryValue;
            private String tFactor;

            @NoArgsConstructor
            @Data
            public static class TelemetryValueDTO {
                @ApiModelProperty(value = "值")
                private String measValue;
                @ApiModelProperty(value = "时间")
                private String dataTime;
                private String timeInterval;
                private String timeUnit;
            }
        }
    }
}
