chore: add cover url field to the danak service entity
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user