From 5f1f752dc94cd6db0373c6044ac82426fa2c98b5 Mon Sep 17 00:00:00 2001 From: JiilingLee <462362@qq.com> Date: Sat, 7 Oct 2023 10:57:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E8=AE=A1=E5=85=B6=E4=BB=96=E8=B5=84?= =?UTF-8?q?=E6=96=99=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../accounting/controller/admin/other/OtherController.java | 2 +- .../accounting/controller/admin/other/vo/OtherBaseVO.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/other/OtherController.java b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/other/OtherController.java index 439a7fdb..8407fc3d 100644 --- a/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/other/OtherController.java +++ b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/other/OtherController.java @@ -77,7 +77,7 @@ public class OtherController { return success(OtherConvert.INSTANCE.convert(other)); } - @GetMapping("/upload") + @PostMapping("/upload") @Operation(summary = "上传其他资料") @Parameter(name = "multipartFile", description = "文件", required = true) @PreAuthorize("@ss.hasPermission('accounting:other:create')") diff --git a/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/other/vo/OtherBaseVO.java b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/other/vo/OtherBaseVO.java index 18c5ac92..dc99f20b 100644 --- a/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/other/vo/OtherBaseVO.java +++ b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/other/vo/OtherBaseVO.java @@ -47,4 +47,7 @@ public class OtherBaseVO { @Schema(description = "备注", example = "你猜") private String remark; + @Schema(description = "文件地址") + private String fileUrl; + }