mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 10:44:55 +00:00
added product model dtos
This commit is contained in:
@ -67,7 +67,17 @@ export class UpdateSpaceProductModelDto {
|
||||
items: CreateProductItemModelDto[];
|
||||
}
|
||||
|
||||
export class ModifyProductItemModelDto {
|
||||
export class DeleteProductModelDto {
|
||||
@ApiProperty({
|
||||
description: 'ID of the product model',
|
||||
example: 'product-uuid',
|
||||
})
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
productModelUuid: string;
|
||||
}
|
||||
|
||||
export class ModifyProductModelDto {
|
||||
@IsArray()
|
||||
@ApiProperty({
|
||||
description: 'Create the product model ',
|
||||
@ -85,4 +95,12 @@ export class ModifyProductItemModelDto {
|
||||
@ValidateNested({ each: true })
|
||||
@IsOptional()
|
||||
update?: UpdateSpaceProductModelDto[];
|
||||
|
||||
@IsArray()
|
||||
@ApiProperty({
|
||||
description: 'Update the product model ',
|
||||
type: [UpdateSpaceProductModelDto],
|
||||
})
|
||||
@IsOptional()
|
||||
delete?: DeleteProductModelDto[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user