-
Notifications
You must be signed in to change notification settings - Fork 5
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
[BE] 인원 수정 및 삭제 API 통합 #964
base: be-dev
Are you sure you want to change the base?
Conversation
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.
요청했던 부분 반영해주셔서 감사합니다! api 요청이 많이 줄어들 것 같아서 좋네용!!!
|
||
deleteMembers(token, originEventMembers, updatedMembers); | ||
eventMemberRepository.saveAll(updatedMembers.getMembers()); | ||
} | ||
|
||
private void deleteMembers(String token, List<EventMember> originEventMembers, UpdatedMembers updatedMembers) { | ||
for (EventMember originEventMember : originEventMembers) { | ||
if (!updatedMembers.contain(originEventMember)) { | ||
deleteMember(token, originEventMember); | ||
} | ||
} | ||
} | ||
|
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.
pr에 써주신 것처럼
1,2,3이 있다고 했을 때, 1은 상태 변화가 있고 2,3은 없다면. 그리고 3을 삭제하고 싶다면
1,2만 PUT 요청하면 된다는 것이죠?
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.
맞아요! 프론트 작업 끝나면 같이 머지해야겠네요.
issue
API
/api/admin/events/{eventId}/members
Request
구현 사항
멤버 정보 수정 API 호출시 누락된 member는 자동으로 삭제 됩니다.
(id 1,2,3 인 멤버가 존재하는 경우 id 1,2 만 수정 요청시 id 3은 삭제됨)