food review
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user