aac9cb558f0138fe9e613af375bdfff982215bb4.svn-base 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. package org.jeecg.modules.system.entity;
  2. import java.util.Date;
  3. import org.jeecg.common.aspect.annotation.Dict;
  4. import org.springframework.format.annotation.DateTimeFormat;
  5. import com.baomidou.mybatisplus.annotation.IdType;
  6. import com.baomidou.mybatisplus.annotation.TableId;
  7. import com.fasterxml.jackson.annotation.JsonFormat;
  8. import java.io.Serializable;
  9. import lombok.Data;
  10. import lombok.EqualsAndHashCode;
  11. import lombok.experimental.Accessors;
  12. /**
  13. * <p>
  14. * 系统日志表
  15. * </p>
  16. *
  17. * @Author zhangweijian
  18. * @since 2018-12-26
  19. */
  20. @Data
  21. @EqualsAndHashCode(callSuper = false)
  22. @Accessors(chain = true)
  23. public class SysLog implements Serializable {
  24. private static final long serialVersionUID = 1L;
  25. /**
  26. * id
  27. */
  28. @TableId(type = IdType.ASSIGN_ID)
  29. private String id;
  30. /**
  31. * 创建人
  32. */
  33. private String createBy;
  34. /**
  35. * 创建时间
  36. */
  37. @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  38. @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  39. private Date createTime;
  40. /**
  41. * 更新人
  42. */
  43. private String updateBy;
  44. /**
  45. * 更新时间
  46. */
  47. private Date updateTime;
  48. /**
  49. * 耗时
  50. */
  51. private Long costTime;
  52. /**
  53. * IP
  54. */
  55. private String ip;
  56. /**
  57. * 请求参数
  58. */
  59. private String requestParam;
  60. /**
  61. * 请求类型
  62. */
  63. private String requestType;
  64. /**
  65. * 请求路径
  66. */
  67. private String requestUrl;
  68. /**
  69. * 请求方法
  70. */
  71. private String method;
  72. /**
  73. * 操作人用户名称
  74. */
  75. private String username;
  76. /**
  77. * 操作人用户账户
  78. */
  79. private String userid;
  80. /**
  81. * 操作详细日志
  82. */
  83. private String logContent;
  84. /**
  85. * 日志类型(1登录日志,2操作日志)
  86. */
  87. @Dict(dicCode = "log_type")
  88. private Integer logType;
  89. /**
  90. * 操作类型(1查询,2添加,3修改,4删除,5导入,6导出)
  91. */
  92. @Dict(dicCode = "operate_type")
  93. private Integer operateType;
  94. }