-
Notifications
You must be signed in to change notification settings - Fork 2
feature: 크루원 차단 API 구현 #46
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
Conversation
1fe0678 to
7bab731
Compare
xjvmdutl
left a comment
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.
고생하셨습니다.
| import java.util.UUID; | ||
| import org.springframework.data.jpa.repository.JpaRepository; | ||
|
|
||
| public interface CrewBanMemberRepository extends JpaRepository<CrewBanMember, UUID> { |
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.
@pparkjs 님
읽기 전용으로 사용하는 거면 ReadRepository를 쓰는것이 좋을거 같습니다.
mandykr
left a comment
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.
고생하셨습니다 👍
| Crew crew = findCrewById(crewId); | ||
| crew.validateCrewLeader(loginMemberId); | ||
| List<CrewBanMember> crewBanMembers = crewBanMemberRepository.findAllByCrewId(crewId); | ||
| return CrewBanListResponse.from(crewBanMembers); |
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.
from -> of 로 메소드명 통일하는게 좋겠어요
| @Override | ||
| public void banMember(UUID loginMemberId, UUID crewId, UUID bannedMemberId) { | ||
| Crew crew = findCrewById(crewId); | ||
| crew.banMember(loginMemberId, bannedMemberId); | ||
| } |
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 응답으로 보내주는게 맞을지 같이 고민해보는게 좋겠어요
7bab731 to
0607619
Compare
🔍 PR 타입 선택
아래 타입 중 해당하는 하나를 선택해 주세요. 반드시 하나만 선택해 주세요.
feat: 새로운 기능 추가fix: 버그 수정docs: 문서 수정style: 코드 포맷팅, 세미콜론 누락, 코드 변경이 없는 경우refactor: 코드 리팩토링test: 테스트 코드 추가 또는 수정chore: 빌드 업무 수정, 패키지 매니저 수정 등 기타 작업📝 변경 사항 요약
변경 사항을 간단히 요약해 주세요.
🛠 관련 이슈
Resolves: #27 ,#9
close: #27
close: #9
추가 설명 (선택 사항)
변경 사항에 대한 추가 설명을 작성해 주세요.