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); }