From 7aa430c172525927d6e4e9d0e6db64c56be59b20 Mon Sep 17 00:00:00 2001 From: yunhacandy Date: Sun, 18 Aug 2024 16:05:36 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20ProjectSummaryResponse=EC=97=90=20url?= =?UTF-8?q?=20=EA=B4=80=EB=A0=A8=20=EC=A0=95=EB=B3=B4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../csquiz/api/project/dto/ProjectSummaryResponse.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/cotato/csquiz/api/project/dto/ProjectSummaryResponse.java b/src/main/java/org/cotato/csquiz/api/project/dto/ProjectSummaryResponse.java index 055a5897..73c4e9dc 100644 --- a/src/main/java/org/cotato/csquiz/api/project/dto/ProjectSummaryResponse.java +++ b/src/main/java/org/cotato/csquiz/api/project/dto/ProjectSummaryResponse.java @@ -9,7 +9,10 @@ public record ProjectSummaryResponse( String introduction, Long generationId, Integer generationNumber, - String imageUrl + String imageUrl, + String githubUrl, + String behanceUrl, + String projectUrl ) { public static ProjectSummaryResponse of(Project project, Integer generationNumber, ProjectImage projectImage) { return new ProjectSummaryResponse( @@ -18,7 +21,10 @@ public static ProjectSummaryResponse of(Project project, Integer generationNumbe project.getIntroduction(), project.getGenerationId(), generationNumber, - projectImage != null ? projectImage.getS3Info().getUrl() : null + projectImage != null ? projectImage.getS3Info().getUrl() : null, + project.getGithubUrl(), + project.getBehanceUrl(), + project.getProjectUrl() ); } }