20 lines
407 B
TypeScript
Executable File
20 lines
407 B
TypeScript
Executable File
import type { File } from '@nest-lab/fastify-multer';
|
|
import { ApiProperty } from '@nestjs/swagger';
|
|
|
|
export class UploadSingleFileDto {
|
|
@ApiProperty({ type: 'string', format: 'binary', nullable: false })
|
|
file: File;
|
|
}
|
|
|
|
export class UploadMultipleFileDto {
|
|
@ApiProperty({
|
|
required: true,
|
|
type: 'array',
|
|
items: {
|
|
type: 'string',
|
|
format: 'binary',
|
|
},
|
|
})
|
|
files: File[];
|
|
}
|