TbxXrVideo.java 3.61 KB
package cn.bxe.updatevideo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.lang.reflect.Type;
import java.util.Objects;

/**
 * <p>
 * 小睿章节模块视频
 * </p>
 *
 * @author ting
 * @since 2023-01-17
 */
public class TbxXrVideo extends Model<TbxXrVideo> implements Serializable{



    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 视频id
     */
    private Integer videoId;

    /**
     * 类目id
     */
    private Integer chapterId;

    /**
     * 模块ID
     */
    private Integer moduleId;

    /**
     * 视频名
     */
    private String videoName;

    /**
     * 视频链接
     */
    private String url;

    /**
     * 视频时长
     */
    private String timeDuration;

    /**
     * 记录状态@10,正常|30,删除状态
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Long createTime;

    /**
     * 视频封面链接
     */
    private String coverUrl;

    public TbxXrVideo() {
    }

    public Integer getVideoId() {
        return videoId;
    }

    public void setVideoId(Integer videoId) {
        this.videoId = videoId;
    }

    public Integer getChapterId() {
        return chapterId;
    }

    public void setChapterId(Integer chapterId) {
        this.chapterId = chapterId;
    }

    public Integer getModuleId() {
        return moduleId;
    }

    public void setModuleId(Integer moduleId) {
        this.moduleId = moduleId;
    }

    public String getVideoName() {
        return videoName;
    }

    public void setVideoName(String videoName) {
        this.videoName = videoName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTimeDuration() {
        return timeDuration;
    }

    public void setTimeDuration(String timeDuration) {
        this.timeDuration = timeDuration;
    }

    public Integer getStatus() {
        return status;
    }

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

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbxXrVideo that = (TbxXrVideo) o;
        return Objects.equals(videoId, that.videoId) && Objects.equals(chapterId, that.chapterId) && Objects.equals(moduleId, that.moduleId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(videoId, chapterId, moduleId);
    }

    @Override
    public String toString() {
        return "TbxXrVideo{" +
                "videoId=" + videoId +
                ", chapterId=" + chapterId +
                ", moduleId=" + moduleId +
                ", videoName='" + videoName + '\'' +
                ", url='" + url + '\'' +
                ", timeDuration='" + timeDuration + '\'' +
                ", status=" + status +
                ", createTime=" + createTime +
                ", coverUrl='" + coverUrl + '\'' +
                '}';
    }
}