From cf7eda004123f2ee07bfa7d05f51f71f9dbb4bcd Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期四, 18 七月 2024 11:48:59 +0800
Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/WI/Web.V1.0

---
 src/components/chat/model/types.ts |   22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/src/components/chat/model/types.ts b/src/components/chat/model/types.ts
index 920de4f..6b10ebd 100644
--- a/src/components/chat/model/types.ts
+++ b/src/components/chat/model/types.ts
@@ -10,6 +10,8 @@
 	RecordSet = 'recordset',
 	Text = 'text',
 	Summary = 'summary',
+	Url = 'url',
+	Map = 'map',
 }
 
 export const answerTypeMapCom = {
@@ -26,23 +28,30 @@
 }
 export const AnswerState = {
 	Null: null,
-	Like: 1,
-	Unlike: 0,
+	Like: '1',
+	Unlike: '0',
 };
 
 export type AnswerStateType = typeof AnswerState;
-
+export type ContextHistory = {
+	/** @description 鏁板瓧瀛楃涓� */
+	ratio:string;
+	history_id:string;
+	question:string;
+}
 export type ChatContent = {
 	type: AnswerType;
 	values: any;
+	msg?: string;
+	askMoreList?:ContextHistory[];
+	errCode?:string;
 };
 
 export interface ChatMessage {
-	historyId:string,
+	historyId: string;
 	role: RoleEnum;
 	content?: ChatContent;
-	state?: null | 1 | 0
-
+	state?: null | '1' | '0';
 }
 
 export const roleImageMap = {
@@ -50,4 +59,3 @@
 	[RoleEnum.assistant]: assistantPic,
 	[RoleEnum.system]: userPic,
 };
-

--
Gitblit v1.9.3