// 模板相关接口
import http from "./config";

//编辑项目模板
export const templateEdit = (obj) => http.post('/admin/project/template/edit',obj);
// 模板详情
export const templateDetail = (id) => http.get(`/admin/project/template/detail?projectTemplateId=${id}`);
// 删除阶段
export const deleteStage = (id) => http.delete(`/admin/project/template/deleteStage?stageId=${id}`);
//删除任务
export const deleteTask = (id) => http.delete(`/admin/project/template/deleteTask?projectTaskIds=${id}`); 
// 移动任务到阶段
export const moveTask = (obj) => http.post('/admin/project/template/moveTask',obj);
// 新建或编辑阶段
export const editStage = (obj) => http.post('/admin/project/template/editStage',obj);
// 新建或编辑阶段任务
export const editTask = (obj) => http.post('/admin/project/template/editTask',obj);
// 操作模板(撤回，发布，删除)
export const handleTemplates = (obj) => http.post('/admin/project/template/handle',obj);
// 模板库列表
export const templateList = (obj) => http.post(`/admin/project/template/list`,obj);
// 发布项目公告
export const publishNotice = (obj) => http.post(`/admin/project/template/publishNotice`,obj);

