diff --git a/Api/src/main/java/allchive/server/api/archiving/model/dto/response/ArchivingTitleResponse.java b/Api/src/main/java/allchive/server/api/archiving/model/dto/response/ArchivingTitleResponse.java index 8f065bfc..7ba51550 100644 --- a/Api/src/main/java/allchive/server/api/archiving/model/dto/response/ArchivingTitleResponse.java +++ b/Api/src/main/java/allchive/server/api/archiving/model/dto/response/ArchivingTitleResponse.java @@ -12,85 +12,93 @@ @Getter @JsonNaming(UpperCaseStrategy.class) public class ArchivingTitleResponse { - private List FOOD; - private List LIFE; - private List HOME_LIVING; - private List SHOPPING; - private List SPORT; - private List SELF_IMPROVEMENT; - private List TECH; - private List DESIGN; - private List TREND; + private List food; + private List life; + private List home_living; + private List shopping; + private List sport; + private List self_improvement; + private List tech; + private List design; + private List trend; + private List etc; @Builder private ArchivingTitleResponse( - List FOOD, - List LIFE, - List HOME_LIVING, - List SHOPPING, - List SPORT, - List SELF_IMPROVEMENT, - List TECH, - List DESIGN, - List TREND) { - this.FOOD = FOOD; - this.LIFE = LIFE; - this.HOME_LIVING = HOME_LIVING; - this.SHOPPING = SHOPPING; - this.SPORT = SPORT; - this.SELF_IMPROVEMENT = SELF_IMPROVEMENT; - this.TECH = TECH; - this.DESIGN = DESIGN; - this.TREND = TREND; + List food, + List life, + List home_living, + List shopping, + List sport, + List self_improvement, + List tech, + List design, + List trend, + List etc) { + this.food = food; + this.life = life; + this.home_living = home_living; + this.shopping = shopping; + this.sport = sport; + this.self_improvement = self_improvement; + this.tech = tech; + this.design = design; + this.trend = trend; + this.etc = etc; } public static ArchivingTitleResponse init() { return ArchivingTitleResponse.builder() - .FOOD(new ArrayList<>()) - .LIFE(new ArrayList<>()) - .HOME_LIVING(new ArrayList<>()) - .SHOPPING(new ArrayList<>()) - .SPORT(new ArrayList<>()) - .SELF_IMPROVEMENT(new ArrayList<>()) - .TECH(new ArrayList<>()) - .DESIGN(new ArrayList<>()) - .TREND(new ArrayList<>()) + .food(new ArrayList<>()) + .life(new ArrayList<>()) + .home_living(new ArrayList<>()) + .shopping(new ArrayList<>()) + .sport(new ArrayList<>()) + .self_improvement(new ArrayList<>()) + .tech(new ArrayList<>()) + .design(new ArrayList<>()) + .trend(new ArrayList<>()) + .etc(new ArrayList<>()) .build(); } public void addFood(TitleContentCntVo vo) { - this.FOOD.add(vo); + this.food.add(vo); } public void addLife(TitleContentCntVo vo) { - this.LIFE.add(vo); + this.life.add(vo); } public void addHomeLiving(TitleContentCntVo vo) { - this.HOME_LIVING.add(vo); + this.home_living.add(vo); } public void addShopping(TitleContentCntVo vo) { - this.SHOPPING.add(vo); + this.shopping.add(vo); } public void addSport(TitleContentCntVo vo) { - this.SPORT.add(vo); + this.sport.add(vo); } public void addSelfImprovement(TitleContentCntVo vo) { - this.SELF_IMPROVEMENT.add(vo); + this.self_improvement.add(vo); } public void addTech(TitleContentCntVo vo) { - this.TECH.add(vo); + this.tech.add(vo); } public void addDesign(TitleContentCntVo vo) { - this.DESIGN.add(vo); + this.design.add(vo); } public void addTrend(TitleContentCntVo vo) { - this.TREND.add(vo); + this.trend.add(vo); + } + + public void addEtc(TitleContentCntVo vo) { + this.etc.add(vo); } } diff --git a/Api/src/main/java/allchive/server/api/archiving/model/mapper/ArchivingMapper.java b/Api/src/main/java/allchive/server/api/archiving/model/mapper/ArchivingMapper.java index 678cb2ee..7ad114d4 100644 --- a/Api/src/main/java/allchive/server/api/archiving/model/mapper/ArchivingMapper.java +++ b/Api/src/main/java/allchive/server/api/archiving/model/mapper/ArchivingMapper.java @@ -36,6 +36,7 @@ public ArchivingTitleResponse toArchivingTitleResponse(List archiving case TECH -> response.addTech(TitleContentCntVo.from(archiving)); case DESIGN -> response.addDesign(TitleContentCntVo.from(archiving)); case TREND -> response.addTrend(TitleContentCntVo.from(archiving)); + case ETC -> response.addEtc(TitleContentCntVo.from(archiving)); } }); return response;