package com.stylefeng.guns.modular.system.model;
|
|
import com.baomidou.mybatisplus.activerecord.Model;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import java.io.Serializable;
|
|
/**
|
* <p>
|
* 课程下的视频
|
* </p>
|
*
|
* @author 无关风月
|
* @since 2024-02-06
|
*/
|
@TableName("t_course_video")
|
@Data
|
public class CourseVideo extends Model<CourseVideo> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
/**
|
* 视频名称
|
*/
|
@ApiModelProperty("视频名称")
|
private String videoName;
|
@ApiModelProperty("视频地址")
|
private String courseVideo;
|
/**
|
* 课程id
|
*/
|
private Integer courseId;
|
/**
|
* 视频时长 分钟
|
*/
|
@ApiModelProperty("视频时长 分钟")
|
private Integer minute;
|
/**
|
* 视频时长 秒
|
*/
|
@ApiModelProperty("视频时长 秒")
|
private Integer second;
|
@ApiModelProperty("视频总时长 秒")
|
private Integer time;
|
|
private Integer isDelete;
|
public Integer getId() {
|
return id;
|
}
|
|
public void setId(Integer id) {
|
this.id = id;
|
}
|
|
public String getVideoName() {
|
return videoName;
|
}
|
|
public void setVideoName(String videoName) {
|
this.videoName = videoName;
|
}
|
|
public Integer getCourseId() {
|
return courseId;
|
}
|
|
public void setCourseId(Integer courseId) {
|
this.courseId = courseId;
|
}
|
|
public Integer getMinute() {
|
return minute;
|
}
|
|
public void setMinute(Integer minute) {
|
this.minute = minute;
|
}
|
|
public Integer getSecond() {
|
return second;
|
}
|
|
public void setSecond(Integer second) {
|
this.second = second;
|
}
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
@Override
|
public String toString() {
|
return "CourseVideo{" +
|
"id=" + id +
|
", videoName=" + videoName +
|
", courseId=" + courseId +
|
", minute=" + minute +
|
", second=" + second +
|
"}";
|
}
|
}
|