package com.qianwen.smartman.modules.dmpLog.vo; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.Date; import com.qianwen.smartman.common.constant.DateConstant; import com.qianwen.core.tool.utils.DateUtil; import com.qianwen.smartman.modules.dmpLog.enums.LogTypeEnum; @ApiModel("dmp日志详情") public class DmpLogDetailVO { public String traceId; @ApiModelProperty("日志类型") public Integer type; @ApiModelProperty("日志类型名称") private String typeStr; @ApiModelProperty("采集时间") public Long ts; @ApiModelProperty("消息内容") public String message; public void setTraceId(final String traceId) { this.traceId = traceId; } public void setType(final Integer type) { this.type = type; } public void setTypeStr(final String typeStr) { this.typeStr = typeStr; } public void setTs(final Long ts) { this.ts = ts; } public void setMessage(final String message) { this.message = message; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof DmpLogDetailVO) { DmpLogDetailVO other = (DmpLogDetailVO) o; if (other.canEqual(this)) { Object this$type = getType(); Object other$type = other.getType(); if (this$type == null) { if (other$type != null) { return false; } } else if (!this$type.equals(other$type)) { return false; } Object this$ts = getTs(); Object other$ts = other.getTs(); if (this$ts == null) { if (other$ts != null) { return false; } } else if (!this$ts.equals(other$ts)) { return false; } Object this$traceId = getTraceId(); Object other$traceId = other.getTraceId(); if (this$traceId == null) { if (other$traceId != null) { return false; } } else if (!this$traceId.equals(other$traceId)) { return false; } Object this$typeStr = getTypeStr(); Object other$typeStr = other.getTypeStr(); if (this$typeStr == null) { if (other$typeStr != null) { return false; } } else if (!this$typeStr.equals(other$typeStr)) { return false; } Object this$message = getMessage(); Object other$message = other.getMessage(); return this$message == null ? other$message == null : this$message.equals(other$message); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof DmpLogDetailVO; } public int hashCode() { Object $type = getType(); int result = (1 * 59) + ($type == null ? 43 : $type.hashCode()); Object $ts = getTs(); int result2 = (result * 59) + ($ts == null ? 43 : $ts.hashCode()); Object $traceId = getTraceId(); int result3 = (result2 * 59) + ($traceId == null ? 43 : $traceId.hashCode()); Object $typeStr = getTypeStr(); int result4 = (result3 * 59) + ($typeStr == null ? 43 : $typeStr.hashCode()); Object $message = getMessage(); return (result4 * 59) + ($message == null ? 43 : $message.hashCode()); } public String toString() { return "DmpLogDetailVO(traceId=" + getTraceId() + ", type=" + getType() + ", typeStr=" + getTypeStr() + ", ts=" + getTs() + ", message=" + getMessage() + ")"; } public String getTraceId() { return this.traceId; } public Integer getType() { return this.type; } public String getTypeStr() { LogTypeEnum logType; if (this.type != null && (logType = LogTypeEnum.getValue(this.type)) != null) { return logType.getName(); } return null; } public String getMessage() { return this.message; } public String getTs() { if (this.ts != null) { return DateUtil.format(new Date(this.ts.longValue()), DateConstant.PATTERN_DATE_TIME); } return null; } }