diff --git a/Briefing-Api/src/main/java/com/example/briefingapi/briefing/business/BriefingMapper.java b/Briefing-Api/src/main/java/com/example/briefingapi/briefing/business/BriefingMapper.java index 3ebcbcc..a4cb12d 100644 --- a/Briefing-Api/src/main/java/com/example/briefingapi/briefing/business/BriefingMapper.java +++ b/Briefing-Api/src/main/java/com/example/briefingapi/briefing/business/BriefingMapper.java @@ -23,6 +23,7 @@ public static BriefingResponseDTO.BriefingPreviewDTOV2 toBriefingPreviewDTOV2( .title(briefing.getTitle()) .subtitle(briefing.getSubtitle()) .scrapCount(briefing.getScrapCount()) + .viewCount(briefing.getViewCount()) .build(); } diff --git a/Briefing-Api/src/main/java/com/example/briefingapi/briefing/presentation/dto/BriefingResponseDTO.java b/Briefing-Api/src/main/java/com/example/briefingapi/briefing/presentation/dto/BriefingResponseDTO.java index 18f4e19..924695b 100644 --- a/Briefing-Api/src/main/java/com/example/briefingapi/briefing/presentation/dto/BriefingResponseDTO.java +++ b/Briefing-Api/src/main/java/com/example/briefingapi/briefing/presentation/dto/BriefingResponseDTO.java @@ -35,6 +35,7 @@ public static class BriefingPreviewDTOV2 { String title; String subtitle; @Builder.Default Integer scrapCount = 0; + @Builder.Default Integer viewCount = 0; } @Builder