健康报告保存接口

This commit is contained in:
limqhz
2021-03-08 15:17:40 +08:00
parent 8db822c548
commit 8cad890c1b
13 changed files with 121 additions and 58 deletions

View File

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

View File

@@ -20,3 +20,4 @@ sv:
store:
image: imagetest/
video: videotest/
health: health-docstest/

View File

@@ -17,3 +17,4 @@ sv:
store:
image: image/
video: video/
health: health-docs/