package com.njcn.csdevice.pojo.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.njcn.db.bo.BaseEntity;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * Description:
 * Date: 2023/5/16  16:25【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
@Data
@TableName(value = "cs_equipment_alarm")
public class CsEquipmentAlarmVO extends BaseEntity {
    /**
     * id
     */
    private String id;


    /**
     * 项目Id
     */
    private String projectId;
    /**
     * 项目名称
     */
    private String projectName;

    /**
     * 设备id
     */
    private String equipmentId;

    /**
     * 设备名称
     */
    private String equipmentName;

    /**
     * 告警信息
     */
    private String alarmMsg;

    /**
     * 告警级别(字典表)
     */
    private String alarmLevel;

    /**
     * 告警级别名称
     */
    private String alarmLevelName;

    /**
     * 开始时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime endTime;


}