mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 16:54:54 +00:00
removed get spaces from community
This commit is contained in:
@ -9,13 +9,11 @@ import {
|
||||
Param,
|
||||
Post,
|
||||
Put,
|
||||
Query,
|
||||
UseGuards,
|
||||
} from '@nestjs/common';
|
||||
import { JwtAuthGuard } from '@app/common/guards/jwt.auth.guard';
|
||||
import { AddSpaceDto, CommunitySpaceParam } from '../dtos';
|
||||
import { BaseResponseDto } from '@app/common/dto/base.response.dto';
|
||||
import { PaginationRequestGetListDto } from '@app/common/dto/pagination.request.dto';
|
||||
import { GetSpaceParam } from '../dtos/get.space.param';
|
||||
|
||||
@ApiTags('Space Module')
|
||||
@ -46,15 +44,18 @@ export class SpaceController {
|
||||
@ApiBearerAuth()
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@ApiOperation({
|
||||
summary: ControllerRoute.SPACE.ACTIONS.LIST_SPACE_SUMMARY,
|
||||
description: ControllerRoute.SPACE.ACTIONS.LIST_SPACE_DESCRIPTION,
|
||||
summary:
|
||||
ControllerRoute.SPACE.ACTIONS.GET_COMMUNITY_SPACES_HIERARCHY_SUMMARY,
|
||||
description:
|
||||
ControllerRoute.SPACE.ACTIONS.GET_COMMUNITY_SPACES_HIERARCHY_DESCRIPTION,
|
||||
})
|
||||
@Get()
|
||||
async list(
|
||||
@Param() communitySpaceParam: CommunitySpaceParam,
|
||||
@Query() query: PaginationRequestGetListDto,
|
||||
async getHierarchy(
|
||||
@Param() param: CommunitySpaceParam,
|
||||
): Promise<BaseResponseDto> {
|
||||
return this.spaceService.list(communitySpaceParam.communityUuid, query);
|
||||
return this.spaceService.getSpacesHierarchyForCommunity(
|
||||
param.communityUuid,
|
||||
);
|
||||
}
|
||||
|
||||
@ApiBearerAuth()
|
||||
|
||||
Reference in New Issue
Block a user