resolve manual DTOs
This commit is contained in:
23
apps/api/src/domain/media/dtos/UploadMediaOutputDTO.ts
Normal file
23
apps/api/src/domain/media/dtos/UploadMediaOutputDTO.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsString, IsBoolean, IsOptional } from 'class-validator';
|
||||
|
||||
export class UploadMediaOutputDTO {
|
||||
@ApiProperty()
|
||||
@IsBoolean()
|
||||
success: boolean;
|
||||
|
||||
@ApiProperty({ required: false })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
mediaId?: string;
|
||||
|
||||
@ApiProperty({ required: false })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
url?: string;
|
||||
|
||||
@ApiProperty({ required: false })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
error?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user