import http from "./config";

/**
 * 1
 */
// //评估问题创建接口
// export const createResearch = (obj) =>
//   http.post("research/createResearch", obj);
// //删除评估基础信息
// export const deleteResearch = (obj) =>
//   http.post("research/deleteResearch", obj);
// //评估信息发布状态的接口
// export const editReleaseStatus = (obj) =>
//   http.post("research/editReleaseStatus", obj);
// //修改评估问题的接口
// export const editResearchMessage = (obj) =>
//   http.post("research/editResearchMessage", obj);
// //根据ID查询评估基础信息详情
// export const queryResearchDetailById = (obj) =>
//   http.post("research/queryResearchDetailById", obj);
// //获取全部评估信息接口
// export const queryResearchDetailList = (obj) =>
//   http.post("research/queryResearchDetailList", obj);

//评估问题创建接口
export const createResearch = (obj) =>
  http.post("/assessment/createAssessment", obj);
//删除评估基础信息
export const deleteResearch = (obj) =>
  http.post("/assessment/deleteAssessment", obj, {
    headers: { "Content-Type": "application/x-www-form-urlencoded" },
  });
//选择题删除题干或选项接口-修改时删除
export const deleteChoiceQuestion = (obj) =>
  http.post("/assessment/deleteChoiceQuestion", obj);
//问答题或评分题删除题干-修改时删除
export const deleteQuestionScAndQa = (obj) =>
  http.post("/assessment/deleteQuestionScAndQa", obj);
//修改评估问题的接口
export const editResearchMessage = (obj) =>
  http.post("/assessment/editAssessmentMessage", obj);
//评估信息编辑修改评估名称
export const editAssessmentName = (obj) =>
  http.post("/assessment/editAssessmentName", obj);
//评估信息发布状态的接口
export const editReleaseStatus = (obj) =>
  http.post("/assessment/editReleaseStatus", obj);
//根据ID查询评估基础信息详情
export const queryResearchDetailById = (obj) =>
  http.post("/assessment/queryAssessmentDetailById", obj, {
    headers: { "Content-Type": "application/x-www-form-urlencoded" },
  });
//获取全部评估信息接口
export const queryResearchDetailList = (obj) =>
  http.post("/assessment/queryAssessmentDetailList", obj);
//评估管理-管理-获取评估部分信息
export const queryAssessmentDetailList = (obj) =>
  http.post("/assessment/queryAssessmentPartDetail", obj, {
    headers: { "Content-Type": "application/x-www-form-urlencoded" },
  });

/**
 * 2
 */
//创建评估信息
// export const createAppraiseMessage = (obj) =>
//   http.post("/survey/createAppraiseMessage", { params: obj });
// //删除评估信息
// export const deleteAppraise = (obj) =>
//   http.post("/survey/deleteAppraise", { params: obj });
// //查询评估信息
// export const queryAppraiseDetailById = (obj) =>
//   http.post("/survey/queryAppraiseDetailById", { params: obj });
// //修改评估信息
// export const updateAppraiseMessage = (obj) =>
//   http.post("/survey/updateAppraiseMessage", { params: obj });

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

// createWorkTask({
//   createTime: "",
// })
//   .then((res) => {
//     message.success(`添加成功${res}`);
//     ctx.emit("update:addhomeworkVisible", false);
//   })
//   .catch((err) => {
//     message.error(`添加失败${err}`);
//   });
