diff --git a/src/api/designPlatform.js b/src/api/designPlatform.js index c3f31dcad..9b314b209 100644 --- a/src/api/designPlatform.js +++ b/src/api/designPlatform.js @@ -54,3 +54,38 @@ export function runUserPlanNotify({ planId }) { method: 'get' }); } + +/** 管理员获取需审核的课程列表 */ +export function reviewLessonList(params) { + return request({ + url: `/api/review/lesson`, + method: 'get', + params + }); +} + +/** 管理员发布课程接口 */ +export function adminPublishLesson(data, id) { + return request({ + url: `/api/review/${id}/publishLesson`, + method: 'post', + data: data + }); +} + +/** 管理员驳回课程发布申请 */ +export function rejectedLessonRelease(data, id) { + return request({ + url: `/api/review/${id}`, + method: 'post', + data: data + }); +} + +/** 普通用户申请发布和撤销申请 */ +export function releaseOrCancel(id, status) { + return request({ + url: `/api/review/releaseOrCancel/${id}/${status}`, + method: 'get' + }); +} diff --git a/src/views/designPlatform/demonList.vue b/src/views/designPlatform/demonList.vue index ea309fa42..47183d5f1 100644 --- a/src/views/designPlatform/demonList.vue +++ b/src/views/designPlatform/demonList.vue @@ -24,23 +24,7 @@ - - - - - -