feat: add new field for the danak services
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user