From 97c03c447f8b7332afd4a361bfb24e68904e6656 Mon Sep 17 00:00:00 2001 From: EunbeenDev Date: Mon, 19 Aug 2024 17:59:46 +0900 Subject: [PATCH] =?UTF-8?q?[FEAT]=20=ED=8C=A8=EC=85=98=20=EC=95=84?= =?UTF-8?q?=EC=9D=B4=ED=85=9C=20=EC=82=AD=EC=A0=9C=EB=A5=BC=20=EC=9C=84?= =?UTF-8?q?=ED=95=9C=20enum=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/noplanb/domain/item/application/ItemService.java | 2 +- .../java/com/noplanb/domain/item_image/domain/ItemType.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/noplanb/domain/item/application/ItemService.java b/src/main/java/com/noplanb/domain/item/application/ItemService.java index a05c091..73b8706 100644 --- a/src/main/java/com/noplanb/domain/item/application/ItemService.java +++ b/src/main/java/com/noplanb/domain/item/application/ItemService.java @@ -66,7 +66,7 @@ public ResponseEntity getCategoryItemList(UserPrincipal userPrincipal, String case "fashion": // item_type이 HEAD, GLASSES, CLOTHES인 item만 필터링 itemList = items.stream() - .filter(item -> item.getItemImage().getItemType().equals(HEAD) || item.getItemImage().getItemType().equals(GLASSES) || item.getItemImage().getItemType().equals(CLOTHES)) + .filter(item -> item.getItemImage().getItemType().equals(HEAD) || item.getItemImage().getItemType().equals(GLASSES) || item.getItemImage().getItemType().equals(CLOTHES) || item.getItemImage().getItemType().equals(ETC)) .toList(); break; diff --git a/src/main/java/com/noplanb/domain/item_image/domain/ItemType.java b/src/main/java/com/noplanb/domain/item_image/domain/ItemType.java index b30db74..b4eb3c3 100644 --- a/src/main/java/com/noplanb/domain/item_image/domain/ItemType.java +++ b/src/main/java/com/noplanb/domain/item_image/domain/ItemType.java @@ -12,6 +12,7 @@ public enum ItemType { HEAD, // 모자 GLASSES, // 안경 CLOTHES, // 옷 + ETC, // 기타 // 카테고리 - 배경 BACKGROUND //배경