chore: add show in silder for the service

This commit is contained in:
mahyargdz
2025-04-21 12:05:53 +03:30
parent 160040a4b7
commit 8584e2b522
5 changed files with 67 additions and 0 deletions
@@ -70,6 +70,11 @@ export class CreateServiceDto {
@ApiProperty({ description: "Is the service a Danak suggest?", example: true })
isDanakSuggest: boolean;
@IsNotEmpty({ message: ServiceMessage.SHOW_IN_SLIDER_REQUIRED })
@IsBoolean({ message: ServiceMessage.SHOW_IN_SLIDER_BOOLEAN })
@ApiProperty({ description: "Is the service show in slider?", example: true })
showInSlider: boolean;
@IsNotEmpty({ message: ServiceMessage.ICON_REQUIRED })
@IsUrl({ protocols: ["http", "https"], require_protocol: true }, { message: ServiceMessage.ICON_SHOULD_BE_URL })
@ApiProperty({ description: "The icon url of the service", example: "https://example.com/icon.png" })