chore: Chat (client) 同步伺服器端 Bean 定義

This commit is contained in:
CrescentLeaf
2025-10-04 12:10:32 +08:00
parent 42aefdd2f1
commit 7616a49ff8
2 changed files with 7 additions and 4 deletions

View File

@@ -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
}

View File

@@ -0,0 +1,3 @@
type ChatType = 'private' | 'group'
export default ChatType