-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature/38] 모임 일정 전체 조회 API 추가 #43
Conversation
<body> - MoimScheduleAndUserRepositoryImpl.java - querydsl 활용해서 기존 로직 재사용 가능하게 변경 - MoimScheduleResponseConverter.java - toMoimScheduleUserDto 메서드서 버그 발견 및 수정 - 대부분 월간 모음 스케줄 조회를 그대로 재활용하여 코드를 생성했습니다. <footer> - 관련: #38
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 수정할 부분은 딱히 없어 보입니다! 수고하셨어요 ㅎㅎ
* TODO | ||
* ISSUE 설명: Moim_USER_COLOR 에 대한 부여를 현재 총 모임원의 index를 통해서 부여함 | ||
* 이 경우 모임원이 탈퇴하고 다시금 들어올 경우 동일한 color를 부여받는 모임원이 생김 | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ 이후에 수정하시기 위해서 작성한 TODO가 맞을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 맞습니다
@@ -170,15 +170,28 @@ public void modifyMoimScheduleAlarm(MoimScheduleRequest.PostMoimScheduleAlarmDto | |||
} | |||
|
|||
@Transactional(readOnly = true) | |||
public List<MoimScheduleResponse.MoimScheduleDto> getMoimSchedules(Long moimId, | |||
public List<MoimScheduleResponse.MoimScheduleDto> getMonthMoimSchedules(Long moimId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 앞에 Month를 붙여 더욱 직관적인 네이밍이 된것 같아서 좋습니다!
* 넘기기는 했는데 MoimMemo에 가까운 로직이라 이곳으로 들어오는게 맞나 싶네요? | ||
* 이 부분에 대해서는 MoimScheduleAndUser를 반환해서 | ||
* 우선 MoimScheduleAndUserRepository로 | ||
* 넘기기는 했는데 MoimMemo에 가까운 로직이라 이곳으로 들어오는게 맞나 싶네요? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💬 개인적인 의견으로는 Repository의 메서드는 해당 메서드를 사용하는 service 가 누구인가에 상관없이 데이터를 다루는 주체가 누구인가에 따라 달라진다고 생각합니다. 그리고 저 같은 경우는 그 주체가 from 절의 table이 된다고 생각하는 편이구요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
의견 감사합니다. 항상 참고가 되네요 👍
Type of change
PR Desciption
Requirements for Reviewer
PR Log
새롭게 배운 것
고민 중인 사항
첨부 자료
관련 이슈