好友删除,扫码加好友

This commit is contained in:
2022-01-26 14:25:54 +08:00
parent b24d2a4906
commit c786af8179
3 changed files with 38 additions and 35 deletions

View File

@@ -22,6 +22,14 @@ const getImToken = () => {
url: 'im/token',
}, true)
}
// 删除好友
const deleteFriend = (targetId) => {
return request({
method: 'DELETE',
url: 'im/friends/' + targetId,
})
}
// 获取用户信息
const getUserInfo = (targetId) => {
@@ -78,7 +86,8 @@ const pedingFriend = (recipient) => {
}
export {
getImToken,
getImToken,
deleteFriend,
getFriends,
getUserInfo,
getFriendInfo,