6 天以前 5dbc69b4e792dcce998038822b92402366bec47f
src/api/system/post/index.ts
@@ -1,4 +1,4 @@
import type { PageParam, PageResult } from '../../../packages/effects/request/src';
import type { PageParam, PageResult } from '@vben/request';
import { requestClient } from '#/api/request';
@@ -61,3 +61,16 @@
    params,
  });
}
/** 下载岗位导入模板 */
export function importPostTemplate() {
  return requestClient.download('/system/post/get-import-template');
}
/** 导入岗位 */
export function importPost(file: File, updateSupport: boolean) {
  return requestClient.upload('/system/post/import', {
    file,
    updateSupport,
  });
}