Skip to content

Commit c11757d

Browse files
authored
RINGUS-74 Fix: API 연동 오류 해결 (#71)
* RINGUS-74 fix: mentor category 한국어 테이블 수정 * RINGUS-74 fix: MentorDetail Email 필드 추가 * RINGUS-74 fix: MenteeDetail Email 필드 추가 * RINGUS-74 fix: MentorDetail email 필드 제거 및 MyMentorDetail email 필드 추가 * RINGUS-74 fix: Portfolio 빌더 패턴 적용 및 MyMentorDetail image 필드 추가
1 parent 756dac0 commit c11757d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/main/java/es/princip/ringus/presentation/common/dto/PortfolioRequest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ public record PortfolioRequest(
88
Integer fileSize
99
) {
1010
public Portfolio toEntity() {
11-
return new Portfolio(url, description, fileSize);
11+
return Portfolio.builder()
12+
.filePath(url)
13+
.fileName(description)
14+
.fileSize(fileSize)
15+
.build();
1216
}
1317
}

src/main/java/es/princip/ringus/presentation/mentor/dto/MyMentorResponse.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public record MyMentorResponse(
1919
List<String> hashtags,
2020
String message,
2121
PortfolioResponse portfolio,
22+
ProfileImageResponse image,
2223
Long mentoringCount
2324
) {
2425
public static MyMentorResponse from(final Member member, final Mentor mentor, Long mentoringCount) {
@@ -33,6 +34,7 @@ public static MyMentorResponse from(final Member member, final Mentor mentor, Lo
3334
mentor.getHashtags().stream().map(Hashtag::getValue).toList(),
3435
mentor.getMessage(),
3536
PortfolioResponse.from(mentor.getPortfolio()),
37+
ProfileImageResponse.from(mentor.getProfileImage()),
3638
mentoringCount
3739
);
3840
}

0 commit comments

Comments
 (0)