|
@ -58,6 +58,7 @@ public class ConsumablesMgrControler { |
|
|
* @param group 耗材组 |
|
|
* @param group 耗材组 |
|
|
*/ |
|
|
*/ |
|
|
@Operation(summary = "卸载耗材", description = "只允许在设备暂停或者停止状态下调用") |
|
|
@Operation(summary = "卸载耗材", description = "只允许在设备暂停或者停止状态下调用") |
|
|
|
|
|
@PostMapping("/unInstallConsumable") |
|
|
synchronized public ApiRet<Void> unInstallConsumable(ConsumableGroup group) throws AppException { |
|
|
synchronized public ApiRet<Void> unInstallConsumable(ConsumableGroup group) throws AppException { |
|
|
consumablesMgrService.unInstallConsumable(group); |
|
|
consumablesMgrService.unInstallConsumable(group); |
|
|
return ApiRet.success(); |
|
|
return ApiRet.success(); |
|
@ -67,6 +68,7 @@ public class ConsumablesMgrControler { |
|
|
* 卸载耗材 |
|
|
* 卸载耗材 |
|
|
*/ |
|
|
*/ |
|
|
@Operation(summary = "卸载耗材(全部)", description = "只允许在设备暂停或者停止状态下调用") |
|
|
@Operation(summary = "卸载耗材(全部)", description = "只允许在设备暂停或者停止状态下调用") |
|
|
|
|
|
@PostMapping("/unInstallAllConsumable") |
|
|
synchronized public void unInstallAllConsumable() throws AppException { |
|
|
synchronized public void unInstallAllConsumable() throws AppException { |
|
|
consumablesMgrService.unInstallAllConsumable(); |
|
|
consumablesMgrService.unInstallAllConsumable(); |
|
|
} |
|
|
} |
|
|