SysOperLog.java 3.1 KB

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