mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 08:04:53 +00:00
24 lines
351 B
TypeScript
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;
|
|
}
|