【新增】 IM基础模块

This commit is contained in:
2022-01-18 13:56:23 +08:00
parent 61d389bef4
commit 7c6916b4ae
14 changed files with 1499 additions and 930 deletions

20
apis/interfaces/im.js Normal file
View File

@@ -0,0 +1,20 @@
import {
request
} from '../index'
const getFriends = () => {
return request({
url: 'im/friends',
})
}
const getUserInfo = async (targetId) => {
const [err, res] = await request({
url: 'im/userInfo/' + targetId,
})
return res
}
export {
getFriends
}