//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);
|
// }
|
//}
|