batchImport.ts 427 Bytes
import { ImportDeviceParams, ImportDeviceResponse } from './model/batchImportModel';
import { defHttp } from '/@/utils/http/axios';

enum BatchImportApi {
  IMPORT = '/device/batch_import',
}

export const batchImportDevice = (data: ImportDeviceParams) => {
  return defHttp.post<ImportDeviceResponse>(
    {
      url: BatchImportApi.IMPORT,
      data,
      timeout: 1000 * 60 * 60,
    },
    { joinPrefix: false }
  );
};