import http from "./config";
//获取任务列表
export const getTask = (obj) => http.get('/admin/project/detail', { params: obj })

//项目里的新建或编辑阶段任务
export const addTask = (obj) => http.post('/admin/project/editTask', obj)

//模板库项目里的新建或编辑阶段任务
export const addTaskTemplate = (obj) => http.post('/admin/project/template/editTask', obj)

//项目里的删除任务
export const deleteTask = (obj) => http.delete('/admin/project/deleteTask', { params: obj })

//新建或编辑项目
export const editProj = (obj) => http.post('/admin/project/edit', obj)

//路径图里的新建或编辑关卡任务
export const editTask = (obj) => http.post('/admin/router/editTask', obj)

//项目里获取项目积分规则
export const scoreRule = (obj) => http.get('/admin/project/scoreRule', { params: obj })

//项目里设置项目积分规则
export const setScoreRule = (obj) => http.post('/admin/project/setScoreRule', obj)

//面授课开课列表
export const planList = (obj) => http.post('/admin/offcourse/planList', obj)

//获取面授课列表
export const list = (obj) => http.post('/admin/offcourse/list', obj)

export const addTempTask = (obj) => http.post('/admin/project/template/editTask', obj)