From 648deb54c39fdbfe7a137bc53be785bc7e08395e Mon Sep 17 00:00:00 2001 From: jwaminseok Date: Mon, 27 May 2024 00:18:08 +0900 Subject: [PATCH] =?UTF-8?q?refacotr:requestpart=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/diary/controller/DiaryController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/kau/kkoolbeeServer/domain/diary/controller/DiaryController.java b/src/main/java/org/kau/kkoolbeeServer/domain/diary/controller/DiaryController.java index 4205a35..6460d37 100644 --- a/src/main/java/org/kau/kkoolbeeServer/domain/diary/controller/DiaryController.java +++ b/src/main/java/org/kau/kkoolbeeServer/domain/diary/controller/DiaryController.java @@ -311,9 +311,9 @@ public ResponseEntity imageCreate(@RequestHeader("Authorization") String auth } @GetMapping("/api/diary/share") - public ResponseEntity diaryShare(@RequestBody DiaryShareRequestDto requestDto){ + public ResponseEntity diaryShare(@RequestParam("diaryId") Long diaryId){ - return ResponseEntity.ok().body(ApiResponse.success(SuccessType.PROCESS_SUCCESSED,diaryService.diaryShare(requestDto.getDiaryId()))); + return ResponseEntity.ok().body(ApiResponse.success(SuccessType.PROCESS_SUCCESSED,diaryService.diaryShare(diaryId))); }