MrShi
2025-08-19 30e858fa504b268b9b436afca0a1259cf6e8c488
server/src/main/java/com/doumee/dao/system/model/SystemLoginLog.java
@@ -1,13 +1,10 @@
package com.doumee.dao.system.model;
import com.doumee.core.annotation.excel.ExcelExportColumn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.usermodel.IndexedColors;
import java.util.Date;
@@ -28,47 +25,36 @@
    private Integer userId;
    @ApiModelProperty(value = "登录用户名")
    @ExcelExportColumn(name="登录用户名")
    private String loginUsername;
    @ApiModelProperty(value = "登录IP")
    @ExcelExportColumn(name="登录IP", color = IndexedColors.RED, width = 8)
    private String ip;
    @ApiModelProperty(value = "登录地址")
    @ExcelExportColumn(name="登录地址", width = 10)
    private String location;
    @ApiModelProperty(value = "客户端")
    @ExcelExportColumn(name="客户端", width = 10)
    private String clientInfo;
    @ApiModelProperty(value = "操作系统")
    @ExcelExportColumn(name="操作系统")
    private String osInfo;
    @ApiModelProperty(value = "登录平台")
    @ExcelExportColumn(name="登录平台")
    private String platform;
    @ApiModelProperty(value = "系统版本")
    @ExcelExportColumn(name="系统版本")
    private String systemVersion;
    @ApiModelProperty(value = "服务器IP")
    @ExcelExportColumn(name="服务器IP", width = 8)
    private String serverIp;
    @ApiModelProperty(value = "是否登录成功")
    @ExcelExportColumn(name="是否登录成功", valueMapping = "true=是;false=否", align = HorizontalAlignment.CENTER)
    private Boolean success;
    @ApiModelProperty(value = "失败原因")
    @ExcelExportColumn(name="失败原因", color = IndexedColors.RED, width = 16)
    private String reason;
    @ApiModelProperty(value = "登录时间")
    @ExcelExportColumn(name="登录时间", dateFormat = "yyyy-MM-dd HH:mm:ss", width = 10)
    private Date loginTime;
}