From e5a9432d3bdb3567b746b12e965d93e93c0b5b4e Mon Sep 17 00:00:00 2001 From: Sin Ye Rin <91180366+nyeroni@users.noreply.github.com> Date: Mon, 7 Oct 2024 20:58:15 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20ranking=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yerong/wedle/category/ranking/dto/RankingResponse.java | 1 - .../wedle/category/ranking/dto/UniversityRankingResponse.java | 1 + .../yerong/wedle/category/ranking/service/RankingService.java | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/yerong/wedle/category/ranking/dto/RankingResponse.java b/src/main/java/yerong/wedle/category/ranking/dto/RankingResponse.java index c5dc80f..366c87b 100644 --- a/src/main/java/yerong/wedle/category/ranking/dto/RankingResponse.java +++ b/src/main/java/yerong/wedle/category/ranking/dto/RankingResponse.java @@ -17,7 +17,6 @@ public class RankingResponse { private String displayName; private String fullName; private String description; - private String category; List universityRankingResponses; } diff --git a/src/main/java/yerong/wedle/category/ranking/dto/UniversityRankingResponse.java b/src/main/java/yerong/wedle/category/ranking/dto/UniversityRankingResponse.java index 6546e12..0beede1 100644 --- a/src/main/java/yerong/wedle/category/ranking/dto/UniversityRankingResponse.java +++ b/src/main/java/yerong/wedle/category/ranking/dto/UniversityRankingResponse.java @@ -11,5 +11,6 @@ public class UniversityRankingResponse { private String universityName; private String logo; + private String category; private int rank; } diff --git a/src/main/java/yerong/wedle/category/ranking/service/RankingService.java b/src/main/java/yerong/wedle/category/ranking/service/RankingService.java index fcc5956..35ca067 100644 --- a/src/main/java/yerong/wedle/category/ranking/service/RankingService.java +++ b/src/main/java/yerong/wedle/category/ranking/service/RankingService.java @@ -48,7 +48,6 @@ public List getRankings() { RankingType.CWTS.getDisplayName(), RankingType.CWTS.getFullName(), RankingType.CWTS.getDescription(), - category.getValue(), universityRankingResponses )); } @@ -62,10 +61,10 @@ private RankingResponse convertToRankingResponse(Ranking ranking) { ranking.getRankingType().getDisplayName(), ranking.getRankingType().getFullName(), ranking.getRankingType().getDescription(), - null, List.of(new UniversityRankingResponse( ranking.getUniversityName(), ranking.getLogo(), + ranking.getRankingCategory().getValue(), ranking.getRankNum() )) ); @@ -75,6 +74,7 @@ private UniversityRankingResponse convertToUniversityRankingResponse(Ranking ran return new UniversityRankingResponse( ranking.getUniversityName(), ranking.getLogo(), + ranking.getRankingCategory().getValue(), ranking.getRankNum() ); }