food review

This commit is contained in:
2025-12-08 12:04:50 +03:30
parent aededf6da9
commit 1771b000b4
4 changed files with 67 additions and 12 deletions
+7 -8
View File
@@ -30,23 +30,22 @@ export class CreateReviewDto {
@IsOptional()
@IsArray()
@IsEnum(PositivePoint, { each: true })
@ApiPropertyOptional({
description: 'Positive points about the food',
@ApiPropertyOptional({
description: 'Positive points about the food',
example: [PositivePoint.GREAT_TASTE, PositivePoint.FAST_DELIVERY],
enum: PositivePoint,
isArray: true
isArray: true,
})
positivePoints?: PositivePoint[];
@IsOptional()
@IsArray()
@IsEnum(NegativePoint, { each: true })
@ApiPropertyOptional({
description: 'Negative points about the food',
example: [NegativePoint.TOO_SPICY, NegativePoint.SMALL_PORTION],
@ApiPropertyOptional({
description: 'Negative points about the food',
example: [NegativePoint.SMALL_PORTION],
enum: NegativePoint,
isArray: true
isArray: true,
})
negativePoints?: NegativePoint[];
}