From 597b1b24f1c588122767478aade07fd88a3a7105 Mon Sep 17 00:00:00 2001 From: kyu-hyun Date: Thu, 16 Jan 2025 16:18:43 +0900 Subject: [PATCH] fix --- .../application/rest/InsightController.java | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/insight-service/insight-application/src/main/java/com/project/imdang/insight/service/application/rest/InsightController.java b/insight-service/insight-application/src/main/java/com/project/imdang/insight/service/application/rest/InsightController.java index fa4d8c8..d945c2b 100644 --- a/insight-service/insight-application/src/main/java/com/project/imdang/insight/service/application/rest/InsightController.java +++ b/insight-service/insight-application/src/main/java/com/project/imdang/insight/service/application/rest/InsightController.java @@ -75,7 +75,7 @@ public ResponseEntity> listByApartmentComplex( @ApiResponse(responseCode = "200", description = "인사이트가 조회 되었습니다.", content = @Content(schema = @Schema(implementation = DeleteInsightResponse.class))) @GetMapping("/detail") public ResponseEntity detail(@AuthenticationPrincipal UUID memberId, - @RequestParam(name = "insightId") UUID insightId) { + @RequestParam(name = "insightId") UUID insightId) { DetailInsightQuery detailInsightQuery = new DetailInsightQuery(insightId, memberId); DetailInsightResponse detailInsightResponse = insightApplicationService.detailInsight(detailInsightQuery); log.info("Returning detail of insight[id: {}].", detailInsightResponse.getInsightId()); @@ -85,11 +85,11 @@ public ResponseEntity detail(@AuthenticationPrincipal UUI // 프론트에서 작업 /* * @Operation(description = "인사이트 평가 API") - * + * * @ApiResponse(responseCode = "200", description = "인사이트 평가가 완료되었습니다.", * content = @Content(schema = @Schema(implementation = * ValidateAndEvaluateInsightResponse.class))) - * + * * @PostMapping("/validate") * public ResponseEntity * validateAndEvaluateInsight(@RequestBody ValidateAndEvaluateInsightCommand @@ -112,7 +112,7 @@ public ResponseEntity createInsight(@AuthenticationPrinci @RequestPart("createInsightCommand") @Valid CreateInsightCommand createInsightCommand, @RequestPart("mainImage") MultipartFile mainImage) { createInsightCommand.setMemberId(memberId); - + CreateInsightResponse createInsightResponse = insightApplicationService.createInsight(createInsightCommand); log.info("Insight[id: {}] is created.", createInsightResponse.getInsightId()); @@ -133,7 +133,7 @@ public ResponseEntity updateInsight(@AuthenticationPrinci return ResponseEntity.ok(updateInsightResponse); } - + @Operation(description = "인사이트 삭제 API") @ApiResponse(responseCode = "200", description = "인사이트가 삭제되었습니다.", content = @Content(schema = @Schema(implementation = DeleteInsightResponse.class))) @@ -143,10 +143,11 @@ public ResponseEntity deleteInsight(@AuthenticationPrinci DeleteInsightResponse deleteInsightResponse = insightApplicationService.deleteInsight(deleteInsightCommand); log.info("Insight[id: {}] is deleted.", deleteInsightResponse.getInsightId()); return ResponseEntity.ok(deleteInsightResponse); - } + } + @Operation(description = "인사이트 추천 API") @ApiResponse(responseCode = "200", description = "인사이트가 추천되었습니다.", - + content = @Content(schema = @Schema(implementation = RecommendInsightResponse.class))) @PostMapping("/recommend") public ResponseEntity recommendInsight(@AuthenticationPrincipal UUID memberId, @RequestBody RecommendInsightCommand recommendInsightCommand) { @@ -154,18 +155,20 @@ public ResponseEntity recommendInsight(@Authentication RecommendInsightResponse recommendInsightResponse = insightApplicationService.recommendInsight(recommendInsightCommand); log.info("Insight[id: {}] is recommended.", recommendInsightResponse.getInsightId()); return ResponseEntity.ok(recommendInsightResponse); - } + } + @Operation(description = "인사이트 신고 API") @ApiResponse(responseCode = "200", description = "인사이트가 신고되었습니다.", - + content = @Content(schema = @Schema(implementation = AccuseInsightResponse.class))) @PostMapping("/accuse") - + public ResponseEntity accuseInsight(@AuthenticationPrincipal UUID memberId, @RequestBody AccuseInsightCommand accuseInsightCommand) { accuseInsightCommand.setAccuseMemberId(memberId); AccuseInsightResponse accuseInsightResponse = insightApplicationService.accuseInsight(accuseInsightCommand); log.info("Insight[id: {}] is accused.", accuseInsightResponse.getInsightId()); return ResponseEntity.ok(accuseInsightResponse); - } + } +} \ No newline at end of file