Authored by liangyi.chen@yoho.cn

文章评论添加

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.PublicUserComment;
import lombok.Data;
@Data
@ClassTransfer(targetClass = PublicUserComment.class)
public class GrassArticleComment {
@FieldTransfer(targetFieldName = "relate_id")
private Integer id;
@FieldTransfer
private Integer uid;
private Integer destId;
private Integer articleType;
@FieldTransfer(targetFieldName = "content_data")
private String content;
@FieldTransfer
private Integer rootId;
@FieldTransfer(targetFieldName = "to_comment_id")
private Integer parentId;
private Integer relateId;
private Integer relateParentId;
@FieldTransfer(targetFieldName = "praise_num")
private Integer praiseTotal;
@FieldTransfer(targetFieldName = "audit_status")
private Integer status;
@FieldTransfer
private Integer createTime;
@FieldTransfer
private Integer updateTime;
private String reviewer;
private Integer columnType;
}
... ...
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_comment")
@EqualsAndHashCode(callSuper = true)
public class PublicUserComment extends BaseEntity implements Serializable {
private Integer uid;
@Column(name = "to_uid")
private Integer toUid;
@Column(name = "article_id")
private Integer articleId;
@Column(name = "to_comment_id")
private Integer toCommentId;
@Column(name = "content_data")
private String contentData;
@Column(name = "root_id")
private Integer rootId;
@Column(name = "floor_num")
private Integer floorNum;
@Column(name = "relate_id")
private Integer relateId;
@Column(name = "relate_parent_id")
private Integer relateParentId;
@Column(name = "praise_num")
private Integer praiseNum;
@Column(name = "virtual_praise_num")
private Integer virtualPraiseNum;
@Column(name = "src_channel")
private Integer srcChannel;
@Column(name = "audit_status")
private Integer auditStatus;
@Column(name = "audit_account")
private String auditAccount;
@Column(name = "audit_time")
private Long auditTime;
@Column(name = "create_time")
private Long createTime;
@Column(name = "update_time")
private Long updateTime;
}
... ...