| | |
| | | return ResponseResult.success(filesList); |
| | | } |
| | | |
| | | @GetMapping("/listAdded") |
| | | public ResponseResult listIsadd() { |
| | | List<MediaFileEntity> entityList = fileService.listByIsadd(); |
| | | @GetMapping("/{workspace_id}/listAdded") |
| | | public ResponseResult listIsadd(@RequestParam String dkbh, |
| | | @PathVariable(name = "workspace_id") String workspaceId) { |
| | | List<MediaFileEntity> entityList = fileService.listByIsadd(dkbh, workspaceId); |
| | | return ResponseResult.success(entityList); |
| | | } |
| | | |
| | | @PutMapping("/examine") |
| | | public ResponseResult examineData(@RequestParam String fileId) { |
| | | int is = fileService.updateExamByFileId(fileId); |
| | | if (is != 0) { |
| | | return ResponseResult.success(); |
| | | } else { |
| | | return ResponseResult.error("更新状态失败"); |
| | | } |
| | | |
| | | return fileService.updateExamByFileId(fileId); |
| | | } |
| | | |
| | | @GetMapping("/getMediaInfo") |
| | |
| | | } |
| | | |
| | | @DeleteMapping("/{workspace_id}/deleteFile") |
| | | |
| | | public ResponseResult deleteFile(@PathVariable(name = "workspace_id") String workspaceId, @RequestParam String fileId) { |
| | | int count = fileService.deleteMedia(workspaceId, fileId); |
| | | if (count == 0) { |