Skip to content
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

feat: 모집글 삭제, 참여 취소 API 구현 #209

Merged
merged 1 commit into from
Dec 8, 2022

Conversation

pushedrumex
Copy link
Member

@pushedrumex pushedrumex commented Dec 7, 2022

Feature

  • 배경
    게시자의 모집글 삭제와 참여자의 참여 취소 api를 구현한다.
  • 목적
  1. 게시자가 자신이 올린 게시글을 삭제하기 위함
  2. 참여자가 참여중인 모집에 참여취소가 가능하도록 하기 위함

과정

  1. token으로 디코딩해서 얻은 userId와 param으로 넘어온 recruitId를 통해 요청자가 해당 모집의 게시자인지 확인
  2. 트랜잭션으로 모집글 삭제 + 해당 모집에 참여중인 userRecruit 삭제

결과 (스크린샷 등)

생략

관련 issue 번호 (링크)

#208

테스트 방법

참여 취소

DELETE localhost:4000/recruit/:id/join

모집 취소

DELETE localhost:4000/recruit/:id

Commit

@pushedrumex pushedrumex self-assigned this Dec 7, 2022
Copy link
Member

@gchoi96 gchoi96 left a comment

Choose a reason for hiding this comment

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

LGTM

@June1010 June1010 self-requested a review December 8, 2022 04:42
@pushedrumex pushedrumex merged commit 4334a5a into develop Dec 8, 2022
@gchoi96 gchoi96 mentioned this pull request Dec 13, 2022
@pushedrumex pushedrumex deleted the feat/recruit-crud branch December 20, 2022 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants