Skip to content

Commit

Permalink
[feat] #39 신고 컨트롤러 요청 final 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
OJOJIN committed Jan 13, 2024
1 parent 1c34c98 commit 54571fd
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ public class ReportController {
private final ReportService reportService;

@PostMapping("/post")
public ResponseEntity<SuccessResponse<?>> reportPost(@UserId Long userId,
@RequestBody @Valid PostReportRequestDto requestDto) {
public ResponseEntity<SuccessResponse<?>> reportPost(@UserId final Long userId,
@RequestBody @Valid final PostReportRequestDto requestDto) {
reportService.reportPost(userId, requestDto);
return SuccessResponse.created(null);
}

@PostMapping("/chat-room")
public ResponseEntity<SuccessResponse<?>> reportChatRoom(@UserId Long userId,
@RequestBody @Valid ChatRoomReportRequestDto requestDto) {
public ResponseEntity<SuccessResponse<?>> reportChatRoom(@UserId final Long userId,
@RequestBody @Valid final ChatRoomReportRequestDto requestDto) {
reportService.reportChatRoom(userId, requestDto);
return SuccessResponse.created(null);
}
Expand Down

0 comments on commit 54571fd

Please sign in to comment.