聊天室完成

This commit is contained in:
2025-12-24 16:32:06 +08:00
parent 898da3a2c6
commit ad03f3f2db
16 changed files with 432 additions and 53 deletions

View File

@@ -105,6 +105,13 @@ export const workcaseChatAPI = {
return request<ChatMemberVO>({ url: `${this.baseUrl}/room/${roomId}/members`, method: 'GET' })
},
/**
* 获取当前用户在指定聊天室的未读消息数
*/
getUnreadCount(roomId: string, userId: string): Promise<ResultDomain<number>> {
return request<number>({ url: `${this.baseUrl}/room/${roomId}/unread?userId=${userId}`, method: 'GET' })
},
// ====================== ChatRoom消息管理 ======================
/**