初始化视频首次加载的时间
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package com.peanut.modules.common.dao;
|
||||
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import com.peanut.modules.common.entity.UserCourseVideoPositionEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface UserCourseVideoPositionDao extends MPJBaseMapper<UserCourseVideoPositionEntity> {
|
||||
}
|
||||
@@ -30,4 +30,6 @@ public class CourseCatalogueChapterVideoEntity {
|
||||
|
||||
@TableField(exist = false)
|
||||
private String playAuth;
|
||||
@TableField(exist = false)
|
||||
private UserCourseVideoPositionEntity userCourseVideoPositionEntity;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.peanut.modules.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@TableName("user_course_video_position")
|
||||
public class UserCourseVideoPositionEntity {
|
||||
|
||||
@TableId
|
||||
private Integer id;
|
||||
|
||||
private Integer userId;
|
||||
|
||||
private Integer videoId;
|
||||
|
||||
private Integer position;
|
||||
|
||||
private Integer duration;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
@TableLogic
|
||||
private Integer delFlag;
|
||||
}
|
||||
Reference in New Issue
Block a user