|
@@ -1,206 +0,0 @@
|
|
|
-package com.usky.entity.sys.log;
|
|
|
-
|
|
|
-import javax.persistence.*;
|
|
|
-import java.sql.Timestamp;
|
|
|
-import java.util.Objects;
|
|
|
-
|
|
|
-/**
|
|
|
- * @author laowo
|
|
|
- * @version v1.0
|
|
|
- * @date 2021/7/14 13:57
|
|
|
- * @description 系统日志DTO
|
|
|
- **/
|
|
|
-@Entity
|
|
|
-@Table(name = "sys_log", schema = "sd_party_school", catalog = "")
|
|
|
-public class SysLogDTO {
|
|
|
- private long id;
|
|
|
- private Integer logType;
|
|
|
- private String logContent;
|
|
|
- private Integer operateType;
|
|
|
- private String userid;
|
|
|
- private String username;
|
|
|
- private String ip;
|
|
|
- private String method;
|
|
|
- private String requestUrl;
|
|
|
- private String requestParam;
|
|
|
- private String requestType;
|
|
|
- private Long costTime;
|
|
|
- private String createBy;
|
|
|
- private Timestamp createTime;
|
|
|
- private String updateBy;
|
|
|
- private Timestamp updateTime;
|
|
|
-
|
|
|
-
|
|
|
- @Id
|
|
|
- @Column(name = "id")
|
|
|
- public long getId() {
|
|
|
- return id;
|
|
|
- }
|
|
|
-
|
|
|
- public void setId(long id) {
|
|
|
- this.id = id;
|
|
|
- }
|
|
|
-
|
|
|
- @Basic
|
|
|
- @Column(name = "log_type", nullable = true)
|
|
|
- public Integer getLogType() {
|
|
|
- return logType;
|
|
|
- }
|
|
|
-
|
|
|
- public void setLogType(Integer logType) {
|
|
|
- this.logType = logType;
|
|
|
- }
|
|
|
-
|
|
|
- @Basic
|
|
|
- @Column(name = "log_content", nullable = true, length = 1000)
|
|
|
- public String getLogContent() {
|
|
|
- return logContent;
|
|
|
- }
|
|
|
-
|
|
|
- public void setLogContent(String logContent) {
|
|
|
- this.logContent = logContent;
|
|
|
- }
|
|
|
-
|
|
|
- @Basic
|
|
|
- @Column(name = "operate_type", nullable = true)
|
|
|
- public Integer getOperateType() {
|
|
|
- return operateType;
|
|
|
- }
|
|
|
-
|
|
|
- public void setOperateType(Integer operateType) {
|
|
|
- this.operateType = operateType;
|
|
|
- }
|
|
|
-
|
|
|
- @Basic
|
|
|
- @Column(name = "userid", nullable = true, length = 32)
|
|
|
- public String getUserid() {
|
|
|
- return userid;
|
|
|
- }
|
|
|
-
|
|
|
- public void setUserid(String userid) {
|
|
|
- this.userid = userid;
|
|
|
- }
|
|
|
-
|
|
|
- @Basic
|
|
|
- @Column(name = "username", nullable = true, length = 100)
|
|
|
- public String getUsername() {
|
|
|
- return username;
|
|
|
- }
|
|
|
-
|
|
|
- public void setUsername(String username) {
|
|
|
- this.username = username;
|
|
|
- }
|
|
|
-
|
|
|
- @Basic
|
|
|
- @Column(name = "ip", nullable = true, length = 100)
|
|
|
- public String getIp() {
|
|
|
- return ip;
|
|
|
- }
|
|
|
-
|
|
|
- public void setIp(String ip) {
|
|
|
- this.ip = ip;
|
|
|
- }
|
|
|
-
|
|
|
- @Basic
|
|
|
- @Column(name = "method", nullable = true, length = 500)
|
|
|
- public String getMethod() {
|
|
|
- return method;
|
|
|
- }
|
|
|
-
|
|
|
- public void setMethod(String method) {
|
|
|
- this.method = method;
|
|
|
- }
|
|
|
-
|
|
|
- @Basic
|
|
|
- @Column(name = "request_url", nullable = true, length = 255)
|
|
|
- public String getRequestUrl() {
|
|
|
- return requestUrl;
|
|
|
- }
|
|
|
-
|
|
|
- public void setRequestUrl(String requestUrl) {
|
|
|
- this.requestUrl = requestUrl;
|
|
|
- }
|
|
|
-
|
|
|
- @Basic
|
|
|
- @Column(name = "request_param", nullable = true, length = -1)
|
|
|
- public String getRequestParam() {
|
|
|
- return requestParam;
|
|
|
- }
|
|
|
-
|
|
|
- public void setRequestParam(String requestParam) {
|
|
|
- this.requestParam = requestParam;
|
|
|
- }
|
|
|
-
|
|
|
- @Basic
|
|
|
- @Column(name = "request_type", nullable = true, length = 10)
|
|
|
- public String getRequestType() {
|
|
|
- return requestType;
|
|
|
- }
|
|
|
-
|
|
|
- public void setRequestType(String requestType) {
|
|
|
- this.requestType = requestType;
|
|
|
- }
|
|
|
-
|
|
|
- @Basic
|
|
|
- @Column(name = "cost_time", nullable = true)
|
|
|
- public Long getCostTime() {
|
|
|
- return costTime;
|
|
|
- }
|
|
|
-
|
|
|
- public void setCostTime(Long costTime) {
|
|
|
- this.costTime = costTime;
|
|
|
- }
|
|
|
-
|
|
|
- @Basic
|
|
|
- @Column(name = "create_by", nullable = true, length = 32)
|
|
|
- public String getCreateBy() {
|
|
|
- return createBy;
|
|
|
- }
|
|
|
-
|
|
|
- public void setCreateBy(String createBy) {
|
|
|
- this.createBy = createBy;
|
|
|
- }
|
|
|
-
|
|
|
- @Basic
|
|
|
- @Column(name = "create_time", nullable = true)
|
|
|
- public Timestamp getCreateTime() {
|
|
|
- return createTime;
|
|
|
- }
|
|
|
-
|
|
|
- public void setCreateTime(Timestamp createTime) {
|
|
|
- this.createTime = createTime;
|
|
|
- }
|
|
|
-
|
|
|
- @Basic
|
|
|
- @Column(name = "update_by", nullable = true, length = 32)
|
|
|
- public String getUpdateBy() {
|
|
|
- return updateBy;
|
|
|
- }
|
|
|
-
|
|
|
- public void setUpdateBy(String updateBy) {
|
|
|
- this.updateBy = updateBy;
|
|
|
- }
|
|
|
-
|
|
|
- @Basic
|
|
|
- @Column(name = "update_time", nullable = true)
|
|
|
- public Timestamp getUpdateTime() {
|
|
|
- return updateTime;
|
|
|
- }
|
|
|
-
|
|
|
- public void setUpdateTime(Timestamp updateTime) {
|
|
|
- this.updateTime = updateTime;
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public boolean equals(Object o) {
|
|
|
- if (this == o) return true;
|
|
|
- if (o == null || getClass() != o.getClass()) return false;
|
|
|
- SysLogDTO sysLog = (SysLogDTO) o;
|
|
|
- return Objects.equals(id, sysLog.id) && Objects.equals(logType, sysLog.logType) && Objects.equals(logContent, sysLog.logContent) && Objects.equals(operateType, sysLog.operateType) && Objects.equals(userid, sysLog.userid) && Objects.equals(username, sysLog.username) && Objects.equals(ip, sysLog.ip) && Objects.equals(method, sysLog.method) && Objects.equals(requestUrl, sysLog.requestUrl) && Objects.equals(requestParam, sysLog.requestParam) && Objects.equals(requestType, sysLog.requestType) && Objects.equals(costTime, sysLog.costTime) && Objects.equals(createBy, sysLog.createBy) && Objects.equals(createTime, sysLog.createTime) && Objects.equals(updateBy, sysLog.updateBy) && Objects.equals(updateTime, sysLog.updateTime);
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public int hashCode() {
|
|
|
- return Objects.hash(id, logType, logContent, operateType, userid, username, ip, method, requestUrl, requestParam, requestType, costTime, createBy, createTime, updateBy, updateTime);
|
|
|
- }
|
|
|
-}
|