|
|
|
@ -17,8 +17,9 @@ public class MinioController {
|
|
|
|
|
private MinioService minioService;
|
|
|
|
|
|
|
|
|
|
@PostMapping("/uploadFile")
|
|
|
|
|
public String uploadFile(@RequestPart("file") MultipartFile file) throws IOException {
|
|
|
|
|
return minioService.uploadFile(file);
|
|
|
|
|
public R<String> uploadFile(@RequestPart("file") MultipartFile file) throws IOException {
|
|
|
|
|
String fileId = minioService.uploadFile(file);
|
|
|
|
|
return R.ok(fileId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/downloadFile")
|
|
|
|
|