SPRINT-1 related tasks done

This commit is contained in:
VirajBrainvire
2024-04-17 18:52:58 +05:30
parent 34fcacde13
commit fbdf187ee1
40 changed files with 588 additions and 19 deletions
@@ -0,0 +1,19 @@
import { IsNotEmpty, IsString } from 'class-validator';
export class DeviceUserTypeDto {
@IsString()
@IsNotEmpty()
public uuid: string;
@IsString()
@IsNotEmpty()
public userUuid: string;
@IsString()
@IsNotEmpty()
public deviceUuid: string;
@IsString()
@IsNotEmpty()
public permissionTypeUuid: string;
}
@@ -0,0 +1,20 @@
import { IsNotEmpty, IsString } from "class-validator";
export class DeviceDto{
@IsString()
@IsNotEmpty()
public uuid: string;
@IsString()
@IsNotEmpty()
spaceUuid:string;
@IsString()
@IsNotEmpty()
deviceTuyaUuid:string;
@IsString()
@IsNotEmpty()
productUuid:string;
}
@@ -0,0 +1,2 @@
export * from './device.dto';
export * from './device-user-type.dto';