|
|
@@ -14,6 +14,7 @@ import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* @author reghao
|
|
|
@@ -57,4 +58,10 @@ public class MachineHostController {
|
|
|
Result result = hostService.delete(machineId);
|
|
|
return WebResult.result(result);
|
|
|
}
|
|
|
+
|
|
|
+ @PostMapping(value = "/delete", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
+ public String deleteAll(@RequestParam(value = "ids") List<String> machineIds) {
|
|
|
+ Result result = hostService.batchDelete(machineIds);
|
|
|
+ return WebResult.result(result);
|
|
|
+ }
|
|
|
}
|