We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef1b9c3 commit 8895c4bCopy full SHA for 8895c4b
server/src/file/dto/request/deleteFile.dto.ts
@@ -0,0 +1,19 @@
1
+import { ApiProperty } from '@nestjs/swagger';
2
+import { Type } from 'class-transformer';
3
+import { IsInt } from 'class-validator';
4
+
5
+export class FileDeleteRequestDto {
6
+ @ApiProperty({
7
+ example: 1,
8
+ description: '파일 ID',
9
+ })
10
+ @IsInt({
11
+ message: '숫자로 입력해주세요.',
12
13
+ @Type(() => Number)
14
+ id: number;
15
16
+ constructor(partial: Partial<FileDeleteRequestDto>) {
17
+ Object.assign(this, partial);
18
+ }
19
+}
0 commit comments