后台新增修改房间管理员数量功能

This commit is contained in:
tianfeng 2026-03-03 14:29:09 +08:00
parent 2a6730dc24
commit 6f5e2610e0
3 changed files with 10 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public interface RoomManagerClientApi {
@GetMapping("/updateRoomSettingMemberCapacity")
ResultResponse<Void> updateRoomSettingMemberCapacity(
@RequestParam("userId") Long userId,
@RequestParam("maxMember") Integer maxMember,
@RequestParam(value = "maxMember", required = false) Integer maxMember,
@RequestParam("adminNumber") Integer adminNumber);
/**

View File

@ -88,6 +88,11 @@ public class RoomProfileDTO implements Serializable {
*/
private String langCode;
/**
* 管理员数量
*/
private Integer maxAdmin;
/**
* false: 未删除 true: 已删除.
*/

View File

@ -155,6 +155,10 @@ public class RoomProfileManagerServiceImpl implements RoomProfileManagerService
Boolean result = roomManagerClient.updateSelectiveProfile(roomProfile).getBody();
if (roomProfile.getMaxAdmin() != null) {
roomManagerClient.updateRoomSettingMemberCapacity(roomProfile.getUserId(), null, roomProfile.getMaxAdmin());
}
if (Boolean.TRUE.equals(result) && Objects.equals(roomProfile.getEvent(), RoomEventEnum.CLOSE.name())) {
imGroupClient.sendMessageBroadcast(