package com.inspect.system.base.domain;

import com.inspect.base.core.annotation.Excel;
import com.inspect.base.core.annotation.Excel.ColumnType;
import com.inspect.base.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter
@Getter
public class SysLoginFor extends BaseEntity {
    private static final long serialVersionUID = 1L;
    @Excel(
            name = "序号",
            cellType = ColumnType.NUMERIC
    )
    private Long infoId;
    @Excel(
            name = "用户账号"
    )
    private String userName;
    @Excel(
            name = "状态",
            readConverterExp = "0=成功,1=失败"
    )
    private String status;
    @Excel(
            name = "地址"
    )
    private String ipaddr;
    @Excel(
            name = "描述"
    )
    private String msg;
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @Excel(
            name = "访问时间",
            width = 30.0D,
            dateFormat = "yyyy-MM-dd HH:mm:ss"
    )
    private Date accessTime;

}
