perf: init chat content.use mongo aggregate

This commit is contained in:
archer
2023-04-24 17:49:39 +08:00
parent 1f112f7715
commit e60c36b423
6 changed files with 49 additions and 57 deletions

10
src/types/chat.d.ts vendored
View File

@@ -3,13 +3,3 @@ export type ChatItemType = {
value: string;
deleted?: boolean;
};
export type ChatSiteItemType = {
status: 'loading' | 'finish';
} & ChatItemType;
export type HistoryItem = {
chatId: string;
title: string;
history?: ChatSiteItemType[];
};