From 05bfc17308f79e5a746d3b7cc940939a4c20bace Mon Sep 17 00:00:00 2001 From: nayonsoso Date: Thu, 31 Jul 2025 11:38:07 +0900 Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20=EC=A4=91=EB=B3=B5=EB=90=98?= =?UTF-8?q?=EB=8A=94=20=ED=8E=98=EC=9D=B4=EC=A7=80=EB=84=A4=EC=9D=B4?= =?UTF-8?q?=EC=85=98=20=EC=84=A4=EC=A0=95=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../solidconnection/mentor/controller/MentorController.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/example/solidconnection/mentor/controller/MentorController.java b/src/main/java/com/example/solidconnection/mentor/controller/MentorController.java index 5d9cde156..0ce04e1f7 100644 --- a/src/main/java/com/example/solidconnection/mentor/controller/MentorController.java +++ b/src/main/java/com/example/solidconnection/mentor/controller/MentorController.java @@ -1,7 +1,5 @@ package com.example.solidconnection.mentor.controller; -import static org.springframework.data.domain.Sort.Direction.DESC; - import com.example.solidconnection.common.dto.SliceResponse; import com.example.solidconnection.common.resolver.AuthorizedUser; import com.example.solidconnection.mentor.dto.MentorDetailResponse; @@ -41,7 +39,7 @@ public ResponseEntity> getMentorPreviews( @AuthorizedUser long siteUserId, @RequestParam("region") String region, - @PageableDefault(size = 3, sort = "menteeCount", direction = DESC) + @PageableDefault(size = 3) @SortDefaults({ @SortDefault(sort = "menteeCount", direction = Sort.Direction.DESC), @SortDefault(sort = "id", direction = Sort.Direction.ASC) From 1177cea1cb510ae4123014057eaa53d48add2a6c Mon Sep 17 00:00:00 2001 From: nayonsoso Date: Fri, 1 Aug 2025 05:37:11 +0900 Subject: [PATCH 2/2] =?UTF-8?q?refactor:=20=EB=A9=98=ED=86=A0=EC=9D=98=20?= =?UTF-8?q?=EB=A7=88=EC=9D=B4=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=A1=B0?= =?UTF-8?q?=ED=9A=8C=EC=8B=9C,=20'=ED=95=A9=EA=B2=A9=20=ED=8C=81'=EC=9D=84?= =?UTF-8?q?=20=ED=8F=AC=ED=95=A8=ED=95=98=EB=8F=84=EB=A1=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - '멘토의 마이페이지 조회' api를 미리보기와 상세 보기에 모두 사용하게 한다. - 이를 위해, 마이페이지 응답이 전체 정보를 내려주도록 한다. --- .../solidconnection/mentor/dto/MentorMyPageResponse.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/example/solidconnection/mentor/dto/MentorMyPageResponse.java b/src/main/java/com/example/solidconnection/mentor/dto/MentorMyPageResponse.java index 50b7f6eab..2ae1acba7 100644 --- a/src/main/java/com/example/solidconnection/mentor/dto/MentorMyPageResponse.java +++ b/src/main/java/com/example/solidconnection/mentor/dto/MentorMyPageResponse.java @@ -15,6 +15,7 @@ public record MentorMyPageResponse( int menteeCount, boolean hasBadge, String introduction, + String passTip, List channels ) { @@ -29,6 +30,7 @@ public static MentorMyPageResponse of(Mentor mentor, SiteUser siteUser, Universi mentor.getMenteeCount(), mentor.isHasBadge(), mentor.getIntroduction(), + mentor.getPassTip(), mentor.getChannels().stream() .map(ChannelResponse::from) .toList()