|
@@ -10,10 +10,7 @@ import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.Map;
|
|
@@ -34,13 +31,53 @@ public class ImLiveRoomPurviewController extends BaseController {
|
|
|
private ImLiveRoomPurviewService imLiveRoomPurviewService;
|
|
|
|
|
|
@ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "ids", dataType = "String", value = "删除的id,学员id,群id, 逗号分开"),
|
|
|
+ @ApiImplicitParam(name = "roomUid", dataType = "String", value = "直播间UID", required = true),
|
|
|
+ })
|
|
|
+ @ApiOperation("删除观看权限数据")
|
|
|
+ @GetMapping("/delete")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('imLiveRoomPurview/delete')")
|
|
|
+ public HttpResponseResult<Object> delete(String ids, String roomUid){
|
|
|
+ imLiveRoomPurviewService.delete(ids, roomUid);
|
|
|
+ return succeed();
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "search", dataType = "String", value = "模糊查询关键字"),
|
|
|
+ @ApiImplicitParam(name = "subjectId", dataType = "String", value = "声部ID"),
|
|
|
+ @ApiImplicitParam(name = "roomUid", dataType = "String", value = "直播间UID", required = true),
|
|
|
+ @ApiImplicitParam(name = "page", dataType = "Integer", value = "页数"),
|
|
|
+ @ApiImplicitParam(name = "rows", dataType = "Integer", value = "每页数量"),
|
|
|
+ })
|
|
|
+ @ApiOperation("查询当前直播间学员列表-观看权限")
|
|
|
+ @PostMapping("/queryStudent")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('imLiveRoomPurview/queryStudent')")
|
|
|
+ public HttpResponseResult<PageInfo<SysUserDto>> queryStudent(@RequestBody Map<String, Object> param) {
|
|
|
+ return succeed(imLiveRoomPurviewService.queryStudent(param));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "search", dataType = "String", value = "模糊查询关键字"),
|
|
|
+ @ApiImplicitParam(name = "groupType", dataType = "String", value = "群类型"),
|
|
|
+ @ApiImplicitParam(name = "roomUid", dataType = "String", value = "直播间UID", required = true),
|
|
|
+ @ApiImplicitParam(name = "page", dataType = "Integer", value = "页数"),
|
|
|
+ @ApiImplicitParam(name = "rows", dataType = "Integer", value = "每页数量"),
|
|
|
+ })
|
|
|
+ @ApiOperation("查询当前直播间群聊列表-观看权限")
|
|
|
+ @PostMapping("/queryGroup")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('imLiveRoomPurview/queryGroup')")
|
|
|
+ public HttpResponseResult<PageInfo<ImGroup>> queryGroup(@RequestBody Map<String, Object> param){
|
|
|
+ return succeed(imLiveRoomPurviewService.queryGroup(param));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "search", dataType = "String", value = "模糊查询关键字"),
|
|
|
@ApiImplicitParam(name = "subjectId", dataType = "String", value = "声部ID"),
|
|
|
@ApiImplicitParam(name = "roomUid", dataType = "String", value = "直播间UID", required = true),
|
|
|
@ApiImplicitParam(name = "page", dataType = "Integer", value = "页数"),
|
|
|
@ApiImplicitParam(name = "rows", dataType = "Integer", value = "每页数量"),
|
|
|
})
|
|
|
- @ApiOperation("选择列表-观看权限-查询学员列表")
|
|
|
+ @ApiOperation("选择列表-观看权限-学员列表")
|
|
|
@PostMapping("/selectRoomPurviewStudent")
|
|
|
@PreAuthorize("@pcs.hasPermissions('imLiveRoomPurview/selectRoomPurviewStudent')")
|
|
|
public HttpResponseResult<PageInfo<SysUserDto>> selectRoomPurviewStudent(@RequestBody Map<String, Object> param) {
|