--新增书评接口,端口修改

This commit is contained in:
yc13649764453
2023-09-12 18:10:26 +08:00
parent 408782f7aa
commit 4deeb605f8
28 changed files with 703 additions and 563 deletions

View File

@@ -25,6 +25,7 @@ public class OssController {
@PostMapping
@ApiOperation("上传")
public R uploadOssFile(MultipartFile file) {
//获取上传文件 MultipartFile
//返回上传到oss的路径
String url = ossService.uploadFileAvatar(file);

View File

@@ -27,6 +27,7 @@ public class OssServiceImpl implements OssService {
// 创建OSS实例。
OSS ossClient = new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);
//获取上传文件输入流
InputStream inputStream = file.getInputStream();
//获取文件名称