feat: update subscription and service entities with enhancements
- Update message enum for better error handling - Enhance service creation DTO with new fields - Modify danak-service entity structure - Update subscription DTOs and entities - Improve user subscription entity model
This commit is contained in:
@@ -37,10 +37,17 @@ export class CreateServiceDto {
|
||||
@IsOptional()
|
||||
@IsNotEmpty({ message: ServiceMessage.PAGE_TITLE_REQUIRED })
|
||||
@IsString({ message: ServiceMessage.PAGE_TITLE_STRING })
|
||||
@Length(3, 1500, { message: ServiceMessage.PAGE_TITLE_LENGTH })
|
||||
@Length(3, 500, { message: ServiceMessage.PAGE_TITLE_LENGTH })
|
||||
@ApiProperty({ description: "The page title of the service", example: "Service Page Title" })
|
||||
pageTitle?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsNotEmpty({ message: ServiceMessage.PAGE_DESCRIPTION_REQUIRED })
|
||||
@IsString({ message: ServiceMessage.PAGE_DESCRIPTION_STRING })
|
||||
@Length(10, 500, { message: ServiceMessage.PAGE_DESCRIPTION_LENGTH })
|
||||
@ApiProperty({ description: "The page description of the service", example: "Service Page Description" })
|
||||
pageDescription?: 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