课程详情studyIndex和detail传递用户所有受众id

This commit is contained in:
nisen
2023-08-09 18:45:33 +08:00
parent fdf16e86dc
commit 55e117b2c2
4 changed files with 51 additions and 4 deletions

View File

@@ -69,6 +69,19 @@ const countSignup = function(courseId) {
const studyIndex = function(courseId) {
return ajax.get('/xboe/school/study/course/studyIndex?cid='+courseId+'&addView=true');
}
/**
*
* @param {object} data
* {
* cid课程id,
* addView,
* audiences:登录用户所有受众id
* }
* @returns
*/
const studyIndexPost = function(data) {
return ajax.post('/xboe/school/study/course/studyIndex',data);
}
/**
* 课程学习根据课程id来获取,
@@ -414,5 +427,6 @@ export default {
findByIds,
deleteSignUp,
ids,
followIds
followIds,
studyIndexPost
}