SysOperLog.java 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. package com.ruoyi.system.domain;
  2. import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
  3. import com.alibaba.excel.annotation.ExcelProperty;
  4. import com.baomidou.mybatisplus.annotation.TableField;
  5. import com.baomidou.mybatisplus.annotation.TableId;
  6. import com.baomidou.mybatisplus.annotation.TableName;
  7. import com.ruoyi.common.annotation.ExcelDictFormat;
  8. import com.ruoyi.common.convert.ExcelDictConvert;
  9. import io.swagger.v3.oas.annotations.media.Schema;
  10. import lombok.Data;
  11. import java.io.Serializable;
  12. import java.util.Date;
  13. import java.util.HashMap;
  14. import java.util.Map;
  15. /**
  16. * 操作日志记录表 oper_log
  17. *
  18. * @author Lion Li
  19. */
  20. @Data
  21. @TableName("sys_oper_log")
  22. @ExcelIgnoreUnannotated
  23. @Schema(name = "操作日志记录业务对象")
  24. public class SysOperLog implements Serializable {
  25. private static final long serialVersionUID = 1L;
  26. /**
  27. * 日志主键
  28. */
  29. @Schema(name = "日志主键")
  30. @ExcelProperty(value = "日志主键")
  31. @TableId(value = "oper_id")
  32. private Long operId;
  33. /**
  34. * 操作模块
  35. */
  36. @Schema(name = "操作模块")
  37. @ExcelProperty(value = "操作模块")
  38. private String title;
  39. /**
  40. * 业务类型(0其它 1新增 2修改 3删除)
  41. */
  42. @Schema(name = "业务类型(0其它 1新增 2修改 3删除)")
  43. @ExcelProperty(value = "业务类型", converter = ExcelDictConvert.class)
  44. @ExcelDictFormat(dictType = "sys_oper_type")
  45. private Integer businessType;
  46. /**
  47. * 业务类型数组
  48. */
  49. @Schema(name = "业务类型数组")
  50. @TableField(exist = false)
  51. private Integer[] businessTypes;
  52. /**
  53. * 请求方法
  54. */
  55. @Schema(name = "请求方法")
  56. @ExcelProperty(value = "请求方法")
  57. private String method;
  58. /**
  59. * 请求方式
  60. */
  61. @Schema(name = "请求方式")
  62. @ExcelProperty(value = "请求方式")
  63. private String requestMethod;
  64. /**
  65. * 操作类别(0其它 1后台用户 2手机端用户)
  66. */
  67. @Schema(name = "操作类别(0其它 1后台用户 2手机端用户)")
  68. @ExcelProperty(value = "操作类别", converter = ExcelDictConvert.class)
  69. @ExcelDictFormat(readConverterExp = "0=其它,1=后台用户,2=手机端用户")
  70. private Integer operatorType;
  71. /**
  72. * 操作人员
  73. */
  74. @Schema(name = "操作人员")
  75. @ExcelProperty(value = "操作人员")
  76. private String operName;
  77. /**
  78. * 部门名称
  79. */
  80. @Schema(name = "部门名称")
  81. @ExcelProperty(value = "部门名称")
  82. private String deptName;
  83. /**
  84. * 请求url
  85. */
  86. @Schema(name = "请求url")
  87. @ExcelProperty(value = "请求地址")
  88. private String operUrl;
  89. /**
  90. * 操作地址
  91. */
  92. @Schema(name = "操作地址")
  93. @ExcelProperty(value = "操作地址")
  94. private String operIp;
  95. /**
  96. * 操作地点
  97. */
  98. @Schema(name = "操作地点")
  99. @ExcelProperty(value = "操作地点")
  100. private String operLocation;
  101. /**
  102. * 请求参数
  103. */
  104. @Schema(name = "请求参数")
  105. @ExcelProperty(value = "请求参数")
  106. private String operParam;
  107. /**
  108. * 返回参数
  109. */
  110. @Schema(name = "返回参数")
  111. @ExcelProperty(value = "返回参数")
  112. private String jsonResult;
  113. /**
  114. * 操作状态(0正常 1异常)
  115. */
  116. @Schema(name = "操作状态(0正常 1异常)")
  117. @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
  118. @ExcelDictFormat(dictType = "sys_common_status")
  119. private Integer status;
  120. /**
  121. * 错误消息
  122. */
  123. @Schema(name = "错误消息")
  124. @ExcelProperty(value = "错误消息")
  125. private String errorMsg;
  126. /**
  127. * 操作时间
  128. */
  129. @Schema(name = "操作时间")
  130. @ExcelProperty(value = "操作时间")
  131. private Date operTime;
  132. /**
  133. * 请求参数
  134. */
  135. @Schema(name = "请求参数")
  136. @TableField(exist = false)
  137. private Map<String, Object> params = new HashMap<>();
  138. }