Files
backend/libs/common/src/modules/device/dtos/device.dto.ts
2024-05-29 23:29:53 +03:00

24 lines
351 B
TypeScript

import { IsNotEmpty, IsString } from 'class-validator';
export class DeviceDto {
@IsString()
@IsNotEmpty()
public uuid: string;
@IsString()
@IsNotEmpty()
spaceUuid: string;
@IsString()
@IsNotEmpty()
userUuid: string;
@IsString()
@IsNotEmpty()
deviceTuyaUuid: string;
@IsString()
@IsNotEmpty()
productUuid: string;
}