From 886e2168fca92ef819a15db0cd893661292dbc28 Mon Sep 17 00:00:00 2001 From: Jeongyeon Lee Date: Fri, 23 Feb 2024 14:01:38 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=8B=AC=EC=82=AC=EB=A5=BC=20=EC=98=AC?= =?UTF-8?q?=EB=A6=AC=EA=B8=B0=20=EC=A0=84=EA=B9=8C=EC=A7=80=EB=8A=94=20?= =?UTF-8?q?=ED=99=88=20=ED=99=94=EB=A9=B4=EC=97=90=20=ED=8C=A8=ED=82=A4?= =?UTF-8?q?=EC=9D=98=20=EC=84=A0=EB=AC=BC=EB=B0=95=EC=8A=A4=EA=B0=80=20?= =?UTF-8?q?=EB=9C=A8=EC=A7=80=20=EC=95=8A=EB=8F=84=EB=A1=9D=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20(#192)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 심사를 올리기 전까지는 홈 화면에 패키의 선물박스가 뜨지 않도록 변경 * docs: 화면 이름에 맞도록 Swagger summary 수정 --- .../java/com/dilly/gift/api/GiftBoxController.java | 2 +- .../com/dilly/gift/application/GiftBoxService.java | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/packy-api/src/main/java/com/dilly/gift/api/GiftBoxController.java b/packy-api/src/main/java/com/dilly/gift/api/GiftBoxController.java index 2da47aab..38cb5fbb 100644 --- a/packy-api/src/main/java/com/dilly/gift/api/GiftBoxController.java +++ b/packy-api/src/main/java/com/dilly/gift/api/GiftBoxController.java @@ -145,7 +145,7 @@ public DataResponseDto getKakaoMessageImgUrl( return DataResponseDto.from(giftBoxService.getKakaoMessageImgUrl(giftBoxId)); } - @Operation(summary = "메인화면에 띄울 선물박스 조회") + @Operation(summary = "홈 화면에 띄울 선물박스 조회") @GetMapping("/main") public DataResponseDto getMainGiftBox() { return DataResponseDto.from(giftBoxService.getMainGiftBox()); diff --git a/packy-api/src/main/java/com/dilly/gift/application/GiftBoxService.java b/packy-api/src/main/java/com/dilly/gift/application/GiftBoxService.java index 0acc8338..c0ae7208 100644 --- a/packy-api/src/main/java/com/dilly/gift/application/GiftBoxService.java +++ b/packy-api/src/main/java/com/dilly/gift/application/GiftBoxService.java @@ -338,10 +338,12 @@ public MainGiftBoxResponse getMainGiftBox() { Optional adminGiftBox = adminGiftBoxReader.findByAdminType( AdminType.ONBOARDING); - if (adminGiftBox.isPresent()) { - return MainGiftBoxResponse.from(adminGiftBox.get().getGiftBox()); - } else { - return MainGiftBoxResponse.builder().build(); - } +// if (adminGiftBox.isPresent()) { +// return MainGiftBoxResponse.from(adminGiftBox.get().getGiftBox()); +// } else { +// return MainGiftBoxResponse.builder().build(); +// } + + return MainGiftBoxResponse.builder().build(); } }