chore: add service review add and get in service page and also approve and reject for admin
This commit is contained in:
@@ -12,10 +12,16 @@ export class CreateServiceDto {
|
||||
|
||||
@IsNotEmpty({ message: ServiceMessage.NAME_REQUIRED })
|
||||
@IsString({ message: ServiceMessage.NAME_STRING })
|
||||
@Length(3, 50, { message: ServiceMessage.NAME_LENGTH })
|
||||
@Length(3, 150, { message: ServiceMessage.NAME_LENGTH })
|
||||
@ApiProperty({ description: "The name of the service", example: "Service Name" })
|
||||
name: string;
|
||||
|
||||
@IsNotEmpty({ message: ServiceMessage.TITLE_REQUIRED })
|
||||
@IsString({ message: ServiceMessage.TITLE_STRING })
|
||||
@Length(3, 150, { message: ServiceMessage.TITLE_LENGTH })
|
||||
@ApiProperty({ description: "The TITLE of the service", example: "Service TITLE" })
|
||||
title: 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