Skip to content

Conversation

@pparkjs
Copy link
Contributor

@pparkjs pparkjs commented Jul 12, 2025

🔍 PR 타입 선택

아래 타입 중 해당하는 하나를 선택해 주세요. 반드시 하나만 선택해 주세요.

  • feat: 새로운 기능 추가
  • fix: 버그 수정
  • docs: 문서 수정
  • style: 코드 포맷팅, 세미콜론 누락, 코드 변경이 없는 경우
  • refactor: 코드 리팩토링
  • test: 테스트 코드 추가 또는 수정
  • chore: 빌드 업무 수정, 패키지 매니저 수정 등 기타 작업

📝 변경 사항 요약

변경 사항을 간단히 요약해 주세요.

  • 크루 회원 차단 API 구현
  • 크루원 추방 API 구현
  • 크루 차단 리스트 조회 API 구현

🛠 관련 이슈

Resolves: #27 ,#9
close: #27
close: #9

추가 설명 (선택 사항)

변경 사항에 대한 추가 설명을 작성해 주세요.

@pparkjs pparkjs linked an issue Jul 12, 2025 that may be closed by this pull request
7 tasks
@pparkjs pparkjs self-assigned this Jul 12, 2025
@pparkjs pparkjs added the Priority: Medium medium label Jul 12, 2025
@pparkjs pparkjs added this to the Sprint 1 milestone Jul 12, 2025
@pparkjs pparkjs force-pushed the feature-27/crew-member-ban branch from 1fe0678 to 7bab731 Compare August 10, 2025 08:28
Copy link
Collaborator

@xjvmdutl xjvmdutl left a 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> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pparkjs
읽기 전용으로 사용하는 거면 ReadRepository를 쓰는것이 좋을거 같습니다.

Copy link
Contributor

@mandykr mandykr left a 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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from -> of 로 메소드명 통일하는게 좋겠어요

Comment on lines +166 to +170
@Override
public void banMember(UUID loginMemberId, UUID crewId, UUID bannedMemberId) {
Crew crew = findCrewById(crewId);
crew.banMember(loginMemberId, bannedMemberId);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

차단 후에 어떤 데이터를 api 응답으로 보내주는게 맞을지 같이 고민해보는게 좋겠어요

@pparkjs pparkjs force-pushed the feature-27/crew-member-ban branch from 7bab731 to 0607619 Compare October 11, 2025 07:41
@pparkjs pparkjs merged commit ce0b108 into develop Oct 11, 2025
@pparkjs pparkjs deleted the feature-27/crew-member-ban branch October 11, 2025 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

크루에서 사용자 차단 크루원 추방

4 participants