src/main/java/com/whyc/controller/DeviceSpareController.java
@@ -62,6 +62,12 @@ return service.update(spare); } @PostMapping("andOrChangePicture") @ApiOperation("新增或者替换图片") public Response andOrChangePicture(@RequestParam Integer id,@RequestParam MultipartFile file) throws IOException { return service.andOrChangePicture(id,file); } @PostMapping("delete") @ApiOperation("删除") public Response delete(@RequestParam Integer id) {