package org.xyzh.common.dto.resource;

import org.xyzh.common.dto.BaseDTO;

/**
 * @description Banner表
 * @filename TbBanner.java
 * @author yslg
 * @copyright xyzh
 * @since 2025-10-15
 */
public class TbBanner extends BaseDTO {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * @description Banner标题
     */
    private String title;
    
    /**
     * @description Banner图片URL
     */
    private String imageUrl;
    
    /**
     * @description 链接类型（1资源 2课程 3外部链接）
     */
    private Integer linkType;
    
    /**
     * @description 关联ID（资源ID或课程ID）
     */
    private String linkID;
    
    /**
     * @description 外部链接URL
     */
    private String linkUrl;
    
    /**
     * @description 排序号
     */
    private Integer orderNum;
    
    /**
     * @description 状态（0禁用 1启用）
     */
    private Integer status;
    
    /**
     * @description 创建者
     */
    private String creator;
    
    /**
     * @description 更新者
     */
    private String updater;

    public String getTitle() {
        return title;
    }

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

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public Integer getLinkType() {
        return linkType;
    }

    public void setLinkType(Integer linkType) {
        this.linkType = linkType;
    }

    public String getLinkID() {
        return linkID;
    }

    public void setLinkID(String linkID) {
        this.linkID = linkID;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getStatus() {
        return status;
    }

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

    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 "TbBanner{" +
                "id=" + getID() +
                ", title='" + title + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", linkType=" + linkType +
                ", linkID='" + linkID + '\'' +
                ", linkUrl='" + linkUrl + '\'' +
                ", orderNum=" + orderNum +
                ", status=" + status +
                '}';
    }
}
