From bb344d8e73bf3a6825f21584609649cb5d5042f5 Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期一, 05 六月 2023 18:05:37 +0800 Subject: [PATCH] 修改 --- src/main/java/com/boying/controller/FileInfoController.java | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/boying/controller/FileInfoController.java b/src/main/java/com/boying/controller/FileInfoController.java index 2423411..7086667 100644 --- a/src/main/java/com/boying/controller/FileInfoController.java +++ b/src/main/java/com/boying/controller/FileInfoController.java @@ -15,7 +15,7 @@ import java.util.List; @RestController -@RequestMapping("fileInfo") +@RequestMapping("ffzf/fileInfo") @RequiredArgsConstructor public class FileInfoController { @@ -59,4 +59,9 @@ fileInfoService.getFile(path,response); } + @GetMapping("/showImgById/{fileId}") + public void showImgById(@PathVariable Long fileId,HttpServletResponse response) { + fileInfoService.getFileById(fileId,response); + } + } -- Gitblit v1.9.1