|
@@ -50,8 +50,10 @@ public class AdminStorageController {
|
|
|
return ResponseUtil.unlogin();
|
|
return ResponseUtil.unlogin();
|
|
|
}
|
|
}
|
|
|
String originalFilename = file.getOriginalFilename();
|
|
String originalFilename = file.getOriginalFilename();
|
|
|
- storageService.store(file.getInputStream(), file.getSize(), file.getContentType(), originalFilename);
|
|
|
|
|
- return ResponseUtil.ok();
|
|
|
|
|
|
|
+ String url = storageService.store(file.getInputStream(), file.getSize(), file.getContentType(), originalFilename);
|
|
|
|
|
+ Map<String, Object> data = new HashMap<>();
|
|
|
|
|
+ data.put("url", url);
|
|
|
|
|
+ return ResponseUtil.ok(data);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PostMapping("/read")
|
|
@PostMapping("/read")
|