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

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

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @Description: 终端信息
 * @Author: wr
 * @Date: 2023/11/7 15:34
 */
@Data
public class DevDetail {

    @ApiModelProperty("终端id")
    private String devIndex;

    @ApiModelProperty("终端名称")
    private String devName;

    @ApiModelProperty("ip")
    private String ip;

    @ApiModelProperty("供电公司")
    private String gdName;

    @ApiModelProperty("所属部门")
    private String deptName;

    @ApiModelProperty("变电站名称")
    private String bdzName;

    @ApiModelProperty("数据更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime timeID;

    @ApiModelProperty("终端等级")
    private String lineGrade;

    @ApiModelProperty("终端厂商")
    private String manufacturer;

    @ApiModelProperty("通讯状态（0：中断；1：正常）")
    private Integer comFlag;

    @ApiModelProperty("运行状态（0：运行；1：检修；2：停运；3：调试；4：退运）")
    private Integer runFlag;

    @ApiModelProperty("定检时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate nextTimeCheck;

    @Data
    public static class DevPowerFlag{
        @ApiModelProperty("终端id")
        private String devIndex;

        @ApiModelProperty(name = "powerFlag",value = "用户性质")
        private String powerFlag;
    }
}
