| | |
| | | return ResponseResult.success(entityList); |
| | | } |
| | | |
| | | |
| | | @PutMapping("/examine") |
| | | public ResponseResult examineData(@RequestParam String fileId) { |
| | | return fileService.updateExamByFileId(fileId); |
| | |
| | | |
| | | @DeleteMapping("/{workspace_id}/deleteFile") |
| | | public ResponseResult deleteFile(@PathVariable(name = "workspace_id") String workspaceId, @RequestParam String fileId) { |
| | | //根据fileId删除图片 |
| | | int count = fileService.deleteMedia(workspaceId, fileId); |
| | | if (count == 0) { |
| | | return ResponseResult.error("删除失败"); |
| | |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | @PostMapping("/{workspace_id}/mark") |
| | | public void eaveMarkFile(@PathVariable(name = "workspace_id") String workspaceId,@RequestBody FileUploadDTO file) throws ImageProcessingException, IOException, FontFormatException { |
| | | fileService.saveMarkFile(workspaceId,file); |
| | | } |
| | | } |