package com.bonus.common.entity.bracelet.vo;

import com.bonus.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * @className:BallWarnVo
 * @author:cwchen
 * @date:2024-08-08-18:06
 * @version:1.0
 * @description:告警信息
 */
@Data
public class WarnInfoVo {
    /**设备类型*/
    private String devTypeName;
    /**设备名称*/
    private String devName;
    /**告警内容*/
    private String warnContent;
    /**告警时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date warnTime;
    /**违章识别图片的base64地址*/
    private String base64Url;
    /**人员姓名*/
    private String name;
    /**是否加载图片*/
    private Boolean isLoad = false;

    /** 班组id */
    @Excel(name = "班组id")
    private Long teamId;

    /** 请求参数 */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;

    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }
}
