|
@@ -30,6 +30,12 @@ public class UserMessage implements Serializable {
|
|
|
private String messageCategory;
|
|
|
|
|
|
/**
|
|
|
+ * 关联id
|
|
|
+ */
|
|
|
+ @Column(name = "`relation_id`")
|
|
|
+ private Integer relationId;
|
|
|
+
|
|
|
+ /**
|
|
|
* 标题
|
|
|
*/
|
|
|
@Column(name = "`title`")
|
|
@@ -42,6 +48,24 @@ public class UserMessage implements Serializable {
|
|
|
private String link;
|
|
|
|
|
|
/**
|
|
|
+ * 链接标题
|
|
|
+ */
|
|
|
+ @Column(name = "`link_title`")
|
|
|
+ private String linkTitle;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 链接2
|
|
|
+ */
|
|
|
+ @Column(name = "`link_second`")
|
|
|
+ private String linkSecond;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 链接2标题
|
|
|
+ */
|
|
|
+ @Column(name = "`link_second_title`")
|
|
|
+ private String linkSecondTitle;
|
|
|
+
|
|
|
+ /**
|
|
|
* 已读状态:0未读,1已读
|
|
|
*/
|
|
|
@Column(name = "`is_read`")
|
|
@@ -127,6 +151,24 @@ public class UserMessage implements Serializable {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 获取关联id
|
|
|
+ *
|
|
|
+ * @return relation_id - 关联id
|
|
|
+ */
|
|
|
+ public Integer getRelationId() {
|
|
|
+ return relationId;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设置关联id
|
|
|
+ *
|
|
|
+ * @param relationId 关联id
|
|
|
+ */
|
|
|
+ public void setRelationId(Integer relationId) {
|
|
|
+ this.relationId = relationId;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 获取标题
|
|
|
*
|
|
|
* @return title - 标题
|
|
@@ -163,6 +205,60 @@ public class UserMessage implements Serializable {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 获取链接标题
|
|
|
+ *
|
|
|
+ * @return link_title - 链接标题
|
|
|
+ */
|
|
|
+ public String getLinkTitle() {
|
|
|
+ return linkTitle;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设置链接标题
|
|
|
+ *
|
|
|
+ * @param linkTitle 链接标题
|
|
|
+ */
|
|
|
+ public void setLinkTitle(String linkTitle) {
|
|
|
+ this.linkTitle = linkTitle;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取链接2
|
|
|
+ *
|
|
|
+ * @return link_second - 链接2
|
|
|
+ */
|
|
|
+ public String getLinkSecond() {
|
|
|
+ return linkSecond;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设置链接2
|
|
|
+ *
|
|
|
+ * @param linkSecond 链接2
|
|
|
+ */
|
|
|
+ public void setLinkSecond(String linkSecond) {
|
|
|
+ this.linkSecond = linkSecond;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取链接2标题
|
|
|
+ *
|
|
|
+ * @return link_second_title - 链接2标题
|
|
|
+ */
|
|
|
+ public String getLinkSecondTitle() {
|
|
|
+ return linkSecondTitle;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设置链接2标题
|
|
|
+ *
|
|
|
+ * @param linkSecondTitle 链接2标题
|
|
|
+ */
|
|
|
+ public void setLinkSecondTitle(String linkSecondTitle) {
|
|
|
+ this.linkSecondTitle = linkSecondTitle;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 获取已读状态:0未读,1已读
|
|
|
*
|
|
|
* @return is_read - 已读状态:0未读,1已读
|
|
@@ -222,8 +318,12 @@ public class UserMessage implements Serializable {
|
|
|
sb.append(", userId=").append(userId);
|
|
|
sb.append(", type=").append(type);
|
|
|
sb.append(", messageCategory=").append(messageCategory);
|
|
|
+ sb.append(", relationId=").append(relationId);
|
|
|
sb.append(", title=").append(title);
|
|
|
sb.append(", link=").append(link);
|
|
|
+ sb.append(", linkTitle=").append(linkTitle);
|
|
|
+ sb.append(", linkSecond=").append(linkSecond);
|
|
|
+ sb.append(", linkSecondTitle=").append(linkSecondTitle);
|
|
|
sb.append(", isRead=").append(isRead);
|
|
|
sb.append(", createTime=").append(createTime);
|
|
|
sb.append(", content=").append(content);
|
|
@@ -281,6 +381,16 @@ public class UserMessage implements Serializable {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 设置关联id
|
|
|
+ *
|
|
|
+ * @param relationId 关联id
|
|
|
+ */
|
|
|
+ public Builder relationId(Integer relationId) {
|
|
|
+ obj.setRelationId(relationId);
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 设置标题
|
|
|
*
|
|
|
* @param title 标题
|
|
@@ -301,6 +411,36 @@ public class UserMessage implements Serializable {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 设置链接2
|
|
|
+ *
|
|
|
+ * @param linkSecond 链接2
|
|
|
+ */
|
|
|
+ public Builder linkSecond(String linkSecond) {
|
|
|
+ obj.setLinkSecond(linkSecond);
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设置链接2标题
|
|
|
+ *
|
|
|
+ * @param linkSecondTitle 链接2标题
|
|
|
+ */
|
|
|
+ public Builder linkSecondTitle(String linkSecondTitle) {
|
|
|
+ obj.setLinkSecondTitle(linkSecondTitle);
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设置链接标题
|
|
|
+ *
|
|
|
+ * @param linkTitle 链接标题
|
|
|
+ */
|
|
|
+ public Builder linkTitle(String linkTitle) {
|
|
|
+ obj.setLinkTitle(linkTitle);
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 设置已读状态:0未读,1已读
|
|
|
*
|
|
|
* @param isRead 已读状态:0未读,1已读
|