chore: add show in silder for the service
This commit is contained in:
@@ -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" })
|
||||
|
||||
Reference in New Issue
Block a user