From 7616a49ff8fc0b188cd30d6fad084b0605079a10 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sat, 4 Oct 2025 12:10:32 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=20Chat=20(client)=20=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E4=BC=BA=E6=9C=8D=E5=99=A8=E7=AB=AF=20Bean=20?= =?UTF-8?q?=E5=AE=9A=E7=BE=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/api/client_data/Chat.ts | 8 ++++---- client/api/client_data/ChatType.ts | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 client/api/client_data/ChatType.ts diff --git a/client/api/client_data/Chat.ts b/client/api/client_data/Chat.ts index c767486..88e38cf 100644 --- a/client/api/client_data/Chat.ts +++ b/client/api/client_data/Chat.ts @@ -1,10 +1,10 @@ +import ChatType from "./ChatType.ts" + export default class Chat { - declare type: "paivate" | "group" + declare type: ChatType declare id: string declare title: string - declare avatar_file_hash?: string - declare user_a_id?: string - declare user_b_id?: string + declare avatar?: string [key: string]: unknown } diff --git a/client/api/client_data/ChatType.ts b/client/api/client_data/ChatType.ts new file mode 100644 index 0000000..0ac05ed --- /dev/null +++ b/client/api/client_data/ChatType.ts @@ -0,0 +1,3 @@ +type ChatType = 'private' | 'group' + +export default ChatType