From dbc80ed4430e9233d906b0338f22791182e76b64 Mon Sep 17 00:00:00 2001 From: caihaohan Date: Sat, 12 Oct 2024 14:44:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=AD=A3=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=BF=A1=E6=81=AF=E7=9A=84=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根据最新需求,/obtainLastFile接口现在返回OSSFile对象而不是id。这提供了更多文件信息,而不仅仅是文件ID。 --- .../modules/onlyoffice/controller/OnlyOfficeController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laws-modules/src/main/java/com/jero/modules/onlyoffice/controller/OnlyOfficeController.java b/laws-modules/src/main/java/com/jero/modules/onlyoffice/controller/OnlyOfficeController.java index 6d81aeca..f2a2b26d 100644 --- a/laws-modules/src/main/java/com/jero/modules/onlyoffice/controller/OnlyOfficeController.java +++ b/laws-modules/src/main/java/com/jero/modules/onlyoffice/controller/OnlyOfficeController.java @@ -223,7 +223,7 @@ public class OnlyOfficeController { */ @ApiOperation(value = "根据id获取最新版本的文件信息") @GetMapping("/obtainLastFile") - public Result obtainLastFile(String id) { + public Result obtainLastFile(String id) { if (StringUtils.isBlank(id)) { return Result.error("id不能为空!"); } @@ -233,7 +233,7 @@ public class OnlyOfficeController { wrapper.orderByDesc(OSSFile::getCreateTime); wrapper.last("limit 1"); OSSFile lastFile = ossFileService.getOne(wrapper); - return Result.OK(MessageUtils.getMessage(ResultCommon.OK), lastFile.getId()); + return Result.OK(MessageUtils.getMessage(ResultCommon.OK), lastFile); } }