package cn.reghao.tnb.search.esapp.blog.model.vo;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author reghao
 * @date 2023-04-13 17:25:41
 */
@Setter
@Getter
public class ArticleLink implements Serializable {
    private static final long serialVersionUID = 1L;

    private String title;
    private String pubDate;
    private String url;

    public ArticleLink() {
        this.title = "没有了";
        this.url = "";
    }

    public ArticleLink(String articleId, String title, String pubDate) {
        this.title = title;
        this.pubDate = pubDate;
        this.url = String.format("post/%s", articleId);
    }
}
