yangys
2024-04-04 ed4a5236bab800094be4a8378f5098eebe3de6ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
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;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/notify/dto/PublishRecordDTO.class */
public class PublishRecordDTO implements Serializable {
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty("发布版本")
    private String version;
    @ApiModelProperty("发布内容")
    private String content;
    @JsonDeserialize(using = LocalDateDeserializer.class)
    @JsonSerialize(using = LocalDateSerializer.class)
    @ApiModelProperty("发布时间")
    private LocalDate publishDate;
    @ApiModelProperty("发布状态(0:未发布,1:已发布)")
    private Integer publishStatus;
 
    public PublishRecordDTO setId(final Long id) {
        this.id = id;
        return this;
    }
 
    public PublishRecordDTO setVersion(final String version) {
        this.version = version;
        return this;
    }
 
    public PublishRecordDTO setContent(final String content) {
        this.content = content;
        return this;
    }
 
    @JsonDeserialize(using = LocalDateDeserializer.class)
    public PublishRecordDTO setPublishDate(final LocalDate publishDate) {
        this.publishDate = publishDate;
        return this;
    }
 
    public PublishRecordDTO setPublishStatus(final Integer publishStatus) {
        this.publishStatus = publishStatus;
        return this;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof PublishRecordDTO) {
            PublishRecordDTO other = (PublishRecordDTO) 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$publishStatus = getPublishStatus();
                Object other$publishStatus = other.getPublishStatus();
                if (this$publishStatus == null) {
                    if (other$publishStatus != null) {
                        return false;
                    }
                } else if (!this$publishStatus.equals(other$publishStatus)) {
                    return false;
                }
                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 PublishRecordDTO;
    }
 
    public int hashCode() {
        Object $id = getId();
        int result = (1 * 59) + ($id == null ? 43 : $id.hashCode());
        Object $publishStatus = getPublishStatus();
        int result2 = (result * 59) + ($publishStatus == null ? 43 : $publishStatus.hashCode());
        Object $version = getVersion();
        int result3 = (result2 * 59) + ($version == null ? 43 : $version.hashCode());
        Object $content = getContent();
        int result4 = (result3 * 59) + ($content == null ? 43 : $content.hashCode());
        Object $publishDate = getPublishDate();
        return (result4 * 59) + ($publishDate == null ? 43 : $publishDate.hashCode());
    }
 
    public String toString() {
        return "PublishRecordDTO(id=" + getId() + ", version=" + getVersion() + ", content=" + getContent() + ", publishDate=" + getPublishDate() + ", publishStatus=" + getPublishStatus() + ")";
    }
 
    public Long getId() {
        return this.id;
    }
 
    public String getVersion() {
        return this.version;
    }
 
    public String getContent() {
        return this.content;
    }
 
    public LocalDate getPublishDate() {
        return this.publishDate;
    }
 
    public Integer getPublishStatus() {
        return this.publishStatus;
    }
}