mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 21:09:19 +08:00
wip: 数据导入
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
import type { ImportTaskDTO, ImportTaskVO } from './types';
|
||||
|
||||
import type { PageQueryDTO, PageResultVO } from '#/types/common';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 导入任务管理API
|
||||
*/
|
||||
|
||||
/**
|
||||
* 创建导入任务
|
||||
*/
|
||||
export async function createImportTaskApi(
|
||||
data: ImportTaskDTO.CreateImportTaskDTO,
|
||||
) {
|
||||
return requestClient.post<ImportTaskVO.ImportTaskInfoVO>(
|
||||
'/ec/import-task/create',
|
||||
data,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页获取导入任务列表
|
||||
*/
|
||||
export async function getImportTaskPageApi(
|
||||
params: PageQueryDTO<ImportTaskDTO.ImportTaskFilterDTO>,
|
||||
) {
|
||||
return requestClient.post<PageResultVO<ImportTaskVO.ImportTaskInfoVO>>(
|
||||
'/ec/import-task/page',
|
||||
params,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user