package org.xyzh.common.dto.crontab;

import org.xyzh.common.dto.BaseDTO;

import java.util.Date;

/**
 * @description 数据采集项表（存储爬取的文章数据）
 * @filename TbDataCollectionItem.java
 * @author yslg
 * @copyright xyzh
 * @since 2025-11-08
 */
public class TbDataCollectionItem extends BaseDTO {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * @description 关联的定时任务ID
     */
    private String taskId;
	
	/**
	 * @description 本次执行日志ID（与tb_crontab_log.id绑定）
	 */
	private String logId;
    
    /**
     * @description 文章标题
     */
    private String title;
    
    /**
     * @description 文章内容（HTML格式）
     */
    private String content;
    
    /**
     * @description 文章摘要
     */
    private String summary;
    
    /**
     * @description 来源（人民日报、新华社等）
     */
    private String source;
    
    /**
     * @description 来源URL（用于去重）
     */
    private String sourceUrl;
    
    /**
     * @description 分类（政治、社会、国际等）
     */
    private String category;
    
    /**
     * @description 作者
     */
    private String author;
    
    /**
     * @description 发布时间
     */
    private Date publishTime;
    
    /**
     * @description 封面图片URL
     */
    private String coverImage;
    
    /**
     * @description 图片列表（JSON格式，存储图片URL数组）
     */
    private String images;
    
    /**
     * @description 标签（多个用逗号分隔）
     */
    private String tags;
    
    /**
     * @description 状态（0:未处理 1:已转换为资源 2:已忽略）
     */
    private Integer status;
    
    /**
     * @description 转换后的资源ID（如果已转换为资源）
     */
    private String resourceId;
    
    /**
     * @description 爬取时间
     */
    private Date crawlTime;
    
    /**
     * @description 处理时间
     */
    private Date processTime;
    
    /**
     * @description 处理人
     */
    private String processor;

    /**
     * @description 单条新闻执行状态（0:失败 1:成功）
     */
    private Integer executeStatus;

    /**
     * @description 单条新闻执行消息（记录错误信息或成功提示）
     */
    private String executeMessage;

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

	public String getLogId() {
		return logId;
	}

	public void setLogId(String logId) {
		this.logId = logId;
	}

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getSourceUrl() {
        return sourceUrl;
    }

    public void setSourceUrl(String sourceUrl) {
        this.sourceUrl = sourceUrl;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public String getCoverImage() {
        return coverImage;
    }

    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getResourceId() {
        return resourceId;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    public Date getCrawlTime() {
        return crawlTime;
    }

    public void setCrawlTime(Date crawlTime) {
        this.crawlTime = crawlTime;
    }

    public Date getProcessTime() {
        return processTime;
    }

    public void setProcessTime(Date processTime) {
        this.processTime = processTime;
    }

    public String getProcessor() {
        return processor;
    }

    public void setProcessor(String processor) {
        this.processor = processor;
    }

    public Integer getExecuteStatus() {
        return executeStatus;
    }

    public void setExecuteStatus(Integer executeStatus) {
        this.executeStatus = executeStatus;
    }

    public String getExecuteMessage() {
        return executeMessage;
    }

    public void setExecuteMessage(String executeMessage) {
        this.executeMessage = executeMessage;
    }
}

