change entity names
This commit is contained in:
@@ -90,7 +90,7 @@ export class CreateCouponDto {
|
||||
@IsString({ each: true })
|
||||
@ApiPropertyOptional({
|
||||
example: ['category-id-1', 'category-id-2'],
|
||||
description: 'Array of food category IDs. If empty, coupon applies to all categories.',
|
||||
description: 'Array of product category IDs. If empty, coupon applies to all categories.',
|
||||
type: [String],
|
||||
})
|
||||
foodCategories?: string[];
|
||||
@@ -99,11 +99,11 @@ export class CreateCouponDto {
|
||||
@IsArray()
|
||||
@IsString({ each: true })
|
||||
@ApiPropertyOptional({
|
||||
example: ['food-id-1', 'food-id-2'],
|
||||
description: 'Array of food IDs. If empty, coupon applies to all foods.',
|
||||
example: ['product-id-1', 'product-id-2'],
|
||||
description: 'Array of product IDs. If empty, coupon applies to all products.',
|
||||
type: [String],
|
||||
})
|
||||
foods?: string[];
|
||||
products?: string[];
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
|
||||
Reference in New Issue
Block a user