init
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
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[];
|
||||
}
|
||||
Reference in New Issue
Block a user