健康报告保存接口
This commit is contained in:
@@ -47,4 +47,14 @@ public class UploadController extends OmsController {
|
||||
return ResponseDTO.ok(videoUrl);
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传健康报告到阿里云
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/uploadFile")
|
||||
public ResponseDTO uploadFile(@RequestParam("file") MultipartFile multipartFile) throws IOException {
|
||||
String healthUrl = ossClientUtil.uploadHealth(multipartFile);
|
||||
return ResponseDTO.ok().addAttribute("docPath",healthUrl);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -20,3 +20,4 @@ sv:
|
||||
store:
|
||||
image: imagetest/
|
||||
video: videotest/
|
||||
health: health-docstest/
|
||||
|
||||
@@ -17,3 +17,4 @@ sv:
|
||||
store:
|
||||
image: image/
|
||||
video: video/
|
||||
health: health-docs/
|
||||
|
||||
Reference in New Issue
Block a user