From 939b5e669c9bab83b7c9aaee3b285d8e09670910 Mon Sep 17 00:00:00 2001
From: songhuangfeng123 <shf18767906695@163.com>
Date: 星期二, 19 七月 2022 17:54:02 +0800
Subject: [PATCH] 事故快报

---
 safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/minioDemo/controller/MinioTest.java |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/minioDemo/controller/MinioTest.java b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/minioDemo/controller/MinioTest.java
new file mode 100644
index 0000000..a9edc3e
--- /dev/null
+++ b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/minioDemo/controller/MinioTest.java
@@ -0,0 +1,31 @@
+package com.gkhy.safePlatform.minioDemo.controller;
+
+import com.gkhy.safePlatform.minioDemo.service.MinioAccessService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RestController;
+
+
+@RestController
+@RequestMapping(value = "/test/file")
+public class MinioTest {
+
+    @Autowired
+    private MinioAccessService minioAccessService;
+
+    @RequestMapping(value = "/up",method = RequestMethod.GET)
+    private Object testFileUpload(){
+        return minioAccessService.uploadFile();
+    }
+
+    @RequestMapping(value = "/assume",method = RequestMethod.GET)
+    public Object testMinioSts(String obj){
+        return minioAccessService.getObjectUrl(obj);
+    }
+
+    @RequestMapping(value = "/put/presign",method = RequestMethod.GET)
+    public Object getPutObjectUrl(String obj){
+        return minioAccessService.getPutUrl(obj);
+    }
+}

--
Gitblit v1.9.2