mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 02:36:19 +00:00
finished delete switch scene device
This commit is contained in:
@ -10,6 +10,7 @@ import {
|
||||
UseGuards,
|
||||
Req,
|
||||
Put,
|
||||
Delete,
|
||||
} from '@nestjs/common';
|
||||
import { ApiTags, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import {
|
||||
@ -32,6 +33,8 @@ import { CheckDeviceGuard } from 'src/guards/device.guard';
|
||||
import { SuperAdminRoleGuard } from 'src/guards/super.admin.role.guard';
|
||||
import { EnableDisableStatusEnum } from '@app/common/constants/days.enum';
|
||||
import { CheckFourAndSixSceneDeviceTypeGuard } from 'src/guards/scene.device.type.guard';
|
||||
import { BaseResponseDto } from '@app/common/dto/base.response.dto';
|
||||
import { DeviceSceneParamDto } from '../dtos/device.param.dto';
|
||||
|
||||
@ApiTags('Device Module')
|
||||
@Controller({
|
||||
@ -242,4 +245,12 @@ export class DeviceController {
|
||||
getSceneFourSceneDeviceDto,
|
||||
);
|
||||
}
|
||||
@ApiBearerAuth()
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@Delete(':switchSceneUuid/scenes')
|
||||
async deleteSceneToSceneDevice(
|
||||
@Param() param: DeviceSceneParamDto,
|
||||
): Promise<BaseResponseDto> {
|
||||
return await this.deviceService.deleteSceneToSceneDevice(param);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user