|
@@ -2,6 +2,7 @@ package com.yonge.cooleshow.admin.controller.open;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.yonge.cooleshow.api.feign.dto.RoomMember;
|
|
|
+import com.yonge.cooleshow.biz.dal.dto.LiveRoomStatus;
|
|
|
import com.yonge.cooleshow.biz.dal.enums.ClientEnum;
|
|
|
import com.yonge.cooleshow.biz.dal.service.ImGroupService;
|
|
|
import com.yonge.cooleshow.biz.dal.service.ImLiveBroadcastRoomMemberService;
|
|
@@ -20,6 +21,7 @@ import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import javax.validation.Valid;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -67,4 +69,20 @@ public class OpenLiveController extends BaseController {
|
|
|
}
|
|
|
return succeed();
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation("更新直播间状态")
|
|
|
+ @PostMapping("/updateRoomStatus")
|
|
|
+ public HttpResponseResult<Boolean> updateRoomStatus(@RequestBody @Valid LiveRoomStatus status ) {
|
|
|
+ return succeed(liveRoomService.updateRoomStatus(status));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation("设置是否允许连麦")
|
|
|
+ @GetMapping("/whetherMic")
|
|
|
+ public HttpResponseResult<Object> whetherMic(@ApiParam(value = "房间uid", required = true) String roomUid,
|
|
|
+ @ApiParam(value = "是否连麦 0:是 1否", required = true) Integer whetherMic) {
|
|
|
+ liveRoomService.whetherMic(roomUid,whetherMic);
|
|
|
+ return succeed();
|
|
|
+ }
|
|
|
}
|