package com.njcn.product.event.transientes.pojo.po;

/**
 * @Author: cdf
 * @CreateTime: 2025-06-27
 * @Description:
 */
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * MSG_EVENT_CONFIG表实体类
 */
@Data
@TableName("MSG_EVENT_CONFIG")
@ToString
public class MsgEventConfig implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId("ID")
    private String id;

    /**
     * 严重通知标识
     */
    @TableField("SERIOUS_NOTICE")
    @NotNull(message = "严重通知标识不可为空")
    private Integer seriousNotice;

    /**
     * 普通通知标识
     */
    @TableField("NORMAL_NOTIC")
    @NotNull(message = "普通通知标识不可为空")
    private Integer normalNotic;

    /**
     * 语音类型
     */
    @TableField("VOICE_TYPE")
    @NotNull(message = "语音类型不可为空")
    private Integer voiceType;

    /**
     * 屏幕通知标识
     */
    @TableField("SCREEN_NOTIC")
    @NotNull(message = "屏幕通知标识不可为空")
    private Integer screenNotic;

    /**
     * 暂降类型，以逗号隔开
     */
    private String eventType;

    /**
     * 暂降残余电压告警阈值
     */
    private Float eventValue;

    /**
     * 暂降持续时间告警阈值
     */
    private Integer eventDuration;


    @NotEmpty(message = "事件类型不可为空")
    @TableField(exist = false)
    private List<String> eventTypeList;


}
