SysOperLog.java 3.1 KB

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