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 0beede1..6546e12 100644 --- a/src/main/java/yerong/wedle/category/ranking/dto/UniversityRankingResponse.java +++ b/src/main/java/yerong/wedle/category/ranking/dto/UniversityRankingResponse.java @@ -11,6 +11,5 @@ 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 4784cd3..95e1531 100644 --- a/src/main/java/yerong/wedle/category/ranking/service/RankingService.java +++ b/src/main/java/yerong/wedle/category/ranking/service/RankingService.java @@ -27,13 +27,14 @@ public List getAllRankings() { } private RankingResponse convertToRankingResponse(Ranking ranking) { - // 대학 랭킹 응답 생성 + UniversityRankingResponse universityRankingResponse = new UniversityRankingResponse( ranking.getUniversityName(), ranking.getLogo(), ranking.getRankNum() ); + return new RankingResponse( ranking.getRankingType().getDisplayName(), ranking.getRankingType().getFullName(),