From c978cc93e2d65ea8a8287fba58ce6fa610bf54ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E5=87=A4=E5=90=89?= Date: Sat, 14 Jun 2025 15:16:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=AE=9A=E4=B9=89=E5=8A=A0=E7=83=AD?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E7=9C=9F=E7=A9=BA=E7=AE=A1=E8=B7=AF=E9=98=80?= =?UTF-8?q?=E9=97=A8=E8=B0=83=E8=AF=95=E6=8C=87=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../debug/DebugVacuumValveCloseCommand.java | 35 +++++++++++++++++++++ .../command/debug/DebugVacuumValveOpenCommand.java | 36 ++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 src/main/java/com/iflytop/gd/app/command/debug/DebugVacuumValveCloseCommand.java create mode 100644 src/main/java/com/iflytop/gd/app/command/debug/DebugVacuumValveOpenCommand.java diff --git a/src/main/java/com/iflytop/gd/app/command/debug/DebugVacuumValveCloseCommand.java b/src/main/java/com/iflytop/gd/app/command/debug/DebugVacuumValveCloseCommand.java new file mode 100644 index 0000000..00fa23b --- /dev/null +++ b/src/main/java/com/iflytop/gd/app/command/debug/DebugVacuumValveCloseCommand.java @@ -0,0 +1,35 @@ +package com.iflytop.gd.app.command.debug; + +import com.iflytop.gd.app.core.BaseCommandHandler; +import com.iflytop.gd.app.model.dto.CmdDTO; +import com.iflytop.gd.app.service.device.DeviceCommandService; +import com.iflytop.gd.common.annotation.CommandMapping; +import com.iflytop.gd.common.command.CommandFuture; +import com.iflytop.gd.common.command.DeviceCommandBundle; +import com.iflytop.gd.common.command.DeviceCommandGenerator; +import com.iflytop.gd.common.utils.CommandUtil; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +import java.util.concurrent.CompletableFuture; + +/** + * 真空泵阀门关闭 + */ +@Slf4j +@Component +@RequiredArgsConstructor +@CommandMapping("debug_vacuum_valve_close") +public class DebugVacuumValveCloseCommand extends BaseCommandHandler { + private final DeviceCommandService deviceCommandService; + + @Override + public CompletableFuture handle(CmdDTO cmdDTO) { + String heatId = cmdDTO.getStringParam("heatId"); + + return runAsync(() -> { + }); + } +} + diff --git a/src/main/java/com/iflytop/gd/app/command/debug/DebugVacuumValveOpenCommand.java b/src/main/java/com/iflytop/gd/app/command/debug/DebugVacuumValveOpenCommand.java new file mode 100644 index 0000000..b584563 --- /dev/null +++ b/src/main/java/com/iflytop/gd/app/command/debug/DebugVacuumValveOpenCommand.java @@ -0,0 +1,36 @@ +package com.iflytop.gd.app.command.debug; + +import com.iflytop.gd.app.core.BaseCommandHandler; +import com.iflytop.gd.app.model.dto.CmdDTO; +import com.iflytop.gd.app.service.device.DeviceCommandService; +import com.iflytop.gd.common.annotation.CommandMapping; +import com.iflytop.gd.common.command.CommandFuture; +import com.iflytop.gd.common.command.DeviceCommandBundle; +import com.iflytop.gd.common.command.DeviceCommandGenerator; +import com.iflytop.gd.common.utils.CommandUtil; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +import java.util.concurrent.CompletableFuture; + +/** + * 真空泵阀门开启 + */ +@Slf4j +@Component +@RequiredArgsConstructor +@CommandMapping("debug_vacuum_valve_open") +public class DebugVacuumValveOpenCommand extends BaseCommandHandler { + private final DeviceCommandService deviceCommandService; + + @Override + public CompletableFuture handle(CmdDTO cmdDTO) { + String heatId = cmdDTO.getStringParam("heatId"); + + return runAsync(() -> { + + }); + } +} +