File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed
src/main/java/com/back/matchduo/domain/party Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 99public interface PartyMemberRepository extends JpaRepository <PartyMember , Long > {
1010
1111 // 1. 특정 파티의 멤버 목록 조회 (가입된 상태만 가져오거나, 전체 다 가져오거나)
12- // 용도: GET /api/v1/parties/{partyId}/members (파티원 목록 보여주기)
1312 List <PartyMember > findByPartyId (Long partyId );
1413
1514 // 2. 내가 참여한 파티 목록 조회
16- // 용도: GET /api/v1/users/me/parties (내 파티 목록)
1715 List <PartyMember > findByUserId (Long userId );
1816
1917 // 3. 이미 참여했는지 확인 (중복 참여 방지)
20- // 용도: 파티 참여 신청 시 검증 로직 (Validation)
2118 boolean existsByPartyIdAndUserId (Long partyId , Long userId );
2219
2320 // 4. 특정 파티에서 내 멤버 정보 찾기
24- // 용도: 탈퇴하거나 강퇴할 때 내 멤버 ID를 찾기 위해 사용
2521 Optional <PartyMember > findByPartyIdAndUserId (Long partyId , Long userId );
2622}
You can’t perform that action at this time.
0 commit comments