package com.jilongda.common.model; import cn.afterturn.easypoi.excel.annotation.Excel; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import java.time.LocalDateTime; /** *
* 登录日志 *
* * @author xiaochen * @since 2022-09-21 */ @Data @EqualsAndHashCode(callSuper = false) @TableName("login_log") @ApiModel(value = "LoginLog对象", description = "登录日志") public class LoginLog { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) private Long id; @ApiModelProperty(value = "操作人员姓名") @TableField("user_name") @Excel(name = "操作人员姓名") private String userName; @ApiModelProperty(value = "操作人员账号") @TableField("account") @Excel(name = "操作人员账号") private String account; @ApiModelProperty(value = "工作地") @TableField("work_address") private String workAddress; @ApiModelProperty(value = "登录地址") @TableField("login_address") @Excel(name = "登录地址") private String loginAddress; @ApiModelProperty(value = "登录时间") @TableField("login_time") private LocalDateTime loginTime; @ApiModelProperty(value = "登录IP") @TableField("login_ip") @Excel(name = "登录IP") private String loginIp; @ApiModelProperty(value = "登录设备") @TableField("equipment") @Excel(name = "登录设备") private String equipment; @ApiModelProperty(value = "openId") @TableField("open_id") @Excel(name = "openId") private String openId; @ApiModelProperty(value = "小程序或后台 1小程序 2后台") @TableField("applet_or_manage") @Excel(name = "小程序或后台 1小程序 2后台", replace = {"小程序_1", "后台_2"}) private Integer appletOrManage; @TableField(exist = false) @Excel(name = "登录时间") private String loginTimeExport; }