import http from "./config";
//import qs from 'qs';

//创建讨论
export const createDiscuss = (obj) => http.post("/discuss/createDiscuss", obj);

//获取讨论信息接口
export const getDiscussDetail = (obj) => http.post('/discuss/getDiscussDetail', obj,{
  headers: {
    'token': '123',
    'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
  }
})
//删除讨论接口
export const deleteDiscuss = (obj) =>
  http.post("/discuss/deleteDiscuss", { params: obj });

//修改讨论接口
export const updateDiscuss = (obj) => http.post('/discuss/updateDiscuss',  obj );
//修改阶段任务信息
export const  updateTask=(obj)=>http.post('/admin/project/editTask',obj)
