package com.ltgk.boat.domain.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 业务版首页滚动告警视图
 *
 * @author Qi ChengBin
 * @date 2025/03/12
 */
@Data
@Accessors(chain = true)
public class IndexAlarmInfoWebsocketVO {

    @JsonProperty(value = "alarmInfo")
    @ApiModelProperty(value = "报警内容")
    private String alarmInfo;

    @JsonProperty(value = "alarmTime")
    @ApiModelProperty(value = "报警时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String alarmTime;

    @JsonProperty(value = "heartbeat")
    @ApiModelProperty(value = "心跳检测使用")
    private String heartbeat;
}
