package org.xyzh.common.dto.resource;

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

/**
 * @description 资源表
 * @filename TbResource.java
 * @author yslg
 * @copyright xyzh
 * @since 2025-10-15
 */
public class TbResource extends BaseDTO {
    
    private static final long serialVersionUID = 1L;

    /**
     * @description 资源ID
     */
    private String resourceID;
    
    /**
     * @description 资源标题
     */
    private String title;
    
    /**
     * @description 资源内容
     */
    private String content;
    
    /**
     * @description 资源简介
     */
    private String summary;
    
    /**
     * @description 封面图片
     */
    private String coverImage;
    
    /**
     * @description 分类ID
     */
    private String categoryID;
    
    /**
     * @description 作者
     */
    private String author;
    
    /**
     * @description 来源
     */
    private String source;
    
    /**
     * @description 来源URL
     */
    private String sourceUrl;
    
    /**
     * @description 浏览次数
     */
    private Integer viewCount;
    
    /**
     * @description 点赞次数
     */
    private Integer likeCount;
    
    /**
     * @description 收藏次数
     */
    private Integer collectCount;
    
    /**
     * @description 状态（0草稿 1已发布 2下架）
     */
    private Integer status;
    
    /**
     * @description 是否推荐
     */
    private Boolean isRecommend;
    
    /**
     * @description 是否轮播
     */
    private Boolean isBanner;
    
    /**
     * @description 发布时间
     */
    private Date publishTime;
    
    /**
     * @description 创建者
     */
    private String creator;
    
    /**
     * @description 更新者
     */
    private String updater;

    public String getResourceID() {
        return resourceID;
    }

    public void setResourceID(String resourceID) {
        this.resourceID = resourceID;
    }

    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 getCoverImage() {
        return coverImage;
    }

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

    public String getCategoryID() {
        return categoryID;
    }

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

    public String getAuthor() {
        return author;
    }

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

    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 Integer getViewCount() {
        return viewCount;
    }

    public void setViewCount(Integer viewCount) {
        this.viewCount = viewCount;
    }

    public Integer getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }

    public Integer getCollectCount() {
        return collectCount;
    }

    public void setCollectCount(Integer collectCount) {
        this.collectCount = collectCount;
    }

    public Integer getStatus() {
        return status;
    }

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

    public Boolean getIsRecommend() {
        return isRecommend;
    }

    public void setIsRecommend(Boolean isRecommend) {
        this.isRecommend = isRecommend;
    }

    public Boolean getIsBanner() {
        return isBanner;
    }

    public void setIsBanner(Boolean isBanner) {
        this.isBanner = isBanner;
    }

    public Date getPublishTime() {
        return publishTime;
    }

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

    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 "TbResource{" +
                "id=" + getID() +
                ", resourceID='" + resourceID + '\'' +
                ", title='" + title + '\'' +
                ", categoryID='" + categoryID + '\'' +
                ", author='" + author + '\'' +
                ", status=" + status +
                ", viewCount=" + viewCount +
                ", likeCount=" + likeCount +
                ", isRecommend=" + isRecommend +
                ", publishTime=" + publishTime +
                '}';
    }
}
