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