package com.njcn.csdevice.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 类的介绍：
 *
 * @author xuyang
 * @version 1.0.0
 * @createTime 2023/6/15 15:23
 */
@Data
public class DeviceManagerVO {

    @ApiModelProperty("识别码")
    private String ndid;

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

    @ApiModelProperty(value = "装置类型(前端根据字典自己查询)")
    private String devType;

    @ApiModelProperty(value = "设备型号(前端根据字典自己查询)")
    private String devModel;

    @ApiModelProperty(value = "装置接入方式(cloud转为云前置)")
    private String devAccessMethod;

    @ApiModelProperty(value = "装置接入时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDateTime time;

    @ApiModelProperty(value = "装置数据集集合")
    private List<DataSetVO> dataSetList;

    @ApiModelProperty(value = "装置数据标识")
    private String dataLevel;

    @ApiModelProperty(value = "应用程序版本号")
    private String appVersion;

    @ApiModelProperty(value = "应用程序发布日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDateTime appDate;

    @ApiModelProperty(value = "应用程序校验码")
    private String appCheck;

    @Data
    public static class DataSetVO {
        @ApiModelProperty(value = "数据集Id")
        private String id;

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

        @ApiModelProperty(value = "数据类型 rt:实时数据 history:历史数据")
        private String type;

        @ApiModelProperty(value = "排序")
        private Integer sort;
    }
}
