|
@@ -67,10 +67,23 @@ public class TeacherImLiveBroadcastRoomController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("查询房间信息并校验房间是否合规")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "roomUid", dataType = "String", value = "房间uid", required = true),
|
|
|
+ @ApiImplicitParam(name = "userId", dataType = "Integer", value = "用户id", required = true),
|
|
|
+ @ApiImplicitParam(name = "liveAssistant", dataType = "Boolean", value = "直播助手"),
|
|
|
+ })
|
|
|
@GetMapping("/queryRoom")
|
|
|
public HttpResponseResult<ImLiveBroadcastRoomVo> queryRoomAndCheck(@ApiParam(value = "房间uid", required = true) String roomUid,
|
|
|
- @ApiParam(value = "用户id", required = true) Integer userId) {
|
|
|
- return succeed(imLiveBroadcastRoomService.queryRoomAndCheck(roomUid, userId, 2));
|
|
|
+ @ApiParam(value = "用户id", required = true) Integer userId,
|
|
|
+ @RequestParam(defaultValue = "false") Boolean liveAssistant) {
|
|
|
+
|
|
|
+ // 请求来源业源
|
|
|
+ int osType = 2; // 老师端
|
|
|
+ if (Optional.ofNullable(liveAssistant).orElse(false)) {
|
|
|
+ osType = 3; // 直播助手
|
|
|
+ }
|
|
|
+
|
|
|
+ return succeed(imLiveBroadcastRoomService.queryRoomAndCheck(roomUid, userId, osType));
|
|
|
}
|
|
|
|
|
|
@ApiOperation("关闭直播间")
|