From ccaad1437444311e719668896d129867c900d34e Mon Sep 17 00:00:00 2001 From: kongdeqiang <kongdeqiang960204@163.com> Date: 星期二, 06 六月 2023 00:08:09 +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