Skip to content

Commit

Permalink
feat : 내 동아리 리스트 정보
Browse files Browse the repository at this point in the history
  • Loading branch information
Changha-dev committed Nov 25, 2023
1 parent a21a05c commit 3dbc9df
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/main/java/com/donggram/back/service/MemberService.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,15 @@ public ResponseDto getClubList(String token){
for (ClubJoin clubJoin : member.getClubJoinList()){
Club club = clubJoin.getClub();

clubListDtos.add(ClubDto.builder()
.clubId(club.getId())
.clubName(club.getClubName())
.college(club.getCollege().getName())
.division(club.getDivision().getName())
.isRecruitment(club.isRecruitment())
.build());
if (clubJoin.getStatus().name() == "approve"){
clubListDtos.add(ClubDto.builder()
.clubId(club.getId())
.clubName(club.getClubName())
.college(club.getCollege().getName())
.division(club.getDivision().getName())
.isRecruitment(club.isRecruitment())
.build());
}
}

return ResponseDto.builder()
Expand Down

0 comments on commit 3dbc9df

Please sign in to comment.