From 198dae62c007f4240321cf373fe8195049e2ff96 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Sun, 28 Apr 2024 17:41:49 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E5=A4=84?= =?UTF-8?q?=E7=90=86=20CommonResult=20Void=20=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yudao/module/ai/controller/AiChatModalController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/AiChatModalController.java b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/AiChatModalController.java index 7bf12d15c9..9530f23b9f 100644 --- a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/AiChatModalController.java +++ b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/AiChatModalController.java @@ -38,14 +38,14 @@ public class AiChatModalController { @Operation(summary = "ai模型 - 添加") @PutMapping("/modal") - public CommonResult add(@RequestBody @Validated AiChatModalAddReq req) { + public CommonResult add(@RequestBody @Validated AiChatModalAddReq req) { aiChatModalService.add(req); return CommonResult.success(null); } @Operation(summary = "ai模型 - 模型照片上传") @PostMapping("/modal/{id}/updateImage") - public CommonResult updateImage(@PathVariable("id") Long id, + public CommonResult updateImage(@PathVariable("id") Long id, MultipartFile file) { // todo yunai 文件上传这里放哪里 return CommonResult.success(null); @@ -53,7 +53,7 @@ public class AiChatModalController { @Operation(summary = "ai模型 - 修改") @PostMapping("/modal/{id}") - public CommonResult update(@PathVariable Long id, + public CommonResult update(@PathVariable Long id, @RequestBody @Validated AiChatModalAddReq req) { aiChatModalService.update(id, req); return CommonResult.success(null); @@ -61,7 +61,7 @@ public class AiChatModalController { @Operation(summary = "ai模型 - 删除") @DeleteMapping("/modal/{id}") - public CommonResult delete(@PathVariable Long id) { + public CommonResult delete(@PathVariable Long id) { aiChatModalService.delete(id); return CommonResult.success(null); }