feat:获取文件名接口

This commit is contained in:
2023-05-11 15:38:25 +08:00
parent 2434692171
commit 3823447cab
@@ -260,11 +260,23 @@ public class ReportManageConroller {
}
/**
* 上传文件
* @param file
* 获取文件
* @param fileId
* @return
* @throws IOException
*/
@ApiOperation(value = "根据文件id获取文件名")
@GetMapping("/fileName")
public ResponseMessage getFileNameById(String fileId) {
FileEntity file = fileService.getFile(fileId);
return Result.success(file.getFileName());
}
/**
* 上传文件
* @param file
* @return
* @throws IOException
*/
@ApiOperation(value = "详情||上传文件")
@PostMapping("/uploadFile")
public ResponseMessage<Map<String, Object>> uploadFile(MultipartFile file) throws IOException {