|
|
@ -24,8 +24,9 @@ public class CMDService { |
|
|
|
Map<String, Function<CMDForm, Boolean>> commandMap; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
public CMDService(DeviceService deviceService) { |
|
|
|
public CMDService(DeviceService deviceService , WebSocketService webSocketService) { |
|
|
|
this.deviceService = deviceService; |
|
|
|
this.webSocketService = webSocketService; |
|
|
|
// 初始化命令映射 |
|
|
|
this.commandMap = new HashMap<>(); |
|
|
|
commandMap.put(Commands.UP_TRAY, this::upTray); |
|
|
|