package com.inspect.base.core.domain;

import com.inspect.base.core.annotation.Excel;
import com.inspect.base.core.web.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter
@Getter
public class SysWarning extends BaseEntity {
    private Integer id;
    @Excel(
            name = "告警内容",
            sort = 2
    )
    private String text;
    @Excel(
            name = "相关人",
            sort = 1
    )
    private String userName;
    @Excel(
            name = "消息来源",
            sort = 3
    )
    private String sourceName;
    @Excel(
            name = "告警级别",
            sort = 4,
            readConverterExp = "1=一般,2=严重"
    )
    private Integer level;
    @Excel(
            name = "告警类型",
            sort = 5,
            readConverterExp = "0=登录"
    )
    private Integer type;
    @Excel(
            name = "告警时间",
            dateFormat = "yyyy-MM-dd HH:mm:ss"
    )
    private Date time;
    private Date begin;
    private Date end;
    private Integer pageNum;
    private Integer pageSize;

}
