chore: add cover url field to the danak service entity

This commit is contained in:
mahyargdz
2025-04-23 14:36:20 +03:30
parent 10a7653451
commit c2949ba06a
4 changed files with 11 additions and 5 deletions
@@ -97,4 +97,9 @@ export class CreateServiceDto {
@IsString({ each: true })
@ApiProperty({ description: "The images of the service", example: ["https://example.com/image1.png", "https://example.com/image2.png"] })
images: string[];
@IsNotEmpty({ message: ServiceMessage.COVER_URL_REQUIRED })
@IsUrl({ protocols: ["http", "https"], require_protocol: true }, { message: ServiceMessage.COVER_URL_SHOULD_BE_URL })
@ApiProperty({ description: "The cover url of the service", example: "https://example.com/cover.png" })
coverUrl: string;
}