|  | @@ -48,26 +48,12 @@ public class ImLiveBroadcastRoomController extends BaseController {
 | 
	
		
			
				|  |  |          return succeed(imLiveBroadcastRoomService.queryRoomAndCheck(roomUid, userId, 1));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    @ApiOperation("同步点赞数量")
 | 
	
		
			
				|  |  | -    @GetMapping("/syncLike")
 | 
	
		
			
				|  |  | -    public HttpResponseResult<Object> syncLike(@ApiParam(value = "房间uid", required = true) String roomUid,
 | 
	
		
			
				|  |  | -                                               @ApiParam(value = "点赞数", required = true) Integer likeNum) {
 | 
	
		
			
				|  |  | -        imLiveBroadcastRoomService.syncLike(roomUid, likeNum);
 | 
	
		
			
				|  |  | -        return succeed();
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      @PostMapping("/quitRoom")
 | 
	
		
			
				|  |  |      public HttpResponseResult<Object> quitRoom(@RequestBody List<ImUserState> userState) {
 | 
	
		
			
				|  |  |          imLiveBroadcastRoomService.opsRoom(userState);
 | 
	
		
			
				|  |  |          return succeed();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    @ApiOperation("主讲人进入房间")
 | 
	
		
			
				|  |  | -    @GetMapping("/speakerJoinRoom")
 | 
	
		
			
				|  |  | -    public HttpResponseResult<ImLiveBroadcastRoomVo> speakerJoinRoom(String roomUid) {
 | 
	
		
			
				|  |  | -        return succeed(imLiveBroadcastRoomService.speakerJoinRoom(roomUid));
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      @ApiOperation("学生-进入房间")
 | 
	
		
			
				|  |  |      @GetMapping("/joinRoom")
 | 
	
		
			
				|  |  |      public HttpResponseResult<Object> joinRoom(String roomUid, Integer userId) {
 | 
	
	
		
			
				|  | @@ -75,21 +61,5 @@ public class ImLiveBroadcastRoomController extends BaseController {
 | 
	
		
			
				|  |  |          return succeed();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    @ApiOperation("开启/关闭直播的录像")
 | 
	
		
			
				|  |  | -    @GetMapping("/opsLiveVideo")
 | 
	
		
			
				|  |  | -    public HttpResponseResult<Object> opsLiveVideo(@ApiParam(value = "房间uid", required = true) String roomUid,
 | 
	
		
			
				|  |  | -                                                   @ApiParam(value = "用户id", required = true) Integer userId,
 | 
	
		
			
				|  |  | -                                                   @ApiParam(value = "type 1:开始直播-开始录像     2:关闭直播关闭录像", required = true) Integer type) {
 | 
	
		
			
				|  |  | -        if (type == 1) {
 | 
	
		
			
				|  |  | -            imLiveBroadcastRoomService.startLive(roomUid, userId);
 | 
	
		
			
				|  |  | -        } else if (type == 2) {
 | 
	
		
			
				|  |  | -            imLiveBroadcastRoomService.closeLive(roomUid, userId);
 | 
	
		
			
				|  |  | -        } else {
 | 
	
		
			
				|  |  | -            failed("type参数错误");
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        return succeed();
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 |