From 281b8003e2d26451793c22f7c7c0c4d13ea40da1 Mon Sep 17 00:00:00 2001 From: kongdeqiang <kongdeqiang960204@163.com> Date: 星期三, 20 三月 2024 08:30:34 +0800 Subject: [PATCH] 提交更新 --- src/main/java/com/boying/controller/FileInfoController.java | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/boying/controller/FileInfoController.java b/src/main/java/com/boying/controller/FileInfoController.java index 2423411..09514f8 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 { @@ -54,9 +54,14 @@ fileInfoService.downloadPng(byId,request,response); } - @GetMapping("/showImg") - public void showImg(String path,HttpServletResponse response) { - fileInfoService.getFile(path,response); + @GetMapping("/showImg/{filename}") + public void showImg(@PathVariable String filename,HttpServletResponse response) { + fileInfoService.getFile(filename,response); + } + + @GetMapping("/showImgById/{fileId}") + public void showImgById(@PathVariable Long fileId,HttpServletResponse response) { + fileInfoService.getFileById(fileId,response); } } -- Gitblit v1.9.1