package org.xyzh.common.dto.resource;

import org.xyzh.common.dto.BaseDTO;
import java.util.Date;

/**
 * @description 数据采集配置表
 * @filename TbDataCollectionConfig.java
 * @author yslg
 * @copyright xyzh
 * @since 2025-10-15
 */
public class TbDataCollectionConfig extends BaseDTO {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * @description 配置名称
     */
    private String name;
    
    /**
     * @description 采集源URL
     */
    private String sourceUrl;
    
    /**
     * @description 采集源类型
     */
    private String sourceType;
    
    /**
     * @description 采集频率（daily每天 weekly每周）
     */
    private String frequency;
    
    /**
     * @description 默认分类ID
     */
    private String categoryID;
    
    /**
     * @description 状态（0禁用 1启用）
     */
    private Integer status;
    
    /**
     * @description 最后采集时间
     */
    private Date lastCollectTime;
    
    /**
     * @description 创建者
     */
    private String creator;
    
    /**
     * @description 更新者
     */
    private String updater;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSourceUrl() {
        return sourceUrl;
    }

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

    public String getSourceType() {
        return sourceType;
    }

    public void setSourceType(String sourceType) {
        this.sourceType = sourceType;
    }

    public String getFrequency() {
        return frequency;
    }

    public void setFrequency(String frequency) {
        this.frequency = frequency;
    }

    public String getCategoryID() {
        return categoryID;
    }

    public void setCategoryID(String categoryID) {
        this.categoryID = categoryID;
    }

    public Integer getStatus() {
        return status;
    }

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

    public Date getLastCollectTime() {
        return lastCollectTime;
    }

    public void setLastCollectTime(Date lastCollectTime) {
        this.lastCollectTime = lastCollectTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

    @Override
    public String toString() {
        return "TbDataCollectionConfig{" +
                "id=" + getID() +
                ", name='" + name + '\'' +
                ", sourceUrl='" + sourceUrl + '\'' +
                ", sourceType='" + sourceType + '\'' +
                ", frequency='" + frequency + '\'' +
                ", status=" + status +
                ", lastCollectTime=" + lastCollectTime +
                '}';
    }
}
