|
@@ -73,6 +73,17 @@ public class RoomController extends BaseController{
|
|
|
roomService.deleteById(param.getRoomId());
|
|
|
return ResultData.ok();
|
|
|
}
|
|
|
+ @GetMapping("/checkCanDel")
|
|
|
+ public ResultData checkCanDel(@RequestParam(required = false) String roomId) {
|
|
|
+ if(roomId == null){
|
|
|
+ throw new BusinessException(ResultCode.PARAM_MISS);
|
|
|
+ }
|
|
|
+ Room room = roomService.getById(roomId);
|
|
|
+ if(room == null){
|
|
|
+ throw new BusinessException(ResultCode.ROOM_MISS);
|
|
|
+ }
|
|
|
+ return ResultData.ok(roomService.checkCanDel(room));
|
|
|
+ }
|
|
|
/**
|
|
|
* 获取分享二维码
|
|
|
* roomId 房间id
|