Authored by liangyi.chen@yoho.cn

Add model

... ... @@ -19,13 +19,11 @@ public class GrassArticleComment {
private Integer articleType;
@FieldTransfer(targetFieldName = "contentData")
private String content;
@FieldTransfer
private Integer rootId;
@FieldTransfer(targetFieldName = "toCommentId")
private Integer parentId;
private Integer relateId;
... ... @@ -35,7 +33,6 @@ public class GrassArticleComment {
@FieldTransfer(targetFieldName = "praiseNum")
private Integer praiseTotal;
@FieldTransfer(targetFieldName = "auditStatus")
private Integer status;
@FieldTransfer
... ...
... ... @@ -22,7 +22,6 @@ public class GrassArticlePraise {
@FieldTransfer
private Integer updateTime;
@FieldTransfer
private Integer status;
... ...
package com.yoho.datasync.core.base.model.yh_grass;
import com.yoho.datasync.core.base.annotation.ClassTransfer;
import com.yoho.datasync.core.base.annotation.FieldTransfer;
import com.yoho.datasync.core.base.model.yh_pcms.PublicUserPraise;
import lombok.Data;
@Data
@ClassTransfer(targetClass = PublicUserPraise.class)
public class GrassCommentPraise {
private Integer id;
private Integer commentId;
@FieldTransfer
private Integer uid;
@FieldTransfer
private Integer createTime;
private Integer status;
@FieldTransfer
private Integer updateTime;
}
... ...
package com.yoho.datasync.core.base.model.yh_grass;
import com.yoho.datasync.core.base.annotation.ClassTransfer;
import com.yoho.datasync.core.base.annotation.FieldTransfer;
import com.yoho.datasync.core.base.model.yh_pcms.PublicUserAttention;
import lombok.Data;
@Data
@ClassTransfer(targetClass = PublicUserAttention.class)
public class GrassUserAttention {
private Integer id;
@FieldTransfer
private Integer uid;
private Integer topicId;
private Integer followUid;
private Integer status;
private Integer attentionType;
@FieldTransfer
private Integer createTime;
@FieldTransfer
private Integer updateTime;
@FieldTransfer
private Integer authorType;
}
... ...
package com.yoho.datasync.core.base.model.yh_grass;
import com.yoho.datasync.core.base.annotation.ClassTransfer;
import com.yoho.datasync.core.base.annotation.FieldTransfer;
import com.yoho.datasync.core.base.model.yh_pcms.PublicUserFavorite;
import lombok.Data;
@Data
@ClassTransfer(targetClass = PublicUserFavorite.class)
public class UserFavoriteArticle {
private Integer id;
@FieldTransfer
private Integer uid;
private Integer articleId;
@FieldTransfer
private Integer createTime;
}
... ...
package com.yoho.datasync.core.base.model.yh_pcms;
import com.yoho.datasync.core.base.model.yh_pcms.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
@Data
@Entity
@Table(name = "public_topic")
@EqualsAndHashCode(callSuper = true)
public class PublicTopic extends BaseEntity implements Serializable {
@Column(name = "topic_name")
private String topicName;
@Column(name = "article_amount")
private Integer articleAmount;
@Column(name = "atten_amount")
private Integer attenAmount;
private Integer status;
@Column(name = "relate_id")
private Integer relateId;
@Column(name = "src_channel")
private Integer srcChannel;
@Column(name = "create_time")
private Long createTime;
@Column(name = "update_time")
private Long updateTime;
}
... ...
package com.yoho.datasync.core.base.model.yh_pcms;
import com.yoho.datasync.core.base.model.yh_pcms.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
@Data
@Entity
@Table(name = "public_user_attention")
@EqualsAndHashCode(callSuper = true)
public class PublicUserAttention extends BaseEntity implements Serializable {
private Integer uid;
@Column(name = "target_id")
private Integer targetId;
@Column(name = "attention_type")
private Integer attentionType;
@Column(name = "author_type")
private Integer authorType;
private Integer status;
@Column(name = "src_channel")
private Integer srcChannel;
@Column(name = "create_time")
private Long createTime;
@Column(name = "update_time")
private Long updateTime;
}
... ...
package com.yoho.datasync.core.base.model.yh_pcms;
import com.yoho.datasync.core.base.model.yh_pcms.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
@Data
@Entity
@Table(name = "public_user_favorite")
@EqualsAndHashCode(callSuper = true)
public class PublicUserFavorite extends BaseEntity implements Serializable {
private Integer uid;
@Column(name = "sheet_id")
private Integer sheetId;
@Column(name = "target_id")
private Integer targetId;
@Column(name = "favorite_type")
private Integer favoriteType;
private Integer status;
@Column(name = "src_channel")
private Integer srcChannel;
@Column(name = "create_time")
private Long createTime;
@Column(name = "update_time")
private Long updateTime;
}
... ...