import request from "@/utils/request";

//接收-对比字段
export const receiveContrastField = params => {
  return request({
    url: "/point-strategy/v/fileManage/receiveContrastField",
    method: "get",
    params
  });
};
//接收-xml标签列表
export const receiveXmlList = params => {
  return request({
    url: "/point-strategy/v/fileManage/receiveXmlList",
    method: "get",
    params
  });
};
//接收-导入
export const receiveImport = data => {
  return request({
    url: "/point-strategy/v/fileManage/receiveImport",
    method: "post",
    data
  });
};
//根据门类id查询表字段2
export const getTableFieldList = params => {
  return request({
    url: "/point-strategy/v/archiveNoFormat/getTableFieldList2",
    method: "post",
    params
  });
};
// 数据接收
export const dataReception = (id, formData) => {
  return request({
    url: `/point-strategy/v/fileManage/receiveEEPNetwork?classId=${id}`,
    method: "post",
    data: formData,
    headers: {
      "Content-Type": "multipart/form-data",
      "Token": sessionStorage.getItem("token")
    }
  });
};
