Skip to content

Commit

Permalink
fix : 응답 DTO에 지역이름, 운동이름 , 참가자 수준 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
손명진 authored and 손명진 committed Aug 5, 2024
1 parent eacc74b commit 6cbad08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.example.likelion12.dto.crew;

import com.example.likelion12.domain.MemberCrew;
import com.example.likelion12.domain.base.BaseLevel;
import com.example.likelion12.domain.base.BaseRole;
import com.example.likelion12.domain.base.BaseStatus;
import lombok.AllArgsConstructor;
Expand All @@ -17,4 +18,7 @@ public class GetJoinCrewResponse {
private String crewName;
private String crewImg;
private String commentSimple;
private String exercise_name;
private String activty_area_name;
private BaseLevel level;
}
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,10 @@ public List<GetJoinCrewResponse> getJoinCrew(Long memberId) {
return new GetJoinCrewResponse(
crew.getCrewName(),
crew.getCrewImg(),
crew.getCommentSimple()
crew.getCommentSimple(),
crew.getActivityRegion().getActivityRegionName(),
crew.getExercise().getExerciseName(),
crew.getLevel()
);
})
.collect(Collectors.toList());
Expand Down

0 comments on commit 6cbad08

Please sign in to comment.