群组基础接口

This commit is contained in:
2022-02-10 18:00:22 +08:00
parent 8656ddef55
commit b9364be40b
5 changed files with 116 additions and 57 deletions

View File

@@ -99,6 +99,20 @@ const getMyGroups = () => {
})
}
const getGroupInfo = (groupId) => {
return request({
url: 'im/groups/' + groupId
})
}
const createGroup = (data) => {
return request({
method: 'POST',
url: 'im/groups',
data: data
})
}
export {
getImToken,
deleteFriend,
@@ -111,5 +125,7 @@ export {
rejectFriend,
searchFriend,
pedingFriend,
getMyGroups
getMyGroups,
createGroup,
getGroupInfo
}