package com.njcn.system.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @version 1.0.0
 * @author: chenchao
 * @date: 2022/07/18 11:04
 */
@Getter
@Setter
@EqualsAndHashCode
public class UserLogExcel implements Serializable {

    @ColumnWidth(20)
    @ExcelProperty(value = "id主键")
    private String id;

    @ColumnWidth(20)
    @ExcelProperty(value = "登录名")
    private String loginName;

    @ColumnWidth(20)
    @ExcelProperty(value = "用户名")
    private String userName;

    @ColumnWidth(20)
    @ExcelProperty(value = "操作ip")
    private String ip;

    @ColumnWidth(20)
    @ExcelProperty(value = "操作内容")
    private String operate;

    @ColumnWidth(15)
    @ExcelProperty(value = "操作类型")
    private String operateType;

    @ColumnWidth(20)
    @ExcelProperty(value = "操作结果")
    private Integer result;

    @ColumnWidth(20)
    @ExcelProperty(value = "失败原因")
    private String failReason;

    @ColumnWidth(30)
    @ExcelProperty(value = "时间等级(严重度)")
    private Integer level;

    @ColumnWidth(20)
    @ExcelProperty(value = "事件类型")
    private Integer type;

    @ColumnWidth(20)
    @ExcelProperty(value = "模块名称")
    private String serviceName="暂态";

    @ColumnWidth(20)
    @ExcelProperty(value = "告警标志")
    private Integer state;

    @ColumnWidth(20)
    @ExcelProperty(value = "创建用户")
    private String createBy;

    @ColumnWidth(20)
    @ExcelProperty(value = "创建时间" )
    private String createTime;

    @ColumnWidth(20)
    @ExcelProperty(value = "更新用户")
    private String updateBy;

    @ColumnWidth(20)
    @ExcelProperty(value = "更新时间" )
    private String updateTime;

}
