Skip to content

Commit

Permalink
style: final 빠진 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
nuyh99 committed Aug 10, 2023
1 parent d5c7e2f commit b34e979
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ public RecommendedController(final RecommendedPostService recommendedPostService
}

@PostMapping
public ResponseEntity<Void> createRecommendedPost(@PathVariable("keywordId") Long keywordId,
@RequestBody RecommendedRequest request) {
final Long id = recommendedPostService.create(keywordId, request);
public ResponseEntity<Void> createRecommendedPost(@PathVariable("keywordId") final Long keywordId,
@RequestBody final RecommendedRequest request) {
recommendedPostService.create(keywordId, request);
return ResponseEntity.status(HttpStatus.CREATED).build();
}

@PutMapping("/{recommendedId}")
public ResponseEntity<Void> updateRecommendedPost(@PathVariable("keywordId") Long keywordId,
@PathVariable("recommendedId") Long recommendedId,
@RequestBody RecommendedUpdateRequest request) {
public ResponseEntity<Void> updateRecommendedPost(@PathVariable("keywordId") final Long keywordId,
@PathVariable("recommendedId") final Long recommendedId,
@RequestBody final RecommendedUpdateRequest request) {
recommendedPostService.update(recommendedId, request);
return ResponseEntity.noContent().build();
}

@DeleteMapping("/{recommendedId}")
public ResponseEntity<Void> deleteRecommendedPost(@PathVariable("keywordId") Long keywordId,
@PathVariable("recommendedId") Long recommendedId) {
public ResponseEntity<Void> deleteRecommendedPost(@PathVariable("keywordId") final Long keywordId,
@PathVariable("recommendedId") final Long recommendedId) {
recommendedPostService.delete(recommendedId);
return ResponseEntity.noContent().build();
}
Expand Down

0 comments on commit b34e979

Please sign in to comment.