From 0d778f233df873ed772dec121db3b1cd05c7dee0 Mon Sep 17 00:00:00 2001 From: wjdtkdgns Date: Sun, 13 Aug 2023 21:23:15 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20archiving=20response=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20#93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../archiving/model/dto/response/ArchivingResponse.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Api/src/main/java/allchive/server/api/archiving/model/dto/response/ArchivingResponse.java b/Api/src/main/java/allchive/server/api/archiving/model/dto/response/ArchivingResponse.java index c63ac0d1..359d6cf8 100644 --- a/Api/src/main/java/allchive/server/api/archiving/model/dto/response/ArchivingResponse.java +++ b/Api/src/main/java/allchive/server/api/archiving/model/dto/response/ArchivingResponse.java @@ -44,6 +44,9 @@ public class ArchivingResponse { @Schema(description = "아카이빙 스크랩/고정 여부, true == 스크랩/고정됨") private boolean markStatus; + @Schema(description = "아카이빙 공개 여부") + private boolean publicStatus; + @Builder private ArchivingResponse( Long archivingId, @@ -54,7 +57,8 @@ private ArchivingResponse( Long imgCnt, Long linkCnt, Long scrapCnt, - boolean markStatus) { + boolean markStatus, + boolean publicStatus) { this.archivingId = archivingId; this.title = title; this.imageUrl = imageUrl; @@ -64,6 +68,7 @@ private ArchivingResponse( this.linkCnt = linkCnt; this.scrapCnt = scrapCnt; this.markStatus = markStatus; + this.publicStatus = publicStatus; } public static ArchivingResponse of(Archiving archiving, boolean markStatus) { @@ -77,6 +82,7 @@ public static ArchivingResponse of(Archiving archiving, boolean markStatus) { .linkCnt(archiving.getLinkCnt()) .scrapCnt(archiving.getScrapCnt()) .markStatus(markStatus) + .publicStatus(archiving.getPublicStatus()) .build(); } }