🚧 improve image uploading

This commit is contained in:
2025-01-14 17:34:55 +08:00
parent 9356c00815
commit e1ee33946d
6 changed files with 165 additions and 132 deletions

12
src/types/upload.d.ts vendored Normal file
View File

@@ -0,0 +1,12 @@
export interface UploadedFile {
id: string; // 唯一标识符
fileName: string; // 文件名
file: File | Blob; // 图片数据
type: string; // 文件类型
detectionResults: {
isAnime: boolean;
hasFace: boolean;
objectArray: string[] | unknown[];
landscape: string | null;
};
}