Skip to content

Commit

Permalink
[feat] create delete debate participation api
Browse files Browse the repository at this point in the history
  • Loading branch information
Parkjyun committed May 12, 2024
1 parent c7e4421 commit 7298f54
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,10 @@ public NewSnackResponse<?> updateDebateComment(@PathVariable Long debateParticip
debateParticipationService.updateDebateComment(debateParticipationId, memberId, request.content());
return NewSnackResponse.success(DebateParticipationSuccessCode.DEBATE_PARTICIPATION_PATCH_SUCCESS);
}

@DeleteMapping("/debate-participations/{debateParticipationId}")
public NewSnackResponse<?> deleteDebateComment(@PathVariable Long debateParticipationId, @MemberId Long memberId) {
debateParticipationService.deleteDebateComment(debateParticipationId, memberId);
return NewSnackResponse.success(DebateParticipationSuccessCode.DEBATE_PARTICIPATION_DELETE_SUCCESS);
}
}

0 comments on commit 7298f54

Please sign in to comment.