mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 17:21:53 +08:00
【代码优化】AI:对话 deleteChatConversationMyByUnpinned 接口
This commit is contained in:
parent
39de74449f
commit
41071fc689
@ -23,7 +23,6 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
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.pojo.CommonResult.success;
|
||||||
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertList;
|
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertList;
|
||||||
@ -79,9 +78,8 @@ public class AiChatConversationController {
|
|||||||
return success(true);
|
return success(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO 芋艿:这个 url 可以改下
|
@DeleteMapping("/delete-by-unpinned")
|
||||||
@DeleteMapping("/delete-my-all-except-pinned")
|
@Operation(summary = "删除未置顶的聊天对话")
|
||||||
@Operation(summary = "删除所有对话(置顶除外)")
|
|
||||||
public CommonResult<Boolean> deleteChatConversationMyByUnpinned() {
|
public CommonResult<Boolean> deleteChatConversationMyByUnpinned() {
|
||||||
chatConversationService.deleteChatConversationMyByUnpinned(getLoginUserId());
|
chatConversationService.deleteChatConversationMyByUnpinned(getLoginUserId());
|
||||||
return success(true);
|
return success(true);
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
### 生成图片:OpenAI(DALL)
|
### 生成图片:OpenAI(DALL)
|
||||||
POST {{baseUrl}}/ai/image/draw
|
POST {{baseUrl}}/ai/image/draw
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
@ -29,8 +28,7 @@ Authorization: {{token}}
|
|||||||
"style": "vivid"
|
"style": "vivid"
|
||||||
}
|
}
|
||||||
|
|
||||||
### 生成图片:生成图片
|
### 生成图片:生成图片(Midjourney)
|
||||||
|
|
||||||
POST {{baseUrl}}/ai/image/midjourney/imagine
|
POST {{baseUrl}}/ai/image/midjourney/imagine
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
Authorization: {{token}}
|
Authorization: {{token}}
|
||||||
@ -40,6 +38,5 @@ Authorization: {{token}}
|
|||||||
"model": "midjourney",
|
"model": "midjourney",
|
||||||
"width": "1",
|
"width": "1",
|
||||||
"height": "1",
|
"height": "1",
|
||||||
"version": "6.0",
|
"version": "6.0"
|
||||||
"base64Array": []
|
|
||||||
}
|
}
|
@ -38,10 +38,6 @@ public class AiMusicController {
|
|||||||
@PostMapping("/generate")
|
@PostMapping("/generate")
|
||||||
@Operation(summary = "音乐生成")
|
@Operation(summary = "音乐生成")
|
||||||
public CommonResult<List<Long>> generateMusic(@RequestBody @Valid AiSunoGenerateReqVO reqVO) {
|
public CommonResult<List<Long>> generateMusic(@RequestBody @Valid AiSunoGenerateReqVO reqVO) {
|
||||||
// if (true) {
|
|
||||||
// musicService.syncMusic();
|
|
||||||
// return null;
|
|
||||||
// }
|
|
||||||
return success(musicService.generateMusic(getLoginUserId(), reqVO));
|
return success(musicService.generateMusic(getLoginUserId(), reqVO));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user