Skip to content

Commit

Permalink
[BE/#49] Feat : 코멘트 업데이트 관련 컨트롤러 로직 구현
Browse files Browse the repository at this point in the history
- CommentsRequestDto
  • Loading branch information
MuseopKim committed Jun 18, 2020
1 parent dba0976 commit bbad4bc
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,9 @@ public ResponseEntity<ApiResponse<String>> updateMilestone(@PathVariable Long is
public ResponseEntity<ApiResponse<String>> submitComment(@PathVariable Long issueId, @RequestBody CommentsRequestDto commentsRequestDto) {
return new ResponseEntity(ApiResponse.CREATED(issueService.submitNewComment(issueId, commentsRequestDto)), HttpStatus.CREATED);
}

@PatchMapping("/issues/{issueId}/comments/{commentId}")
public ResponseEntity<ApiResponse<String>> updateComment(@PathVariable Long issueId, @PathVariable Long commentId, @RequestBody CommentsRequestDto commentsRequestDto) {
return new ResponseEntity(ApiResponse.OK(issueService.updateComment(issueId, commentId, commentsRequestDto)), HttpStatus.OK);
}
}

0 comments on commit bbad4bc

Please sign in to comment.