mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-12 12:26:48 +08:00
2022年5月29日 从svn移到git
This commit is contained in:
36
api/modules/videoStudy.js
Normal file
36
api/modules/videoStudy.js
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* 课程视频学习的处理接口。
|
||||
* 保存学习内容,更新学习内容进度,完成内容条目学习
|
||||
*
|
||||
*/
|
||||
import ajax from '@/utils/xajax.js'
|
||||
|
||||
/**
|
||||
* 保存课程内容条目学习
|
||||
* @param {学习的内容} data
|
||||
*/
|
||||
const saveStudyItem=function(data){
|
||||
return ajax.post('/xboe/school/study/course/study-video-save',data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新学习条目的时间
|
||||
* @param {itemId,videoTime} data
|
||||
*/
|
||||
const updateStudyItemTime=function(data){
|
||||
return ajax.post('/xboe/school/study/course/study-video-time',data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 完成单个课程内容的学习
|
||||
* @param {itemId,studyId,courseId} data
|
||||
*/
|
||||
const finishStudyItem=function(data){
|
||||
return ajax.post('/xboe/school/study/course/study-video-finish',data);
|
||||
}
|
||||
|
||||
export default {
|
||||
saveStudyItem,
|
||||
updateStudyItemTime,
|
||||
finishStudyItem
|
||||
}
|
||||
Reference in New Issue
Block a user