储存进度

This commit is contained in:
wangjinlei
2024-04-24 19:29:55 +08:00
parent 0764d8dce4
commit 6b2e37b29b
3 changed files with 27 additions and 2 deletions

View File

@@ -112,6 +112,13 @@ public class CourseController {
return R.ok().put("playAuth",playAuth);
}
public R saveCoursePosition(@RequestBody Map<String,Integer> map){
Integer uId = ShiroUtils.getUId();
Integer videoId = map.get("videoId");
Integer position = map.get("position");
courseCatalogueChapterVideoService.saveCoursePosition(uId,videoId,position);
return null;
}
/**
* 验证video权限并解决足迹加密视频签名问题
* @param video