优化接口,实现分页查询

This commit is contained in:
2026-09-21 10:58:59 +08:00
parent b13194ca8b
commit eb1063d3f0
2 changed files with 74 additions and 55 deletions
+12 -3
View File
@@ -34,14 +34,23 @@ export function getContactInfo() {
})
}
// 获取用户的联系人消息
export function getContactMessages() {
// 获取最近消息列表
export function getRecentMessages() {
return request({
url: '/messagesInfo',
url: '/recentChats',
method: 'get'
})
}
// 获取用户的联系人消息
export function getContactMessages(data) {
return request({
url: '/contactMessagesInfo',
method: 'post',
data
})
}
// 发送消息
export function sendMessage(data) {
return request({