From 219a2503769f50951f649fd09ff3898af24a0191 Mon Sep 17 00:00:00 2001 From: ls-rain Date: Tue, 14 Oct 2025 22:38:29 +0900 Subject: [PATCH] [feat/#173] Refactoring Report Community API --- .../com/example/helloworldmvc/converter/ReportConverter.java | 1 + .../example/helloworldmvc/web/controller/ReportController.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/example/helloworldmvc/converter/ReportConverter.java b/src/main/java/com/example/helloworldmvc/converter/ReportConverter.java index 20daef6..9a8380c 100644 --- a/src/main/java/com/example/helloworldmvc/converter/ReportConverter.java +++ b/src/main/java/com/example/helloworldmvc/converter/ReportConverter.java @@ -9,6 +9,7 @@ public class ReportConverter { public static CommunityReport toReport(Long communityId, ReportStatus reportStatus) { return CommunityReport.builder() .reportStatus(reportStatus) + .communityId(communityId) .build(); } public static ReportResDTO.ReportRes toReportResDTO(CommunityReport communityReport) { diff --git a/src/main/java/com/example/helloworldmvc/web/controller/ReportController.java b/src/main/java/com/example/helloworldmvc/web/controller/ReportController.java index 625375f..3225c3c 100644 --- a/src/main/java/com/example/helloworldmvc/web/controller/ReportController.java +++ b/src/main/java/com/example/helloworldmvc/web/controller/ReportController.java @@ -32,7 +32,7 @@ public class ReportController { }) @Parameters({ @Parameter(name = "Authorization", description = "RequestHeader - 로그인한 사용자 토큰"), - @Parameter(name = "community_id ", description = "PathVariable - 커뮤니티 글 아이디"), + @Parameter(name = "community_id", description = "PathVariable - 커뮤니티 글 아이디"), }) public ApiResponse createCommunityReport(@RequestHeader(name = "Authorization") String accessToken, @PathVariable(name = "community_id") Long targetId){