chore: add service image and audio

This commit is contained in:
mahyargdz
2025-08-30 09:40:44 +03:30
parent 9869e603d3
commit 9c409bef27
28 changed files with 2111 additions and 1631 deletions
@@ -109,9 +109,24 @@ export class CreateServiceDto {
@IsNotEmpty({ message: ServiceMessage.IMAGES_REQUIRED })
@IsString({ each: true })
@IsUrl({ protocols: ["http", "https"], require_protocol: true }, { message: ServiceMessage.IMAGES_SHOULD_BE_URL })
@ApiProperty({ description: "The images of the service", example: ["https://example.com/image1.png", "https://example.com/image2.png"] })
images: string[];
@IsOptional()
@IsNotEmpty({ message: ServiceMessage.AUDIOS_REQUIRED })
@IsString({ each: true })
@IsUrl({ protocols: ["http", "https"], require_protocol: true }, { message: ServiceMessage.AUDIOS_SHOULD_BE_URL })
@ApiProperty({ description: "The audios of the service", example: ["https://example.com/audio1.mp3", "https://example.com/audio2.mp3"] })
audios?: string[];
@IsOptional()
@IsNotEmpty({ message: ServiceMessage.VIDEOS_REQUIRED })
@IsString({ each: true })
@IsUrl({ protocols: ["http", "https"], require_protocol: true }, { message: ServiceMessage.VIDEOS_SHOULD_BE_URL })
@ApiProperty({ description: "The videos of the service", example: ["https://example.com/video1.mp4", "https://example.com/video2.mp4"] })
videos?: string[];
@IsOptional()
@IsNotEmpty({ message: ServiceMessage.COVER_URL_REQUIRED })
@IsUrl({ protocols: ["http", "https"], require_protocol: true }, { message: ServiceMessage.COVER_URL_SHOULD_BE_URL })