后台新增修改房间管理员数量功能
This commit is contained in:
parent
2a6730dc24
commit
6f5e2610e0
@ -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);
|
||||
|
||||
/**
|
||||
|
||||
@ -88,6 +88,11 @@ public class RoomProfileDTO implements Serializable {
|
||||
*/
|
||||
private String langCode;
|
||||
|
||||
/**
|
||||
* 管理员数量
|
||||
*/
|
||||
private Integer maxAdmin;
|
||||
|
||||
/**
|
||||
* false: 未删除 true: 已删除.
|
||||
*/
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user