SysOperLog.java 4.2 KB

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