From 83d17051bea6ea09377f2063764c5d841a644b73 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Sat, 20 Apr 2024 17:51:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=20controller=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ai/controller/ChatConversationController.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/ChatConversationController.java b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/ChatConversationController.java index 110937c610..d17a385a17 100644 --- a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/ChatConversationController.java +++ b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/ChatConversationController.java @@ -37,20 +37,20 @@ public class ChatConversationController { } @Operation(summary = "获取 - 获取对话") - @GetMapping("/getConversation") - public CommonResult getConversation(@RequestParam("id") Long id) { + @GetMapping("/{id}") + public CommonResult getConversation(@PathVariable("id") Long id) { return CommonResult.success(chatConversationService.getConversation(id)); } @Operation(summary = "获取 - 获取对话list") - @GetMapping("/listConversation") + @GetMapping("/list") public CommonResult> listConversation(@ModelAttribute @Validated ChatConversationListReq req) { return CommonResult.success(chatConversationService.listConversation(req)); } @Operation(summary = "删除") - @DeleteMapping("/listConversation") - public CommonResult delete(@RequestParam("id") Long id) { + @DeleteMapping("/{id}") + public CommonResult delete(@PathVariable("id") Long id) { chatConversationService.delete(id); return CommonResult.success(null); }