fix(chat): 修复一键清理未读失败
This commit is contained in:
@@ -170,6 +170,11 @@ export async function fetchAdminChatCounts(query: AdminChatQuery = {}) {
|
||||
return data.data
|
||||
}
|
||||
|
||||
export async function markAllAdminChatsRead() {
|
||||
const { data } = await apiClient.post<ApiResponse<{ read: boolean }>>('/admin/chats/read-all')
|
||||
return data.data
|
||||
}
|
||||
|
||||
export async function fetchAdminChat(id: number) {
|
||||
const { data } = await apiClient.get<ApiResponse<ChatConversation>>(`/admin/chats/${id}`)
|
||||
return data.data
|
||||
|
||||
Reference in New Issue
Block a user