SysOperLog.java 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. package com.ruoyi.system.domain;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableId;
  4. import com.baomidou.mybatisplus.annotation.TableName;
  5. import com.fasterxml.jackson.annotation.JsonFormat;
  6. import com.ruoyi.common.annotation.Excel;
  7. import com.ruoyi.common.annotation.Excel.ColumnType;
  8. import lombok.*;
  9. import lombok.experimental.Accessors;
  10. import java.util.Date;
  11. /**
  12. * 操作日志记录表 oper_log
  13. *
  14. * @author ruoyi
  15. */
  16. @Data
  17. @NoArgsConstructor
  18. @Accessors(chain = true)
  19. @TableName("sys_oper_log")
  20. public class SysOperLog {
  21. private static final long serialVersionUID = 1L;
  22. /**
  23. * 日志主键
  24. */
  25. @Excel(name = "操作序号", cellType = ColumnType.NUMERIC)
  26. @TableId(value = "oper_id", type = IdType.AUTO)
  27. private Long operId;
  28. /**
  29. * 操作模块
  30. */
  31. @Excel(name = "操作模块")
  32. private String title;
  33. /**
  34. * 业务类型(0其它 1新增 2修改 3删除)
  35. */
  36. @Excel(name = "业务类型", readConverterExp = "0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据")
  37. private Integer businessType;
  38. /**
  39. * 业务类型数组
  40. */
  41. private Integer[] businessTypes;
  42. /**
  43. * 请求方法
  44. */
  45. @Excel(name = "请求方法")
  46. private String method;
  47. /**
  48. * 请求方式
  49. */
  50. @Excel(name = "请求方式")
  51. private String requestMethod;
  52. /**
  53. * 操作类别(0其它 1后台用户 2手机端用户)
  54. */
  55. @Excel(name = "操作类别", readConverterExp = "0=其它,1=后台用户,2=手机端用户")
  56. private Integer operatorType;
  57. /**
  58. * 操作人员
  59. */
  60. @Excel(name = "操作人员")
  61. private String operName;
  62. /**
  63. * 部门名称
  64. */
  65. @Excel(name = "部门名称")
  66. private String deptName;
  67. /**
  68. * 请求url
  69. */
  70. @Excel(name = "请求地址")
  71. private String operUrl;
  72. /**
  73. * 操作地址
  74. */
  75. @Excel(name = "操作地址")
  76. private String operIp;
  77. /**
  78. * 操作地点
  79. */
  80. @Excel(name = "操作地点")
  81. private String operLocation;
  82. /**
  83. * 请求参数
  84. */
  85. @Excel(name = "请求参数")
  86. private String operParam;
  87. /**
  88. * 返回参数
  89. */
  90. @Excel(name = "返回参数")
  91. private String jsonResult;
  92. /**
  93. * 操作状态(0正常 1异常)
  94. */
  95. @Excel(name = "状态", readConverterExp = "0=正常,1=异常")
  96. private Integer status;
  97. /**
  98. * 错误消息
  99. */
  100. @Excel(name = "错误消息")
  101. private String errorMsg;
  102. /**
  103. * 操作时间
  104. */
  105. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  106. @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
  107. private Date operTime;
  108. }