【新增】 IM基础模块
This commit is contained in:
20
apis/interfaces/im.js
Normal file
20
apis/interfaces/im.js
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user