This commit is contained in:
2026-07-06 14:17:20 +03:30
parent bfc077df1c
commit 7f9358e637
9 changed files with 756 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import { ApiProperty } from '@nestjs/swagger';
export class UploadFileResponseDto {
@ApiProperty({ example: 'uploads/2026/07/uuid-photo.jpg' })
key: string;
@ApiProperty({ example: 'https://c274938.parspack.net/uploads/2026/07/uuid-photo.jpg' })
url: string;
@ApiProperty({ example: 'photo.jpg' })
originalName: string;
@ApiProperty({ example: 'image/jpeg' })
mimeType: string;
@ApiProperty({ example: 102400 })
size: number;
}
export class MultiUploadResponseDto {
@ApiProperty({ type: [UploadFileResponseDto] })
files: UploadFileResponseDto[];
}