add : display location for banner
This commit is contained in:
@@ -90,6 +90,16 @@ export class CreateBannerDTO {
|
|||||||
// })
|
// })
|
||||||
// displayLocation: DisplayLocations;
|
// displayLocation: DisplayLocations;
|
||||||
|
|
||||||
|
@Expose()
|
||||||
|
@IsNotEmpty()
|
||||||
|
@IsEnum(DisplayLocations)
|
||||||
|
@ApiProperty({
|
||||||
|
type: "string",
|
||||||
|
description: "Display location of the slider",
|
||||||
|
example: `${DisplayLocations.Desktop} | ${DisplayLocations.Mobile}`,
|
||||||
|
})
|
||||||
|
displayLocation: DisplayLocations;
|
||||||
|
|
||||||
@Expose()
|
@Expose()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
@@ -192,6 +202,16 @@ export class UpdateBannerDTO {
|
|||||||
// })
|
// })
|
||||||
// displayLocation: DisplayLocations;
|
// displayLocation: DisplayLocations;
|
||||||
|
|
||||||
|
@Expose()
|
||||||
|
@IsNotEmpty()
|
||||||
|
@IsEnum(DisplayLocations)
|
||||||
|
@ApiProperty({
|
||||||
|
type: "string",
|
||||||
|
description: "Display location of the slider",
|
||||||
|
example: `${DisplayLocations.Desktop} | ${DisplayLocations.Mobile}`,
|
||||||
|
})
|
||||||
|
displayLocation: DisplayLocations;
|
||||||
|
|
||||||
@Expose()
|
@Expose()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
|
|||||||
Reference in New Issue
Block a user