package com.qianwen.core.log.model; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import java.io.Serializable; import java.util.Date; import org.springframework.format.annotation.DateTimeFormat; /* loaded from: blade-starter-log-9.3.0.0-SNAPSHOT.jar:org/springblade/core/log/model/LogAbstract.class */ public class LogAbstract implements Serializable { protected static final long serialVersionUID = 1; @JsonSerialize(using = ToStringSerializer.class) @TableId(value = "id", type = IdType.ASSIGN_ID) protected Long id; private String tenantId; protected String serviceId; protected String serverIp; protected String serverHost; protected String env; protected String remoteIp; protected String userAgent; protected String requestUri; protected String method; protected String methodClass; protected String methodName; protected String params; protected String createBy; @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") protected Date createTime; public void setId(final Long id) { this.id = id; } public void setTenantId(final String tenantId) { this.tenantId = tenantId; } public void setServiceId(final String serviceId) { this.serviceId = serviceId; } public void setServerIp(final String serverIp) { this.serverIp = serverIp; } public void setServerHost(final String serverHost) { this.serverHost = serverHost; } public void setEnv(final String env) { this.env = env; } public void setRemoteIp(final String remoteIp) { this.remoteIp = remoteIp; } public void setUserAgent(final String userAgent) { this.userAgent = userAgent; } public void setRequestUri(final String requestUri) { this.requestUri = requestUri; } public void setMethod(final String method) { this.method = method; } public void setMethodClass(final String methodClass) { this.methodClass = methodClass; } public void setMethodName(final String methodName) { this.methodName = methodName; } public void setParams(final String params) { this.params = params; } public void setCreateBy(final String createBy) { this.createBy = createBy; } @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") public void setCreateTime(final Date createTime) { this.createTime = createTime; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof LogAbstract) { LogAbstract other = (LogAbstract) o; if (other.canEqual(this)) { Object this$id = getId(); Object other$id = other.getId(); if (this$id == null) { if (other$id != null) { return false; } } else if (!this$id.equals(other$id)) { return false; } Object this$tenantId = getTenantId(); Object other$tenantId = other.getTenantId(); if (this$tenantId == null) { if (other$tenantId != null) { return false; } } else if (!this$tenantId.equals(other$tenantId)) { return false; } Object this$serviceId = getServiceId(); Object other$serviceId = other.getServiceId(); if (this$serviceId == null) { if (other$serviceId != null) { return false; } } else if (!this$serviceId.equals(other$serviceId)) { return false; } Object this$serverIp = getServerIp(); Object other$serverIp = other.getServerIp(); if (this$serverIp == null) { if (other$serverIp != null) { return false; } } else if (!this$serverIp.equals(other$serverIp)) { return false; } Object this$serverHost = getServerHost(); Object other$serverHost = other.getServerHost(); if (this$serverHost == null) { if (other$serverHost != null) { return false; } } else if (!this$serverHost.equals(other$serverHost)) { return false; } Object this$env = getEnv(); Object other$env = other.getEnv(); if (this$env == null) { if (other$env != null) { return false; } } else if (!this$env.equals(other$env)) { return false; } Object this$remoteIp = getRemoteIp(); Object other$remoteIp = other.getRemoteIp(); if (this$remoteIp == null) { if (other$remoteIp != null) { return false; } } else if (!this$remoteIp.equals(other$remoteIp)) { return false; } Object this$userAgent = getUserAgent(); Object other$userAgent = other.getUserAgent(); if (this$userAgent == null) { if (other$userAgent != null) { return false; } } else if (!this$userAgent.equals(other$userAgent)) { return false; } Object this$requestUri = getRequestUri(); Object other$requestUri = other.getRequestUri(); if (this$requestUri == null) { if (other$requestUri != null) { return false; } } else if (!this$requestUri.equals(other$requestUri)) { return false; } Object this$method = getMethod(); Object other$method = other.getMethod(); if (this$method == null) { if (other$method != null) { return false; } } else if (!this$method.equals(other$method)) { return false; } Object this$methodClass = getMethodClass(); Object other$methodClass = other.getMethodClass(); if (this$methodClass == null) { if (other$methodClass != null) { return false; } } else if (!this$methodClass.equals(other$methodClass)) { return false; } Object this$methodName = getMethodName(); Object other$methodName = other.getMethodName(); if (this$methodName == null) { if (other$methodName != null) { return false; } } else if (!this$methodName.equals(other$methodName)) { return false; } Object this$params = getParams(); Object other$params = other.getParams(); if (this$params == null) { if (other$params != null) { return false; } } else if (!this$params.equals(other$params)) { return false; } Object this$createBy = getCreateBy(); Object other$createBy = other.getCreateBy(); if (this$createBy == null) { if (other$createBy != null) { return false; } } else if (!this$createBy.equals(other$createBy)) { return false; } Object this$createTime = getCreateTime(); Object other$createTime = other.getCreateTime(); return this$createTime == null ? other$createTime == null : this$createTime.equals(other$createTime); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof LogAbstract; } public int hashCode() { Object $id = getId(); int result = (1 * 59) + ($id == null ? 43 : $id.hashCode()); Object $tenantId = getTenantId(); int result2 = (result * 59) + ($tenantId == null ? 43 : $tenantId.hashCode()); Object $serviceId = getServiceId(); int result3 = (result2 * 59) + ($serviceId == null ? 43 : $serviceId.hashCode()); Object $serverIp = getServerIp(); int result4 = (result3 * 59) + ($serverIp == null ? 43 : $serverIp.hashCode()); Object $serverHost = getServerHost(); int result5 = (result4 * 59) + ($serverHost == null ? 43 : $serverHost.hashCode()); Object $env = getEnv(); int result6 = (result5 * 59) + ($env == null ? 43 : $env.hashCode()); Object $remoteIp = getRemoteIp(); int result7 = (result6 * 59) + ($remoteIp == null ? 43 : $remoteIp.hashCode()); Object $userAgent = getUserAgent(); int result8 = (result7 * 59) + ($userAgent == null ? 43 : $userAgent.hashCode()); Object $requestUri = getRequestUri(); int result9 = (result8 * 59) + ($requestUri == null ? 43 : $requestUri.hashCode()); Object $method = getMethod(); int result10 = (result9 * 59) + ($method == null ? 43 : $method.hashCode()); Object $methodClass = getMethodClass(); int result11 = (result10 * 59) + ($methodClass == null ? 43 : $methodClass.hashCode()); Object $methodName = getMethodName(); int result12 = (result11 * 59) + ($methodName == null ? 43 : $methodName.hashCode()); Object $params = getParams(); int result13 = (result12 * 59) + ($params == null ? 43 : $params.hashCode()); Object $createBy = getCreateBy(); int result14 = (result13 * 59) + ($createBy == null ? 43 : $createBy.hashCode()); Object $createTime = getCreateTime(); return (result14 * 59) + ($createTime == null ? 43 : $createTime.hashCode()); } public String toString() { return "LogAbstract(id=" + getId() + ", tenantId=" + getTenantId() + ", serviceId=" + getServiceId() + ", serverIp=" + getServerIp() + ", serverHost=" + getServerHost() + ", env=" + getEnv() + ", remoteIp=" + getRemoteIp() + ", userAgent=" + getUserAgent() + ", requestUri=" + getRequestUri() + ", method=" + getMethod() + ", methodClass=" + getMethodClass() + ", methodName=" + getMethodName() + ", params=" + getParams() + ", createBy=" + getCreateBy() + ", createTime=" + getCreateTime() + ")"; } public Long getId() { return this.id; } public String getTenantId() { return this.tenantId; } public String getServiceId() { return this.serviceId; } public String getServerIp() { return this.serverIp; } public String getServerHost() { return this.serverHost; } public String getEnv() { return this.env; } public String getRemoteIp() { return this.remoteIp; } public String getUserAgent() { return this.userAgent; } public String getRequestUri() { return this.requestUri; } public String getMethod() { return this.method; } public String getMethodClass() { return this.methodClass; } public String getMethodName() { return this.methodName; } public String getParams() { return this.params; } public String getCreateBy() { return this.createBy; } public Date getCreateTime() { return this.createTime; } }