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,
    },
    { joinPrefix: false }
  );
};
