diff --git a/src/internal/playground/dto/playground-project-response.dto.ts b/src/internal/playground/dto/playground-project-response.dto.ts index 7783e8c..7887bd3 100644 --- a/src/internal/playground/dto/playground-project-response.dto.ts +++ b/src/internal/playground/dto/playground-project-response.dto.ts @@ -14,5 +14,7 @@ export class PlaygroundProjectResponseDto { detail: string; logoImage: string; thumbnailImage: string; + isAvailable: boolean; + isFounding: boolean; links: PlaygroundLink[]; } diff --git a/src/internal/playground/playground.service.ts b/src/internal/playground/playground.service.ts index 4142f5c..221667e 100644 --- a/src/internal/playground/playground.service.ts +++ b/src/internal/playground/playground.service.ts @@ -13,7 +13,6 @@ import { Link } from './dto/link'; import { MemberRequestDto } from 'src/members/dtos/member-request.dto'; import { MemberListResponseDto } from 'src/members/dtos/member-response.dto'; import { GetProjectsRequestDto } from '../../projects/dtos/get-projects-request.dto'; -import { elementAt } from 'rxjs'; @Injectable() export class PlaygroundService { @@ -46,6 +45,8 @@ export class PlaygroundService { detail: response.detail, logoImage: response.logoImage, thumbnailImage: response.thumbnailImage, + isAvailable: response.isAvailable, + isFounding: response.isFounding, link: links, }; } @@ -58,6 +59,7 @@ export class PlaygroundService { const platform = dto?.platform; const response = await this.playgroundRepository.getAllProjects(); + // 중복제거 로직 : 추후 제거 예정 const uniqueResponse: PlaygroundProjectResponseDto[] = dropDuplication( response, diff --git a/src/projects/dtos/projects-response.dto.ts b/src/projects/dtos/projects-response.dto.ts index 3d5b17c..5c2a7a8 100644 --- a/src/projects/dtos/projects-response.dto.ts +++ b/src/projects/dtos/projects-response.dto.ts @@ -74,6 +74,20 @@ export class ProjectsResponseDto { }) thumbnailImage: string | null; + @ApiProperty({ + type: Boolean, + required: true, + description: '서비스 이용 가능 여부', + }) + isAvailable: boolean; + + @ApiProperty({ + type: Boolean, + required: true, + description: '창업중인지 여부', + }) + isFounding: boolean; + @ApiProperty({ type: [Link], required: true,