package org.xyzh.common.dto.study;

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

/**
 * @description 课程表
 * @filename TbCourse.java
 * @author yslg
 * @copyright xyzh
 * @since 2025-10-15
 */
public class TbCourse extends BaseDTO {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * @description 课程唯一标识
     */
    private String courseID;
    
    /**
     * @description 课程名称
     */
    private String name;
    
    /**
     * @description 课程封面图片
     */
    private String coverImage;
    
    /**
     * @description 课程描述
     */
    private String description;
    
    /**
     * @description 课程内容
     */
    private String content;
    
    /**
     * @description 课程时长（分钟）
     */
    private Integer duration;
    
    /**
     * @description 授课老师
     */
    private String teacher;
    
    /**
     * @description 状态（0未上线 1已上线 2已下架）
     */
    private Integer status;
    
    /**
     * @description 浏览次数
     */
    private Integer viewCount;
    
    /**
     * @description 学习人数
     */
    private Integer learnCount;
    
    /**
     * @description 排序号
     */
    private Integer orderNum;
    
    /**
     * @description 创建者
     */
    private String creator;
    
    /**
     * @description 更新者
     */
    private String updater;
    
    /**
     * @description 更新时间
     */
    private Date updateTime;
    
    /**
     * @description 删除时间
     */
    private Date deleteTime;
    
    /**
     * @description 是否删除
     */
    private Boolean deleted;

    public String getCourseID() {
        return courseID;
    }

    public void setCourseID(String courseID) {
        this.courseID = courseID;
    }

    public String getName() {
        return name;
    }

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

    public String getCoverImage() {
        return coverImage;
    }

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

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getContent() {
        return content;
    }

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

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public Integer getStatus() {
        return status;
    }

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

    public Integer getViewCount() {
        return viewCount;
    }

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

    public Integer getLearnCount() {
        return learnCount;
    }

    public void setLearnCount(Integer learnCount) {
        this.learnCount = learnCount;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

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

    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;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

    @Override
    public String toString() {
        return "TbCourse{" +
                "id=" + getID() +
                ", courseID='" + courseID + '\'' +
                ", name='" + name + '\'' +
                ", coverImage='" + coverImage + '\'' +
                ", teacher='" + teacher + '\'' +
                ", status=" + status +
                ", viewCount=" + viewCount +
                ", learnCount=" + learnCount +
                ", creator='" + creator + '\'' +
                ", createTime=" + getCreateTime() +
                '}';
    }
}

