聊天室完成
This commit is contained in:
@@ -60,11 +60,11 @@ export const workcaseChatAPI = {
|
||||
|
||||
/**
|
||||
* 分页查询聊天室(含当前用户未读数)
|
||||
* @param pageRequest - 分页请求,filter.guestId用于过滤聊天室(guest用)
|
||||
* 注:userId从token中自动获取,无需传递
|
||||
*/
|
||||
async getChatRoomPage(pageRequest: PageRequest<TbChatRoomDTO>, userId: string): Promise<ResultDomain<ChatRoomVO>> {
|
||||
const response = await api.post<ChatRoomVO>(`${this.baseUrl}/room/page`, pageRequest, {
|
||||
params: { userId }
|
||||
})
|
||||
async getChatRoomPage(pageRequest: PageRequest<TbChatRoomDTO>): Promise<ResultDomain<ChatRoomVO>> {
|
||||
const response = await api.post<ChatRoomVO>(`${this.baseUrl}/room/page`, pageRequest)
|
||||
return response.data
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user