import http from "./config";

//获取活动信息接口
export const getActivity = (activeId) => http.get(`/activity?activityId=${activeId}`);

//创建活动接口
export const createActivity = (obj) => http.post('/activity/createActivity', obj);

//删除活动接口
export const deleteActivity = (obj) => http.post('/activity/deleteActivity', { params: obj });

//修改活动接口
export const updateActivity = (obj) => http.post('/activity/updateActivity', obj);

//修改阶段任务信息
export const  updateTask=(obj)=>http.post('/admin/project/editTask',obj)

//修改活动是否为必修接口
export const updateActivityToCompulsory = (obj) => http.post('/activity/updateActivityToCompulsory', { params: obj });

//修改活动是否为选修接口
export const updateActivityToElective = (obj) => http.post('/activity/updateActivityToElective', { params: obj });