Skip to content

Commit

Permalink
Merge branch 'fix/68_memberNickname' into 'develop/BE'
Browse files Browse the repository at this point in the history
fix: course ๊ด€๋ จ, memberNickname ํ†ต์ผ

See merge request s11-bigdata-recom-sub1/S11P21B304!132
  • Loading branch information
Jo-SeongJeong committed Oct 9, 2024
2 parents d05dfa2 + ac58d92 commit db21ca2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ public class UserDetailResponseDto {
private double lat;
private double lng;
private CourseImageDto courseImage;
private String nickname;
private String memberNickname;
private Long memberId;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ public class UserListResponseDto {
private double lat;
private double lng;
private CourseImageDto courseImage;
private String nickname;
private String memberNickname;
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public List<UserListResponseDto> findAllUserCourse(double lat, double lng) {
.map(course -> {
// Course -> UserListResponseDto ๋ณ€ํ™˜
UserListResponseDto dto = mapper.map(course, UserListResponseDto.class);
dto.setNickname(course.getMember().getNickname());
dto.setMemberNickname((course.getMember().getNickname()));
// calcDistance ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•ด ์‚ฌ์šฉ์ž์™€ ์ฝ”์Šค ๊ฐ„์˜ ๊ฑฐ๋ฆฌ ๊ณ„์‚ฐ
double distance = calcDistance(lat, lng, course.getLat(), course.getLng());

Expand All @@ -89,7 +89,7 @@ public UserDetailResponseDto getUserCourse(Long courseId) {
if(course == null) return null;

UserDetailResponseDto dto = mapper.map(course, UserDetailResponseDto.class);
dto.setNickname(course.getMember().getNickname());
dto.setMemberNickname(course.getMember().getNickname());
dto.setMemberId(course.getMember().getMemberId());
return dto;
}
Expand Down Expand Up @@ -182,7 +182,7 @@ public List<UserListResponseDto> findPopularAllUserCourse(double lat, double lng
.map(course -> {
// Course -> UserListResponseDto ๋ณ€ํ™˜
UserListResponseDto dto = mapper.map(course, UserListResponseDto.class);
dto.setNickname(course.getMember().getNickname());
dto.setMemberNickname(course.getMember().getNickname());
// calcDistance ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•ด ์‚ฌ์šฉ์ž์™€ ์ฝ”์Šค ๊ฐ„์˜ ๊ฑฐ๋ฆฌ ๊ณ„์‚ฐ
double distance = calcDistance(lat, lng, course.getLat(), course.getLng());

Expand All @@ -203,7 +203,7 @@ public List<UserListResponseDto> findPopularLatelyUserCourse(double lat, double
.map(course -> {
// Course -> UserListResponseDto ๋ณ€ํ™˜
UserListResponseDto dto = mapper.map(course, UserListResponseDto.class);
dto.setNickname(course.getMember().getNickname());
dto.setMemberNickname(course.getMember().getNickname());
// calcDistance ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•ด ์‚ฌ์šฉ์ž์™€ ์ฝ”์Šค ๊ฐ„์˜ ๊ฑฐ๋ฆฌ ๊ณ„์‚ฐ
double distance = calcDistance(lat, lng, course.getLat(), course.getLng());

Expand Down

0 comments on commit db21ca2

Please sign in to comment.