From 27dd2893bda0f2f4cdbc8a912af79d5f253f045d Mon Sep 17 00:00:00 2001 From: "woo-jin.shin" Date: Sun, 14 Nov 2021 00:04:02 +0900 Subject: [PATCH] [PPN-9] Add menuName in board name --- .../support/dto/code/PpomppuBoardName.java | 58 +++++++++---------- 1 file changed, 27 insertions(+), 31 deletions(-) diff --git a/support/src/main/java/com/myoa/engineering/crawl/ppomppu/support/dto/code/PpomppuBoardName.java b/support/src/main/java/com/myoa/engineering/crawl/ppomppu/support/dto/code/PpomppuBoardName.java index 44f1f0c..1fad0b9 100644 --- a/support/src/main/java/com/myoa/engineering/crawl/ppomppu/support/dto/code/PpomppuBoardName.java +++ b/support/src/main/java/com/myoa/engineering/crawl/ppomppu/support/dto/code/PpomppuBoardName.java @@ -1,7 +1,7 @@ package com.myoa.engineering.crawl.ppomppu.support.dto.code; +import lombok.AllArgsConstructor; import lombok.Getter; -import lombok.NoArgsConstructor; /** * PpomppuBoardName @@ -10,42 +10,38 @@ import lombok.NoArgsConstructor; * @since 2021-09-05 */ @Getter -@NoArgsConstructor +@AllArgsConstructor public enum PpomppuBoardName { - PPOMPPU_DOMESTIC_ALL("zboard/zboard.php?id=ppomppu", true), - PPOMPPU_DOMESTIC_ETC("zboard/zboard.php?id=ppomppu&category=1", true), - PPOMPPU_DOMESTIC_COMPUTER("zboard/zboard.php?id=ppomppu&category=4", true), - PPOMPPU_DOMESTIC_DIGITAL("zboard/zboard.php?id=ppomppu&category=5", true), - PPOMPPU_DOMESTIC_FOOD("zboard/zboard.php?id=ppomppu&category=6", true), - PPOMPPU_DOMESTIC_BOOK("zboard/zboard.php?id=ppomppu&category=8", true), - PPOMPPU_DOMESTIC_APPLIANCES("zboard/zboard.php?id=ppomppu&category=9", true), - PPOMPPU_DOMESTIC_PARENTING("zboard/zboard.php?id=ppomppu&category=10", true), - PPOMPPU_DOMESTIC_GIFTCARD("zboard/zboard.php?id=ppomppu&category=11", true), - PPOMPPU_DOMESTIC_CLOTHES("zboard/zboard.php?id=ppomppu&category=12", true), - PPOMPPU_DOMESTIC_COSMETIC("zboard/zboard.php?id=ppomppu&category=13", true), - PPOMPPU_DOMESTIC_OUTDOOR("zboard/zboard.php?id=ppomppu&category=15", true), - PPOMPPU_OVERSEA_ALL("zboard/zboard.php?id=ppomppu4", true), - PPOMPPU_OVERSEA_ETC("zboard/zboard.php?id=ppomppu4&category=1", true), - PPOMPPU_OVERSEA_APPLIANCES("zboard/zboard.php?id=ppomppu4&category=7", true), - PPOMPPU_OVERSEA_TVAV("zboard/zboard.php?id=ppomppu4&category=8", true), - PPOMPPU_OVERSEA_COMPUTER("zboard/zboard.php?id=ppomppu4&category=3", true), - PPOMPPU_OVERSEA_DIGITAL("zboard/zboard.php?id=ppomppu4&category=4", true), - PPOMPPU_OVERSEA_MOBILEACCESSORY("zboard/zboard.php?id=ppomppu4&category=9", true), - PPOMPPU_OVERSEA_CLOTHES("zboard/zboard.php?id=ppomppu4&category=5", true), - PPOMPPU_OVERSEA_WATCH("zboard/zboard.php?id=ppomppu4&category=2", true), - PPOMPPU_OVERSEA_SHOES("zboard/zboard.php?id=ppomppu4&category=11", true), - PPOMPPU_OVERSEA_FOOD("zboard/zboard.php?id=ppomppu4&category=10", true), - PPOMPPU_OVERSEA_PARENTING("zboard/zboard.php?id=ppomppu4&category=6", true), + PPOMPPU_DOMESTIC_ALL("zboard/zboard.php?id=ppomppu", "전체", true), + PPOMPPU_DOMESTIC_ETC("zboard/zboard.php?id=ppomppu&category=1", "기타", true), + PPOMPPU_DOMESTIC_COMPUTER("zboard/zboard.php?id=ppomppu&category=4", "컴퓨터", true), + PPOMPPU_DOMESTIC_DIGITAL("zboard/zboard.php?id=ppomppu&category=5", "디지털", true), + PPOMPPU_DOMESTIC_FOOD("zboard/zboard.php?id=ppomppu&category=6", "식품/건강", true), + PPOMPPU_DOMESTIC_BOOK("zboard/zboard.php?id=ppomppu&category=8", "서적", true), + PPOMPPU_DOMESTIC_APPLIANCES("zboard/zboard.php?id=ppomppu&category=9", "가전/가구", true), + PPOMPPU_DOMESTIC_PARENTING("zboard/zboard.php?id=ppomppu&category=10", "육아", true), + PPOMPPU_DOMESTIC_GIFTCARD("zboard/zboard.php?id=ppomppu&category=11", "상품권", true), + PPOMPPU_DOMESTIC_CLOTHES("zboard/zboard.php?id=ppomppu&category=12", "의류/잡화", true), + PPOMPPU_DOMESTIC_COSMETIC("zboard/zboard.php?id=ppomppu&category=13", "화장품", true), + PPOMPPU_DOMESTIC_OUTDOOR("zboard/zboard.php?id=ppomppu&category=15", "등산/캠핑", true), + PPOMPPU_OVERSEA_ALL("zboard/zboard.php?id=ppomppu4", "전체", true), + PPOMPPU_OVERSEA_ETC("zboard/zboard.php?id=ppomppu4&category=1", "기타", true), + PPOMPPU_OVERSEA_APPLIANCES("zboard/zboard.php?id=ppomppu4&category=7", "가전", true), + PPOMPPU_OVERSEA_TVAV("zboard/zboard.php?id=ppomppu4&category=8", "TV/영상", true), + PPOMPPU_OVERSEA_COMPUTER("zboard/zboard.php?id=ppomppu4&category=3", "컴퓨터", true), + PPOMPPU_OVERSEA_DIGITAL("zboard/zboard.php?id=ppomppu4&category=4", "디지털", true), + PPOMPPU_OVERSEA_MOBILEACCESSORY("zboard/zboard.php?id=ppomppu4&category=9", "액세서리", true), + PPOMPPU_OVERSEA_CLOTHES("zboard/zboard.php?id=ppomppu4&category=5", "의류/잡화", true), + PPOMPPU_OVERSEA_WATCH("zboard/zboard.php?id=ppomppu4&category=2", "시계", true), + PPOMPPU_OVERSEA_SHOES("zboard/zboard.php?id=ppomppu4&category=11", "신발", true), + PPOMPPU_OVERSEA_FOOD("zboard/zboard.php?id=ppomppu4&category=10", "식품/건강", true), + PPOMPPU_OVERSEA_PARENTING("zboard/zboard.php?id=ppomppu4&category=6", "육아", true), ; private String resourcePath; + private String menuName; private boolean crawlWithDefaultTimer; - PpomppuBoardName(String boardPath, boolean crawlWithDefaultTimer) { - this.resourcePath = boardPath; - this.crawlWithDefaultTimer = crawlWithDefaultTimer; - } - public static final String PPOMPPU_URL = "https://www.ppomppu.co.kr/"; public static String ofViewPageUrl(String articleUrl) {