This commit is contained in:
cbb
2026-02-07 14:13:00 +08:00
parent 8f5999e7fe
commit 0657b0a718
7 changed files with 112 additions and 21 deletions

View File

@@ -138,7 +138,6 @@ export const getTencentUserSig = () => {
})
}
/** 根据ip判断是否黑名单 */
export const getIpBlack = (loading = true) => {
return http({
@@ -162,4 +161,29 @@ export const getRongYunLoginInfo = () => {
url: '/api/user/usersig/ry',
method: 'get'
})
}
}
/** 获取直播间禁言列表 */
export const getUserBanList = roomId => {
return http({
url: `/api/service/imLiveRoom/biddenMembers/${roomId} `,
method: 'get'
})
}
/** 获取直播间管理员列表 */
export const getUserAdminList = roomId => {
return http({
url: `/api/service/imLiveRoom/administrators/${roomId}`,
method: 'get'
})
}
/** 禁言直播间成员 */
export const banUser = data => {
const { roomId, memberAccount, MuteTime } = data
return http({
url: `/api/service/imLiveRoom/forbidMember/${roomId}/${memberAccount}/${MuteTime}`,
method: 'post'
})
}