KouJin 1 week ago
parent
commit
ddb0737846

+ 8 - 8
delivery-module-infra/delivery-module-infra-biz/src/main/java/com/unis/module/infra/controller/admin/file/FileController.java

@@ -56,14 +56,14 @@ public class FileController {
56 56
         return success(fileService.createFileForFile(file.getOriginalFilename(), module, IoUtil.readBytes(file.getInputStream())));
57 57
     }
58 58
 
59
-//    @GetMapping("/getFiles")
60
-//    @Operation(summary = "获取文件对象", description = "根据 id 获取文件对象")
61
-//    @Parameter(name = "ids", description = "编号", required = true,example = "1,2,3")
62
-//    public CommonResult<List<FileDO>> getFiles(@RequestParam("ids") List<Long> ids) {
63
-//        return success(fileService.getFiles(ids));
64
-//    }
65
-
66
-    @PostMapping("/getFiles")
59
+    @GetMapping("/getFiles")
60
+    @Operation(summary = "获取文件对象", description = "根据 id 获取文件对象")
61
+    @Parameter(name = "ids", description = "编号", required = true,example = "1,2,3")
62
+    public CommonResult<List<FileDO>> getFiles(@RequestParam("ids") List<Long> ids) {
63
+        return success(fileService.getFiles(ids));
64
+    }
65
+
66
+    @PostMapping("/getFilesList")
67 67
     @Operation(summary = "获取文件对象", description = "根据 id 获取文件对象")
68 68
     @Parameter(name = "ids", description = "编号", required = true,example = "1,2,3")
69 69
     public CommonResult<List<FileDO>> getFileDOS(@RequestBody FileReqVO fileReqVO) {