Skip to content

[FEAT] 크루 탈퇴 API 개발#111

Merged
hey-sung merged 1 commit intomainfrom
feat/110-quit-crew
Apr 27, 2025
Merged

[FEAT] 크루 탈퇴 API 개발#111
hey-sung merged 1 commit intomainfrom
feat/110-quit-crew

Conversation

@hey-sung
Copy link
Collaborator

PR 타입

☑ 기능 추가
□ 기능 삭제
□ 리팩터링
□ 버그 리포트
□ 버그 수정
□ 의존성, 환경 변수, 빌드 관련 코드 업데이트

반영 브랜치

feat/110-quit-crew -> main


🛠️ 변경 사항

크루 탈퇴 API를 개발합니다.
크루 내 역할이 LEADER인 경우에는 예외를 발생시킵니다.

✅ 작업 상세 내용

  • 인증된 사용자가 특정 크루에 대해 탈퇴하는 API 개발
  • 크루 내 역할이 LEADER가 아닌 경우에만 가능
  • LEADER인 경우 LEADER_CANNOT_EXPEL 예외 발생

🧪 테스트 결과

image


📚 연관된 이슈

#110


🤔 리뷰 요구사항(선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요
ex) 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요?

- 인증된 사용자가 특정 크루에 대해 탈퇴하는 API 개발
- 크루 내 역할이 LEADER가 아닌 경우에만 가능
- LEADER인 경우 LEADER_CANNOT_EXPEL 예외 발생
@hey-sung hey-sung added the 💡 feature 기능 구현, 개선 사항 관련 label Apr 27, 2025
@hey-sung hey-sung self-assigned this Apr 27, 2025
@hey-sung hey-sung added this to HERE-WE Apr 27, 2025
@hey-sung hey-sung linked an issue Apr 27, 2025 that may be closed by this pull request
3 tasks
@hey-sung hey-sung moved this to In review in HERE-WE Apr 27, 2025
@github-actions
Copy link

Test Results

124 tests  ±0   124 ✅ ±0   2s ⏱️ ±0s
 53 suites ±0     0 💤 ±0 
 53 files   ±0     0 ❌ ±0 

Results for commit d62022a. ± Comparison against base commit c556085.

@hey-sung hey-sung merged commit c901e25 into main Apr 27, 2025
2 checks passed
@hey-sung hey-sung deleted the feat/110-quit-crew branch April 27, 2025 13:11
@github-project-automation github-project-automation bot moved this from In review to Done in HERE-WE Apr 27, 2025
hey-sung added a commit that referenced this pull request Aug 7, 2025
* [FEAT] 크루 탈퇴 API 개발 (#111)

- 인증된 사용자가 특정 크루에 대해 탈퇴하는 API 개발
- 크루 내 역할이 LEADER가 아닌 경우에만 가능
- LEADER인 경우 LEADER_CANNOT_EXPEL 예외 발생

* [FIX] 다른 사람 계정으로 로그인되는 버그 픽스 (#114)

* refactor: JWT 초기 발급 API spec 변경

- JWT 초기 발급 API spec 변경
- 소셜로그인 성공 시, UUID 재발급 후 redis에 저장
- 리다이렉트 URL에 userId, token 정보를 담아서 전달
- POST /api/auth의 request body에 userId, token을 담아서 JWT 토큰 요청
- token 정보 유효성 확인

* feat: JWT 재발급 API 개발

- JwtFacade를 JwtManager로 이름 변경
- AuthFacade 인터페이스 작성 및 로직 정리
- JWT 재발급 API 개발 (`POST /api/auth/reissue`)

* docs: swagger docs 작성

- AuthApi 인터페이스에 swagger docs 작성

* [FEAT] 로그아웃 API 개발 (#118)

* feat: 로그아웃 API 개발

- 로그아웃 API 개발 `POST /api/logout?nickname={nickname}`
- redis에서 refresh-token 정보 삭제 및 Cookie에서 refresh token 삭제

* docs: swagger docs 작성

- /api/auth/logout에 대해 swagger docs 작성

* [FEAT] 크루리더 양도하기 API 개발 (#119)

* feat: 크루 리더 양도 API 개발

- `PATCH /api/crew/{crewId}/members/leader` 크루 리더 양도 API 개발
- 요청자가 크루리더가 아닌 경우, 대상자가 크루 참여자가 아닌 경우, 대상자의 닉네임을 통해 사용자를 찾을 수 없는 경우 예외 발생
-  CrewMember에 역할을 업데이트하는 비지니스 로직 추가

* docs: swagger docs 작성

* feat: 본인에 대해 요청한 경우에는 예외 발생

- 리더가 본인에 대해 리더 양도를 요청한 경우에는 LEADER_ALREADY_ASSIGNED 예외 발생

---------

Co-authored-by: HEY <50323157+SSung023@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💡 feature 기능 구현, 개선 사항 관련

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[FEAT] 크루 탈퇴 API 개발

1 participant