package com.qianwen.smartman.modules.notify.dto;
|
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
|
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
|
import io.swagger.annotations.ApiModelProperty;
|
import java.io.Serializable;
|
import java.time.LocalDate;
|
import javax.validation.constraints.NotNull;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/notify/dto/PublishRecordAddDTO.class */
|
public class PublishRecordAddDTO implements Serializable {
|
@NotNull(message = "version can not be null")
|
@ApiModelProperty("发布版本")
|
private String version;
|
@NotNull(message = "content can not be null")
|
@ApiModelProperty("发布内容")
|
private String content;
|
@JsonDeserialize(using = LocalDateDeserializer.class)
|
@JsonSerialize(using = LocalDateSerializer.class)
|
@ApiModelProperty("发布时间")
|
private LocalDate publishDate;
|
|
public PublishRecordAddDTO setVersion(final String version) {
|
this.version = version;
|
return this;
|
}
|
|
public PublishRecordAddDTO setContent(final String content) {
|
this.content = content;
|
return this;
|
}
|
|
@JsonDeserialize(using = LocalDateDeserializer.class)
|
public PublishRecordAddDTO setPublishDate(final LocalDate publishDate) {
|
this.publishDate = publishDate;
|
return this;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof PublishRecordAddDTO) {
|
PublishRecordAddDTO other = (PublishRecordAddDTO) o;
|
if (other.canEqual(this)) {
|
Object this$version = getVersion();
|
Object other$version = other.getVersion();
|
if (this$version == null) {
|
if (other$version != null) {
|
return false;
|
}
|
} else if (!this$version.equals(other$version)) {
|
return false;
|
}
|
Object this$content = getContent();
|
Object other$content = other.getContent();
|
if (this$content == null) {
|
if (other$content != null) {
|
return false;
|
}
|
} else if (!this$content.equals(other$content)) {
|
return false;
|
}
|
Object this$publishDate = getPublishDate();
|
Object other$publishDate = other.getPublishDate();
|
return this$publishDate == null ? other$publishDate == null : this$publishDate.equals(other$publishDate);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof PublishRecordAddDTO;
|
}
|
|
public int hashCode() {
|
Object $version = getVersion();
|
int result = (1 * 59) + ($version == null ? 43 : $version.hashCode());
|
Object $content = getContent();
|
int result2 = (result * 59) + ($content == null ? 43 : $content.hashCode());
|
Object $publishDate = getPublishDate();
|
return (result2 * 59) + ($publishDate == null ? 43 : $publishDate.hashCode());
|
}
|
|
public String toString() {
|
return "PublishRecordAddDTO(version=" + getVersion() + ", content=" + getContent() + ", publishDate=" + getPublishDate() + ")";
|
}
|
|
public String getVersion() {
|
return this.version;
|
}
|
|
public String getContent() {
|
return this.content;
|
}
|
|
public LocalDate getPublishDate() {
|
return this.publishDate;
|
}
|
}
|