From 13e13d59858f7159dabfa4981f62818405491e0d Mon Sep 17 00:00:00 2001
From: EricsHu <hrr145632>
Date: 星期四, 15 六月 2023 16:40:16 +0800
Subject: [PATCH] 1

---
 src/main/java/com/qxueyou/scc/controller/HweiYunOBSController.java |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/qxueyou/scc/controller/HweiYunOBSController.java b/src/main/java/com/qxueyou/scc/controller/HweiYunOBSController.java
index 27f0f4e..02cd660 100644
--- a/src/main/java/com/qxueyou/scc/controller/HweiYunOBSController.java
+++ b/src/main/java/com/qxueyou/scc/controller/HweiYunOBSController.java
@@ -23,6 +23,7 @@
 import java.io.InputStream;
 import java.net.URLEncoder;
 import java.util.List;
+import java.util.Map;
 
 /**
  * @ClassName: ObsController
@@ -39,11 +40,12 @@
     private HweiYunOBSService hweiYunOBSService;
 
     @RequestMapping(value = "upload", method = RequestMethod.POST)
-    public List<FileMeta> save(@RequestParam(value = "file", required = false) MultipartFile file) {
+    public List<FileMeta> save(@RequestParam(value = "file", required = false) MultipartFile file) throws IOException {
 
         if (ObjectUtils.isEmpty(file) || file.getSize() <= 0) {
             return null;
         }
+
 //        if (FileUtil.isEmpty(file)) {
 //            return new Result(false,"鏂囦欢涓虹┖");
 //        }
@@ -52,6 +54,22 @@
         return test;
     }
 
+//    @RequestMapping(value = "fenpian", method = RequestMethod.POST)
+//    public  Map<String, Object>  fpsave(@RequestParam(value = "file", required = false) MultipartFile file) throws IOException {
+//
+//        if (ObjectUtils.isEmpty(file) || file.getSize() <= 0) {
+//            return null;
+//        }
+//
+////        if (FileUtil.isEmpty(file)) {
+////            return new Result(false,"鏂囦欢涓虹┖");
+////        }
+////        final List<FileMeta> test = hweiYunOBSService.fileUpload(file, file.getOriginalFilename());
+//        Map<String, Object> fnepian = hweiYunOBSService.fnepian(file, file.getOriginalFilename());
+////        return ResponseVO.ok("鎵ц鎴愬姛",test);
+//        return fnepian;
+//    }
+
     @RequestMapping(value = "delete", method = RequestMethod.POST)
     public Result delete(@RequestParam(value = "fileName", required = false)  String fileName) {
         if (StrUtil.isEmpty(fileName)) {

--
Gitblit v1.8.0