package com.zksy.manhole.dto.out;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 终端故障VO — 含关联设备信息
 */
@Data
@ApiModel("终端故障-关联设备信息")
public class TerminalFaultVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("故障ID")
    private Long faultId;

    @ApiModelProperty("故障编号")
    private String faultNo;

    @ApiModelProperty("设备ID")
    private String deviceId;

    @ApiModelProperty("设备编码")
    private String deviceCode;

    @ApiModelProperty("设备名称(来自equipment_base)")
    private String deviceName;

    @ApiModelProperty("设备类型名称")
    private String deviceType;

    @ApiModelProperty("安装地址")
    private String address;

    @ApiModelProperty("故障等级: 1-严重 2-一般")
    private Integer faultLevel;

    @ApiModelProperty("故障等级文本")
    private String levelText;

    @ApiModelProperty("故障描述")
    private String alarmDesc;

    @ApiModelProperty("故障来源")
    private Integer faultSource;

    @ApiModelProperty("故障状态")
    private Integer faultStatus;

    @ApiModelProperty("处理状态文本")
    private String processStatus;

    @ApiModelProperty("故障时间")
    @JsonFormat(locale = "zh", pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date alarmTime;
}
