|
@@ -0,0 +1,160 @@
|
|
|
+package com.dt.common.domain;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import java.util.Date;
|
|
|
+import lombok.Data;
|
|
|
+
|
|
|
+/**
|
|
|
+ * hxw_科普文章表:存储疫苗相关的科普文章
|
|
|
+ * @TableName hxw_knowledge_articles
|
|
|
+ */
|
|
|
+@TableName(value ="hxw_knowledge_articles")
|
|
|
+@Data
|
|
|
+public class HxwKnowledgeArticles {
|
|
|
+ /**
|
|
|
+ * 文章ID
|
|
|
+ */
|
|
|
+ @TableId(type = IdType.AUTO)
|
|
|
+ private Integer id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 文章标题
|
|
|
+ */
|
|
|
+ private String title;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 副标题
|
|
|
+ */
|
|
|
+ private String subtitle;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 文章内容
|
|
|
+ */
|
|
|
+ private String content;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 封面图片URL
|
|
|
+ */
|
|
|
+ private String coverImageUrl;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 作者
|
|
|
+ */
|
|
|
+ private String author;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 来源
|
|
|
+ */
|
|
|
+ private String source;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 浏览量
|
|
|
+ */
|
|
|
+ private Integer viewCount;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 点赞数
|
|
|
+ */
|
|
|
+ private Integer likeCount;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 相关疫苗ID
|
|
|
+ */
|
|
|
+ private Integer relatedVaccineId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 文章类型
|
|
|
+ */
|
|
|
+ private Object articleType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 是否推荐
|
|
|
+ */
|
|
|
+ private Integer isFeatured;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 创建时间
|
|
|
+ */
|
|
|
+ private Date createdAt;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 更新时间
|
|
|
+ */
|
|
|
+ private Date updatedAt;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean equals(Object that) {
|
|
|
+ if (this == that) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (that == null) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (getClass() != that.getClass()) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ HxwKnowledgeArticles other = (HxwKnowledgeArticles) that;
|
|
|
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
|
|
+ && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
|
|
|
+ && (this.getSubtitle() == null ? other.getSubtitle() == null : this.getSubtitle().equals(other.getSubtitle()))
|
|
|
+ && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
|
|
|
+ && (this.getCoverImageUrl() == null ? other.getCoverImageUrl() == null : this.getCoverImageUrl().equals(other.getCoverImageUrl()))
|
|
|
+ && (this.getAuthor() == null ? other.getAuthor() == null : this.getAuthor().equals(other.getAuthor()))
|
|
|
+ && (this.getSource() == null ? other.getSource() == null : this.getSource().equals(other.getSource()))
|
|
|
+ && (this.getViewCount() == null ? other.getViewCount() == null : this.getViewCount().equals(other.getViewCount()))
|
|
|
+ && (this.getLikeCount() == null ? other.getLikeCount() == null : this.getLikeCount().equals(other.getLikeCount()))
|
|
|
+ && (this.getRelatedVaccineId() == null ? other.getRelatedVaccineId() == null : this.getRelatedVaccineId().equals(other.getRelatedVaccineId()))
|
|
|
+ && (this.getArticleType() == null ? other.getArticleType() == null : this.getArticleType().equals(other.getArticleType()))
|
|
|
+ && (this.getIsFeatured() == null ? other.getIsFeatured() == null : this.getIsFeatured().equals(other.getIsFeatured()))
|
|
|
+ && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
|
|
|
+ && (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int hashCode() {
|
|
|
+ final int prime = 31;
|
|
|
+ int result = 1;
|
|
|
+ result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
|
|
+ result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
|
|
|
+ result = prime * result + ((getSubtitle() == null) ? 0 : getSubtitle().hashCode());
|
|
|
+ result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
|
|
|
+ result = prime * result + ((getCoverImageUrl() == null) ? 0 : getCoverImageUrl().hashCode());
|
|
|
+ result = prime * result + ((getAuthor() == null) ? 0 : getAuthor().hashCode());
|
|
|
+ result = prime * result + ((getSource() == null) ? 0 : getSource().hashCode());
|
|
|
+ result = prime * result + ((getViewCount() == null) ? 0 : getViewCount().hashCode());
|
|
|
+ result = prime * result + ((getLikeCount() == null) ? 0 : getLikeCount().hashCode());
|
|
|
+ result = prime * result + ((getRelatedVaccineId() == null) ? 0 : getRelatedVaccineId().hashCode());
|
|
|
+ result = prime * result + ((getArticleType() == null) ? 0 : getArticleType().hashCode());
|
|
|
+ result = prime * result + ((getIsFeatured() == null) ? 0 : getIsFeatured().hashCode());
|
|
|
+ result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
|
|
|
+ result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+ sb.append(getClass().getSimpleName());
|
|
|
+ sb.append(" [");
|
|
|
+ sb.append("Hash = ").append(hashCode());
|
|
|
+ sb.append(", id=").append(id);
|
|
|
+ sb.append(", title=").append(title);
|
|
|
+ sb.append(", subtitle=").append(subtitle);
|
|
|
+ sb.append(", content=").append(content);
|
|
|
+ sb.append(", coverImageUrl=").append(coverImageUrl);
|
|
|
+ sb.append(", author=").append(author);
|
|
|
+ sb.append(", source=").append(source);
|
|
|
+ sb.append(", viewCount=").append(viewCount);
|
|
|
+ sb.append(", likeCount=").append(likeCount);
|
|
|
+ sb.append(", relatedVaccineId=").append(relatedVaccineId);
|
|
|
+ sb.append(", articleType=").append(articleType);
|
|
|
+ sb.append(", isFeatured=").append(isFeatured);
|
|
|
+ sb.append(", createdAt=").append(createdAt);
|
|
|
+ sb.append(", updatedAt=").append(updatedAt);
|
|
|
+ sb.append("]");
|
|
|
+ return sb.toString();
|
|
|
+ }
|
|
|
+}
|