郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//package com.gkhy.safePlatform.controller;
//
//import com.gkhy.safePlatform.safeCheck.rpc.service.CheckWorkService;
//import com.gkhy.safePlatform.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;
//
//import java.security.NoSuchAlgorithmException;
//import java.util.HashMap;
//import java.util.Map;
//
//
//@RestController
//@RequestMapping(value = "/t")
//public class Test {
//
//    @Autowired
//    private CheckWorkService checkWorkService;
//
//    @Autowired
//    private MinioAccessService minioAccessService;
//
//    @RequestMapping(value = "/rpc/h",method = RequestMethod.GET)
//    private Object testForRpc(Long workId){
//        return checkWorkService.getWorkInfoJson(workId);
//    }
//
//    @RequestMapping(value = "/h",method = RequestMethod.GET)
//    private Object test(){
//        return "hhh";
//    }
//
//    @RequestMapping(value = "/file/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);
//    }
//}