feat: 去除所有接口中的 vo

This commit is contained in:
xingyu4j
2025-06-25 18:51:13 +08:00
parent c59ebbecfd
commit ab4e467b45
3 changed files with 3 additions and 9 deletions

View File

@@ -260,9 +260,7 @@ async function handleClearConversation() {
} }
/** 对话置顶 */ /** 对话置顶 */
async function handleTop( async function handleTop(conversation: AiChatConversationApi.ChatConversation) {
conversation: AiChatConversationApi.ChatConversation,
) {
// 更新对话置顶 // 更新对话置顶
conversation.pinned = !conversation.pinned; conversation.pinned = !conversation.pinned;
await updateChatConversationMy(conversation); await updateChatConversationMy(conversation);

View File

@@ -307,9 +307,7 @@ async function doSendMessage(content: string) {
} }
/** 真正执行【发送】消息操作 */ /** 真正执行【发送】消息操作 */
async function doSendMessageStream( async function doSendMessageStream(userMessage: AiChatMessageApi.ChatMessage) {
userMessage: AiChatMessageApi.ChatMessage,
) {
// 创建 AbortController 实例,以便中止请求 // 创建 AbortController 实例,以便中止请求
conversationInAbortController.value = new AbortController(); conversationInAbortController.value = new AbortController();
// 标记对话进行中 // 标记对话进行中

View File

@@ -93,9 +93,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
}); });
/** 修改是否发布 */ /** 修改是否发布 */
async function handleStatusChange( async function handleStatusChange(row: AiKnowledgeSegmentApi.KnowledgeSegment) {
row: AiKnowledgeSegmentApi.KnowledgeSegment,
) {
try { try {
// 修改状态的二次确认 // 修改状态的二次确认
const text = row.status ? '启用' : '禁用'; const text = row.status ? '启用' : '禁用';