TbSysOperLog.java 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. /*
  2. *
  3. * * | Licensed 未经许可不能去掉「OPENIITA」相关版权
  4. * * +----------------------------------------------------------------------
  5. * * | Author: xw2sy@163.com
  6. * * +----------------------------------------------------------------------
  7. *
  8. * Copyright [2024] [OPENIITA]
  9. *
  10. * Licensed under the Apache License, Version 2.0 (the "License");
  11. * you may not use this file except in compliance with the License.
  12. * You may obtain a copy of the License at
  13. *
  14. * http://www.apache.org/licenses/LICENSE-2.0
  15. *
  16. * Unless required by applicable law or agreed to in writing, software
  17. * distributed under the License is distributed on an "AS IS" BASIS,
  18. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19. * See the License for the specific language governing permissions and
  20. * limitations under the License.
  21. * /
  22. */
  23. package cc.iotkit.data.model;
  24. import cc.iotkit.model.system.SysOperLog;
  25. import io.github.linpeilie.annotations.AutoMapper;
  26. import io.swagger.annotations.ApiModel;
  27. import io.swagger.annotations.ApiModelProperty;
  28. import lombok.Data;
  29. import org.hibernate.annotations.GenericGenerator;
  30. import javax.persistence.*;
  31. import java.io.Serializable;
  32. import java.util.Date;
  33. /**
  34. * 操作日志记录表 oper_log
  35. *
  36. * @author Lion Li
  37. */
  38. @Data
  39. @Entity
  40. @Table(name = "oper_log")
  41. @AutoMapper(target = SysOperLog.class)
  42. @ApiModel(value = "操作日志记录表")
  43. public class TbSysOperLog implements Serializable {
  44. private static final long serialVersionUID = 1L;
  45. /**
  46. * 日志主键
  47. */
  48. @Id
  49. @GeneratedValue(generator = "SnowflakeIdGenerator")
  50. @GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator")
  51. @ApiModelProperty(value = "日志主键")
  52. private Long id;
  53. /**
  54. * 租户编号
  55. */
  56. @ApiModelProperty(value = "租户编号")
  57. private Long tenantId;
  58. /**
  59. * 操作模块
  60. */
  61. @ApiModelProperty(value = "操作模块")
  62. private String title;
  63. /**
  64. * 业务类型(0其它 1新增 2修改 3删除)
  65. */
  66. @ApiModelProperty(value = "业务类型(0其它 1新增 2修改 3删除)")
  67. private Integer businessType;
  68. /**
  69. * 请求方法
  70. */
  71. @ApiModelProperty(value = "请求方法")
  72. private String method;
  73. /**
  74. * 请求方式
  75. */
  76. @ApiModelProperty(value = "请求方式")
  77. private String requestMethod;
  78. /**
  79. * 操作类别(0其它 1后台用户 2手机端用户)
  80. */
  81. @ApiModelProperty(value = "操作类别(0其它 1后台用户 2手机端用户)")
  82. private Integer operatorType;
  83. /**
  84. * 操作人员
  85. */
  86. @ApiModelProperty(value = "操作人员")
  87. private String operName;
  88. /**
  89. * 部门名称
  90. */
  91. @ApiModelProperty(value = "部门名称")
  92. private String deptName;
  93. /**
  94. * 请求url
  95. */
  96. @ApiModelProperty(value = "请求url")
  97. private String operUrl;
  98. /**
  99. * 操作地址
  100. */
  101. @ApiModelProperty(value = "操作地址")
  102. private String operIp;
  103. /**
  104. * 操作地点
  105. */
  106. @ApiModelProperty(value = "操作地点")
  107. private String operLocation;
  108. /**
  109. * 请求参数
  110. */
  111. @ApiModelProperty(value = "请求参数")
  112. @Column(length = 2000)
  113. private String operParam;
  114. /**
  115. * 返回参数
  116. */
  117. @ApiModelProperty(value = "返回参数")
  118. @Column(length = 2000)
  119. private String jsonResult;
  120. /**
  121. * 操作状态(0正常 1异常)
  122. */
  123. @ApiModelProperty(value = "操作状态(0正常 1异常)")
  124. private Integer status;
  125. /**
  126. * 错误消息
  127. */
  128. @ApiModelProperty(value = "错误消息")
  129. @Column(length = 2000)
  130. private String errorMsg;
  131. /**
  132. * 操作时间
  133. */
  134. @ApiModelProperty(value = "操作时间")
  135. private Date operTime;
  136. /**
  137. * 消耗时间
  138. */
  139. @ApiModelProperty(value = "消耗时间")
  140. private Long costTime;
  141. }