From 1bdd6405e8caffc058066bdd26cb6de1ea9cf7ea Mon Sep 17 00:00:00 2001 From: songhuangfeng123 <shf18767906695@163.com> Date: 星期二, 09 八月 2022 18:35:39 +0800 Subject: [PATCH] 8-9fix --- safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/minioFile/controller/MinioController.java | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/minioFile/controller/MinioController.java b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/minioFile/controller/MinioController.java new file mode 100644 index 0000000..d95e90b --- /dev/null +++ b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/minioFile/controller/MinioController.java @@ -0,0 +1,27 @@ +package com.gkhy.safePlatform.minioFile.controller; + +import com.gkhy.safePlatform.minioFile.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 = "/minio/file") +public class MinioController { + + @Autowired + private MinioAccessService minioAccessService; + + @RequestMapping(value = "/view",method = RequestMethod.GET) + public Object viewFile(String obj){ + return minioAccessService.viewFile(obj); + } + + @RequestMapping(value = "/presign",method = RequestMethod.GET) + public Object getPresignUrl(String prefixName,String suffixName){ + return minioAccessService.getPresignUrl(prefixName,suffixName); + } +} + -- Gitblit v1.9.2