From 41071fc68905e5de609512359403d8ae8a80ba21 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 4 Jul 2024 23:39:51 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E3=80=91AI=EF=BC=9A=E5=AF=B9=E8=AF=9D=20deleteChatConversation?= =?UTF-8?q?MyByUnpinned=20=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/chat/AiChatConversationController.java | 6 ++---- .../ai/controller/admin/image/AiImageController.http | 7 ++----- .../ai/controller/admin/music/AiMusicController.java | 4 ---- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/chat/AiChatConversationController.java b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/chat/AiChatConversationController.java index ed22acf69..5142cde44 100644 --- a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/chat/AiChatConversationController.java +++ b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/chat/AiChatConversationController.java @@ -23,7 +23,6 @@ import org.springframework.web.bind.annotation.*; import java.util.List; import java.util.Map; -import java.util.function.Consumer; import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertList; @@ -79,9 +78,8 @@ public class AiChatConversationController { return success(true); } - // TODO 芋艿:这个 url 可以改下 - @DeleteMapping("/delete-my-all-except-pinned") - @Operation(summary = "删除所有对话(置顶除外)") + @DeleteMapping("/delete-by-unpinned") + @Operation(summary = "删除未置顶的聊天对话") public CommonResult deleteChatConversationMyByUnpinned() { chatConversationService.deleteChatConversationMyByUnpinned(getLoginUserId()); return success(true); diff --git a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/image/AiImageController.http b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/image/AiImageController.http index 10fa24b5f..9047610c0 100644 --- a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/image/AiImageController.http +++ b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/image/AiImageController.http @@ -1,4 +1,3 @@ - ### 生成图片:OpenAI(DALL) POST {{baseUrl}}/ai/image/draw Content-Type: application/json @@ -29,8 +28,7 @@ Authorization: {{token}} "style": "vivid" } -### 生成图片:生成图片 - +### 生成图片:生成图片(Midjourney) POST {{baseUrl}}/ai/image/midjourney/imagine Content-Type: application/json Authorization: {{token}} @@ -40,6 +38,5 @@ Authorization: {{token}} "model": "midjourney", "width": "1", "height": "1", - "version": "6.0", - "base64Array": [] + "version": "6.0" } \ No newline at end of file diff --git a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/music/AiMusicController.java b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/music/AiMusicController.java index b079f9a3a..6c09e4b30 100644 --- a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/music/AiMusicController.java +++ b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/music/AiMusicController.java @@ -38,10 +38,6 @@ public class AiMusicController { @PostMapping("/generate") @Operation(summary = "音乐生成") public CommonResult> generateMusic(@RequestBody @Valid AiSunoGenerateReqVO reqVO) { -// if (true) { -// musicService.syncMusic(); -// return null; -// } return success(musicService.generateMusic(getLoginUserId(), reqVO)); }