feat(Processors): add process directory endpoint and UI support

This commit is contained in:
shiyu
2025-09-24 23:18:03 +08:00
parent f0892ebcd6
commit 00462f2259
4 changed files with 273 additions and 29 deletions

View File

@@ -34,6 +34,18 @@ export const processorsApi = {
method: 'POST',
json: params,
}),
processDirectory: (params: {
path: string;
processor_type: string;
config: any;
overwrite: boolean;
max_depth?: number | null;
suffix?: string | null;
}) =>
request<{ task_ids: string[]; scheduled: number }>('/processors/process-directory', {
method: 'POST',
json: params,
}),
getSource: (type: string) =>
request<{ source: string; module_path: string }>('/processors/source/' + encodeURIComponent(type), {
method: 'GET',