SysOperLog.java 3.3 KB

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