feat: add new field for the danak services

This commit is contained in:
mahyargdz
2025-08-16 12:56:08 +03:30
parent ef57dc7107
commit 840654b3f0
3 changed files with 13 additions and 0 deletions
@@ -34,6 +34,13 @@ export class CreateServiceDto {
@ApiProperty({ description: "The TITLE of the service", example: "Service TITLE" })
title: string;
@IsOptional()
@IsNotEmpty({ message: ServiceMessage.PAGE_TITLE_REQUIRED })
@IsString({ message: ServiceMessage.PAGE_TITLE_STRING })
@Length(3, 1500, { message: ServiceMessage.PAGE_TITLE_LENGTH })
@ApiProperty({ description: "The page title of the service", example: "Service Page Title" })
pageTitle?: string;
@IsNotEmpty({ message: ServiceMessage.DESCRIPTION_REQUIRED })
@IsString({ message: ServiceMessage.DESCRIPTION_STRING })
@Length(10, 500, { message: ServiceMessage.DESCRIPTION_LENGTH })