mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 19:34:53 +00:00
24 lines
561 B
TypeScript
24 lines
561 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsNotEmpty, IsNumber, IsString } from 'class-validator';
|
|
import { SpaceProductItemModelDto } from './space-product-item-model.dto';
|
|
|
|
export class SpaceProductModelDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
uuid: string;
|
|
|
|
@IsNumber()
|
|
@IsNotEmpty()
|
|
productCount: number;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
productUuid: string;
|
|
|
|
@ApiProperty({
|
|
description: 'List of individual items with specific names for the product',
|
|
type: [SpaceProductItemModelDto],
|
|
})
|
|
items: SpaceProductItemModelDto[];
|
|
}
|