提交代码
This commit is contained in:
18
frontend/src/api/aggregate.ts
Normal file
18
frontend/src/api/aggregate.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import request from './request';
|
||||
|
||||
export interface AggregateRequest {
|
||||
srcDir: string;
|
||||
dstDir: string;
|
||||
mode: 'copy' | 'move';
|
||||
}
|
||||
|
||||
export interface AggregateResponse {
|
||||
taskId: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 启动音频文件汇聚任务
|
||||
*/
|
||||
export function startAggregate(params: AggregateRequest): Promise<AggregateResponse> {
|
||||
return request.post('/api/aggregate/start', params);
|
||||
}
|
||||
Reference in New Issue
Block a user