import { defHttp } from '/@/utils/http/axios';
import { Modal } from 'ant-design-vue';

enum Api {
  list = '/dkgl/gDsrwGeo/list', 
  exportXls = '/dkgl/gDsrwGeo/exportXls',
  downloadMdb = '/dkgl/gDsrwGeo/downloadMdb', 
  downloadGdb = '/dkgl/gDsrwGeo/downloadGdb', 
  update= '/dkgl/gDsrwGeo/updateDayData    '
}
/**
 * 下载mdb文件
 * @param params
 */
export const getDownloadMdb = (params) => defHttp.get({ url: Api.downloadMdb, params });
/**
 * 下载gdb文件接口
 * @param params
 */
export const getDownloadGdb = (params) => defHttp.get({ url: Api.downloadGdb, params });

/**
 * 导出api
 * @param params
 */
export const getExportUrl = Api.exportXls;

/**
 * 列表接口
 * @param params
 */
export const list = (params) =>
  defHttp.get({url: Api.list, params});

/**
 * 更新
 * @param params
 */
export const update = (params) => {
  return defHttp.post({ url: Api.update, params });
};