Template
提交代码
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import request from './request';
|
||||
|
||||
export interface ZhConvertRequest {
|
||||
scanDir: string;
|
||||
outputDir?: string;
|
||||
threshold: number;
|
||||
mode: 'preview' | 'execute';
|
||||
}
|
||||
|
||||
export interface ZhConvertResponse {
|
||||
taskId: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 启动音乐元数据繁体转简体任务
|
||||
*/
|
||||
export function startZhConvert(params: ZhConvertRequest): Promise<ZhConvertResponse> {
|
||||
return request.post('/api/zhconvert/start', params);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user