From bac87061c69aaca6c23a84e08f76f3dfd0c77c4a Mon Sep 17 00:00:00 2001
From: kongdeqiang <kongdeqiang960204@163.com>
Date: 星期五, 11 十月 2024 15:46:32 +0800
Subject: [PATCH] fix:更新出场

---
 src/main/java/com/boying/controller/FileInfoController.java |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/boying/controller/FileInfoController.java b/src/main/java/com/boying/controller/FileInfoController.java
index 7086667..71f3ea0 100644
--- a/src/main/java/com/boying/controller/FileInfoController.java
+++ b/src/main/java/com/boying/controller/FileInfoController.java
@@ -6,6 +6,7 @@
 import com.boying.service.FileInfoService;
 import io.lettuce.core.dynamic.annotation.Param;
 import io.swagger.models.auth.In;
+
 import lombok.RequiredArgsConstructor;
 import org.springframework.web.bind.annotation.*;
 
@@ -15,7 +16,7 @@
 import java.util.List;
 
 @RestController
-@RequestMapping("ffzf/fileInfo")
+@RequestMapping("ffzf/fileinfo")
 @RequiredArgsConstructor
 public class FileInfoController {
 
@@ -54,9 +55,9 @@
         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}")

--
Gitblit v1.9.1