|
@@ -1,14 +1,15 @@
|
|
|
package com.smppw.modaq.domain.dto;
|
|
|
|
|
|
-import lombok.Data;
|
|
|
+import lombok.Getter;
|
|
|
+import lombok.Setter;
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
+import java.util.Objects;
|
|
|
|
|
|
-@Data
|
|
|
+@Setter
|
|
|
+@Getter
|
|
|
public class EmailContentInfoDTO implements Serializable {
|
|
|
|
|
|
- private static final long serialVersionUID = 202104140906313753L;
|
|
|
-
|
|
|
/**
|
|
|
* 邮件id(重新解析邮件功能)
|
|
|
*/
|
|
@@ -67,5 +68,36 @@ public class EmailContentInfoDTO implements Serializable {
|
|
|
* ai解析时的文件id(重新解析邮件时用这个可以不用重复上传)
|
|
|
*/
|
|
|
private String aiFileId;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean equals(Object o) {
|
|
|
+ if (this == o) return true;
|
|
|
+ if (!(o instanceof EmailContentInfoDTO that)) return false;
|
|
|
+ return Objects.equals(emailAddress, that.emailAddress)
|
|
|
+ && Objects.equals(emailTitle, that.emailTitle)
|
|
|
+ && Objects.equals(emailDate, that.emailDate)
|
|
|
+ && Objects.equals(fileName, that.fileName)
|
|
|
+ && Objects.equals(filePath, that.filePath)
|
|
|
+ && Objects.equals(emailType, that.emailType)
|
|
|
+ && Objects.equals(senderEmail, that.senderEmail);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int hashCode() {
|
|
|
+ return Objects.hash(emailAddress, emailTitle, emailDate,
|
|
|
+ fileName, filePath, emailType, senderEmail);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ return "{" +
|
|
|
+ "emailAddress='" + emailAddress + '\'' +
|
|
|
+ ", emailTitle='" + emailTitle + '\'' +
|
|
|
+ ", emailDate='" + emailDate + '\'' +
|
|
|
+ ", fileName='" + fileName + '\'' +
|
|
|
+ ", filePath='" + filePath + '\'' +
|
|
|
+ ", emailType=" + emailType +
|
|
|
+ '}';
|
|
|
+ }
|
|
|
}
|
|
|
|