mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 02:46:45 +08:00
28 lines
1.5 KiB
JavaScript
28 lines
1.5 KiB
JavaScript
import http from "./config";
|
|
|
|
|
|
// 获取路径图详情-包含关卡及任务列表
|
|
export const GetRouterDetail = (routerId,useTask="") => http.get(`/admin/router/detail?routerId=${routerId}&useTask=${useTask}`)
|
|
//
|
|
export const changeChapterSort = (list) => http.post("/admin/router/changeChapterSort",list)
|
|
|
|
export const changeTasklistSort = (list) => http.post("/admin/router/changeTasklistSort",list)
|
|
// 新建或编辑阶段任务
|
|
export const ProjectEditTask = (obj) => http.post('/admin/project/editTask',obj)
|
|
// 新建或编辑关卡任务
|
|
export const RouterEditTask = (obj) => http.post('/admin/router/editTask',obj)
|
|
// 删除关卡任务
|
|
export const RouterDeleteTask = (obj) => http.post('/admin/router/deleteTask',obj);
|
|
// 删除项目任务
|
|
export const ProjectDeleteTask = (obj) => http.delete('/admin/project/deleteTask',obj);
|
|
// 发布路径下的全部关卡和任务
|
|
export const releaseRouter = (obj)=> http.post('/admin/router/release',obj);
|
|
// 判断当前在线课是否已经添加到该路径图下
|
|
export const IsExistence = (obj) => http.post('/admin/router/queryTaskDoesItExist',obj);
|
|
// 判断当前在线课是否已经添加到该项目下
|
|
export const IsExistenceProject = (obj) => http.post('/admin/project/queryTaskDoesItExistForProject',obj);
|
|
// 判断当前在线课是否已经添加到该模板库下
|
|
export const IsExistenceProjectTemplate = (obj) => http.post('/admin/project/template/queryTaskDoesItExistForTemplate',obj);
|
|
|
|
// 新建外部考试
|
|
export const CreateExternalExam = (obj) => http.post('/external/exam/createExternalExam',obj); |