diff --git a/src/main/java/kr/co/conceptbe/member/application/MemberService.java b/src/main/java/kr/co/conceptbe/member/application/MemberService.java index a4c21f1..b851265 100644 --- a/src/main/java/kr/co/conceptbe/member/application/MemberService.java +++ b/src/main/java/kr/co/conceptbe/member/application/MemberService.java @@ -67,7 +67,8 @@ public GetMemberProfileResponse getMemberProfileBy(AuthCredentials authCredentia member.getWorkingPlace(), member.getIntroduce(), mapToMemberSkills(member), - mapToMemberPurposes(member) + mapToMemberPurposes(member), + mapToMemberBranches(member) ); } @@ -87,6 +88,12 @@ private List mapToMemberSkills(Member member) { .collect(Collectors.toList()); } + private List mapToMemberBranches(Member member) { + return member.getBranches().stream() + .map(branch -> branch.getBranch().getName()) + .toList(); + } + @Transactional(readOnly = true) public List findMemberIdeas(AuthCredentials authCredentials, Long id, Pageable pageable) { diff --git a/src/main/java/kr/co/conceptbe/member/application/dto/GetMemberProfileResponse.java b/src/main/java/kr/co/conceptbe/member/application/dto/GetMemberProfileResponse.java index aece415..7dee95a 100644 --- a/src/main/java/kr/co/conceptbe/member/application/dto/GetMemberProfileResponse.java +++ b/src/main/java/kr/co/conceptbe/member/application/dto/GetMemberProfileResponse.java @@ -26,6 +26,10 @@ public record GetMemberProfileResponse( @ArraySchema( arraySchema = @Schema( description = "가입목적", example ="[\"사이드프로젝트\", \"공모전\"]")) - List joinPurposes + List joinPurposes, + @ArraySchema( arraySchema = @Schema( + description = "목적", + example ="[\"쇼핑\", \"금융/앱테크\"]")) + List branchList ) { }