package cn.reghao.tnb.search.app.comment.model.po;

import cn.reghao.jutil.jdk.web.db.BaseObject;
import cn.reghao.tnb.content.api.constant.PostScope;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author reghao
 * @date 2023-02-02 11:29:55
 */
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@Setter
@Getter
@Deprecated
public class ArticlePost extends BaseObject<String> {
    private String articleId;
    private String title;
    private String excerpt;
    private String content;
    private int scope;
    private Long createAt;
    private Long userId;

    public ArticlePost(String articleId, String title, String excerpt, String content, Long userId) {
        this.articleId = articleId;
        this.title = title;
        this.excerpt = excerpt;
        this.content = content;
        this.scope = PostScope.PUBLIC.getCode();
        this.createAt = System.currentTimeMillis()/1000;
        this.userId = userId;
    }
}
