Skip to content

Commit

Permalink
[fix] archiving response 변경 #93
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdtkdgns committed Aug 13, 2023
1 parent 62d817b commit 0d778f2
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public class ArchivingResponse {
@Schema(description = "아카이빙 스크랩/고정 여부, true == 스크랩/고정됨")
private boolean markStatus;

@Schema(description = "아카이빙 공개 여부")
private boolean publicStatus;

@Builder
private ArchivingResponse(
Long archivingId,
Expand All @@ -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;
Expand All @@ -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) {
Expand All @@ -77,6 +82,7 @@ public static ArchivingResponse of(Archiving archiving, boolean markStatus) {
.linkCnt(archiving.getLinkCnt())
.scrapCnt(archiving.getScrapCnt())
.markStatus(markStatus)
.publicStatus(archiving.getPublicStatus())
.build();
}
}

0 comments on commit 0d778f2

Please sign in to comment.