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