From 54571fdc5f8dc8ee398e5cbd0621627905d57a67 Mon Sep 17 00:00:00 2001 From: OJOJIN Date: Sat, 13 Jan 2024 17:36:16 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[feat]=20#39=20=EC=8B=A0=EA=B3=A0=20?= =?UTF-8?q?=EC=BB=A8=ED=8A=B8=EB=A1=A4=EB=9F=AC=20=EC=9A=94=EC=B2=AD=20fin?= =?UTF-8?q?al=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/report/controller/ReportController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/gachon/checkmate/domain/report/controller/ReportController.java b/src/main/java/org/gachon/checkmate/domain/report/controller/ReportController.java index 39584cb..1b77445 100644 --- a/src/main/java/org/gachon/checkmate/domain/report/controller/ReportController.java +++ b/src/main/java/org/gachon/checkmate/domain/report/controller/ReportController.java @@ -21,15 +21,15 @@ public class ReportController { private final ReportService reportService; @PostMapping("/post") - public ResponseEntity> reportPost(@UserId Long userId, - @RequestBody @Valid PostReportRequestDto requestDto) { + public ResponseEntity> reportPost(@UserId final Long userId, + @RequestBody @Valid final PostReportRequestDto requestDto) { reportService.reportPost(userId, requestDto); return SuccessResponse.created(null); } @PostMapping("/chat-room") - public ResponseEntity> reportChatRoom(@UserId Long userId, - @RequestBody @Valid ChatRoomReportRequestDto requestDto) { + public ResponseEntity> reportChatRoom(@UserId final Long userId, + @RequestBody @Valid final ChatRoomReportRequestDto requestDto) { reportService.reportChatRoom(userId, requestDto); return SuccessResponse.created(null); } From 0fee7f93c24c452884c0c54d3dc604398b5c21ed Mon Sep 17 00:00:00 2001 From: OJOJIN Date: Sun, 14 Jan 2024 00:13:41 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[feat]=20#42=20ReportController=20=EC=A0=95?= =?UTF-8?q?=EB=A0=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../checkmate/domain/report/controller/ReportController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gachon/checkmate/domain/report/controller/ReportController.java b/src/main/java/org/gachon/checkmate/domain/report/controller/ReportController.java index 1b77445..6992b69 100644 --- a/src/main/java/org/gachon/checkmate/domain/report/controller/ReportController.java +++ b/src/main/java/org/gachon/checkmate/domain/report/controller/ReportController.java @@ -18,6 +18,7 @@ @RequestMapping("/api/report") @RestController public class ReportController { + private final ReportService reportService; @PostMapping("/post") @@ -29,7 +30,7 @@ public ResponseEntity> reportPost(@UserId final Long userId, @PostMapping("/chat-room") public ResponseEntity> reportChatRoom(@UserId final Long userId, - @RequestBody @Valid final ChatRoomReportRequestDto requestDto) { + @RequestBody @Valid final ChatRoomReportRequestDto requestDto) { reportService.reportChatRoom(userId, requestDto); return SuccessResponse.created(null); }