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