feat(wip): 群组

This commit is contained in:
CrescentLeaf
2025-10-04 22:13:13 +08:00
parent ffa8ac73de
commit 86d68fd5e5

13
server/data/ChatGroup.ts Normal file
View File

@@ -0,0 +1,13 @@
import chalk from "chalk"
import Chat from "./Chat.ts"
import User from "./User.ts"
export default class ChatGroup extends Chat {
static fromChat(chat: Chat) {
return new ChatGroup(chat.bean)
}
static createGroup(chatId?: string) {
return this.create(chatId || crypto.randomUUID(), 'group')
}
}