| | |
| | | * @param newFilePath 上传到的文件路径 |
| | | * @param fileStream 要上传的文件流 |
| | | */ |
| | | @Override |
| | | public void fileUpLoadOss(FileInfo fileInfo, String newFilePath, InputStream fileStream) { |
| | | ossClient.putObject(fileProperties.getOss().getBucketName(), newFilePath, fileStream); |
| | | fileInfo.setUrl(fileProperties.getOss().getDomain() + newFilePath); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public OSSObject down(String url) { |
| | | GetObjectRequest request = new GetObjectRequest(fileProperties.getOss().getBucketName(), url); |
| | | return ossClient.getObject(request); |
| | |
| | | * @param imgType |
| | | * @return |
| | | */ |
| | | @Override |
| | | public String FilePath(String imgType, String folderByDate, String hospitalId, String departmentId) { |
| | | //返回的文件路径 |
| | | String fileFolder = OssPathEn+"/"; |