import { ApiProperty } from '@nestjs/swagger';
import { IsBoolean, IsOptional, IsString } from 'class-validator';

export class UploadMediaOutputDTO {
  @ApiProperty()
  @IsBoolean()
  success: boolean = false;

  @ApiProperty({ required: false })
  @IsString()
  @IsOptional()
  mediaId?: string;

  @ApiProperty({ required: false })
  @IsString()
  @IsOptional()
  url?: string;

  @ApiProperty({ required: false })
  @IsString()
  @IsOptional()
  error?: string;
}