mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-26 03:57:54 +00:00
device start using space
This commit is contained in:
@@ -18,7 +18,7 @@ export class AddDeviceDto {
|
||||
@IsNotEmpty()
|
||||
public userUuid: string;
|
||||
}
|
||||
export class UpdateDeviceInRoomDto {
|
||||
export class UpdateDeviceInSpaceDto {
|
||||
@ApiProperty({
|
||||
description: 'deviceUuid',
|
||||
required: true,
|
||||
@@ -28,10 +28,10 @@ export class UpdateDeviceInRoomDto {
|
||||
public deviceUuid: string;
|
||||
|
||||
@ApiProperty({
|
||||
description: 'roomUuid',
|
||||
description: 'spaceUuid',
|
||||
required: true,
|
||||
})
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
public roomUuid: string;
|
||||
public spaceUuid: string;
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
|
||||
|
||||
export class GetDeviceByRoomUuidDto {
|
||||
export class GetDeviceBySpaceUuidDto {
|
||||
@ApiProperty({
|
||||
description: 'roomUuid',
|
||||
description: 'spaceUuid',
|
||||
required: true,
|
||||
})
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
public roomUuid: string;
|
||||
public spaceUuid: string;
|
||||
}
|
||||
export class GetDeviceLogsDto {
|
||||
@ApiProperty({
|
||||
|
||||
Reference in New Issue
Block a user