LoginLogEntity.java 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package com.huaxu.entity;
  2. import com.alibaba.excel.annotation.ExcelIgnore;
  3. import com.alibaba.excel.annotation.ExcelProperty;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import io.swagger.annotations.ApiModelProperty;
  6. import lombok.Data;
  7. import java.io.Serializable;
  8. import java.util.Date;
  9. /**
  10. * @description 登录日志实体类(uims_login_log)
  11. * @auto wangli
  12. * @data 2020-10-26 15:51
  13. */
  14. @Data
  15. public class LoginLogEntity implements Serializable {
  16. private static final long serialVersionUID = 2497615333704709016L;
  17. @ExcelIgnore
  18. @ApiModelProperty(value = "主键id")
  19. private Long id ;
  20. @ExcelProperty(value = {"登录日志","用户名"},index = 2)
  21. @ApiModelProperty(value = "用户名")
  22. private String name;
  23. @ExcelProperty(value = {"登录日志","手机号"},index = 3)
  24. @ApiModelProperty(value = "手机号")
  25. private String phone;
  26. @ExcelIgnore
  27. @ApiModelProperty(value = "租户标识")
  28. private String tenantId;
  29. @ExcelIgnore
  30. @ApiModelProperty(value = "公司id")
  31. private Long companyId;
  32. @ExcelIgnore
  33. @ApiModelProperty(value = "部门id")
  34. private Long departmentId;
  35. @ExcelProperty(value = {"登录日志","登录类型"},index = 4)
  36. @ApiModelProperty(value = "登录类型")
  37. private String type;
  38. @ExcelProperty(value = {"登录日志","创建时间"},index = 6)
  39. @ApiModelProperty(value = "创建时间",example = "2020-12-12 12:12:12")
  40. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  41. private Date createTime;
  42. @ExcelProperty(value = {"登录日志","登录IP"},index = 5)
  43. @ApiModelProperty(value = "登录IP",example = "2020-12-12 12:12:12")
  44. private String loginIp;
  45. }