fix : slide update display location

This commit is contained in:
morteza-mortezai
2025-10-26 10:45:59 +03:30
parent 9b02d9fa07
commit b06e89dfce
+11
View File
@@ -140,6 +140,17 @@ export class UpdateSliderDTO {
@IsBoolean()
@ApiProperty({ type: "boolean", description: "slider active status", example: true, required: false })
isActive: boolean;
@Expose()
@IsOptional()
@IsNotEmpty()
@IsEnum(DisplayLocations)
@ApiProperty({
type: "string",
description: "Display location of the slider",
example: "homepage_top | homepage_bottom | category_page | product_page",
})
displayLocation: DisplayLocations;
}
export class UpdateBannerDTO {
@Expose()