h大健康群公告列表页面重构,详情页处理接口及样式兼容,群消息页面的群公告显示重构,群聊邀请审核扫码模式处理接口及样式;

This commit is contained in:
Z
2022-02-21 18:00:23 +08:00
parent ad40d0d4d1
commit ee3087b320
6 changed files with 404 additions and 325 deletions

View File

@@ -126,13 +126,13 @@ const getGroupUsers = (groupId, limit) => {
url: 'im/groups/' + groupId + '/users?limit=' + limit
})
}
// 公告列表
const getGroupAnnouncements = (groupId) => {
return request({
url: 'im/groups/' + groupId + '/announcements'
})
}
// 创建公告
const createGroupAnnouncement = (groupId, content) => {
return request({
method: 'POST',
@@ -141,13 +141,27 @@ const createGroupAnnouncement = (groupId, content) => {
content: content
}
})
}
// 查看该公告详情
const getGroupAnnouncement = (groupId, announcementId) => {
return request({
method: 'GET',
url: 'im/groups/' + groupId + '/announcements/' + announcementId
})
}
// 删除该公告
const deleteGroupAnnouncement = (groupId, announcementId) => {
return request({
method: 'DELETE',
url: 'im/groups/' + groupId + '/announcements/' + announcementId
})
}
// 置顶群公告
const topGroupAnnouncement = (groupId, announcementId) => {
return request({
method: 'POST',
url: 'im/groups/' + groupId + '/announcements/' + announcementId+'/top',
})
}
/**
@@ -266,20 +280,17 @@ const transferGroupOwner = (groupId, userId) => {
url: 'im/groups/' + groupId + '/owner/' + userId
})
}
// 通过审核验证群成员
const groupMakeSure = (groupId,user) => {
return request({
url:`im/groups/${groupId}/makesure/${user}`,
method:'POST'
})
}
// //群成员待审核表 -- 废弃
// const getGroupMakeSure = (groupId) => {
// return request({
// url:`im/groups/${groupId}/makesure`
// })
// }
// // 群成员审核通过
// const getGroupMakeSureAllow = (groupId, userId) => {
// return request({
// method: 'POST',
// url: 'im/groups/' + groupId + '/owner/' + userId
// })
// }
export {
getImToken,
@@ -299,9 +310,11 @@ export {
getGroupInfo,
getGroupBase,
getGroupUsers,
getGroupAnnouncements,
getGroupAnnouncements,
getGroupAnnouncement,
createGroupAnnouncement,
deleteGroupAnnouncement,
deleteGroupAnnouncement,
topGroupAnnouncement,
searchGroup,
joinGroupPre,
joinGroup,
@@ -311,6 +324,5 @@ export {
removeGroupUser,
setGroupAdmin,
removeGroupAdmin,
// transferGroupOwner, // -废弃待审核列表
// getGroupMakeSure // -废弃待审核列表
groupMakeSure, // 通过审核
}