From f3a8d854a399c4e2edd3bb8f2ed968c09ae4de34 Mon Sep 17 00:00:00 2001 From: Umjiseung <127853946+Umjiseung@users.noreply.github.com> Date: Mon, 28 Apr 2025 22:23:38 +0900 Subject: [PATCH] add: BoardDto into viewCount field --- .../domain/community/root/application/dto/CommunityDto.kt | 1 + .../community/root/persistence/CommunityCustomRepositoryImpl.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/kotlin/gogo/gogostage/domain/community/root/application/dto/CommunityDto.kt b/src/main/kotlin/gogo/gogostage/domain/community/root/application/dto/CommunityDto.kt index b649cbc..f23c290 100644 --- a/src/main/kotlin/gogo/gogostage/domain/community/root/application/dto/CommunityDto.kt +++ b/src/main/kotlin/gogo/gogostage/domain/community/root/application/dto/CommunityDto.kt @@ -35,6 +35,7 @@ data class BoardDto( val gameCategory: GameCategory, val title: String, val likeCount: Int, + val viewCount: Int, @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss") val createdAt: LocalDateTime, val stageType: StageType, diff --git a/src/main/kotlin/gogo/gogostage/domain/community/root/persistence/CommunityCustomRepositoryImpl.kt b/src/main/kotlin/gogo/gogostage/domain/community/root/persistence/CommunityCustomRepositoryImpl.kt index c0a9565..7c053ed 100644 --- a/src/main/kotlin/gogo/gogostage/domain/community/root/persistence/CommunityCustomRepositoryImpl.kt +++ b/src/main/kotlin/gogo/gogostage/domain/community/root/persistence/CommunityCustomRepositoryImpl.kt @@ -58,6 +58,7 @@ class CommunityCustomRepositoryImpl( createdAt = board.createdAt, stageType = board.community.stage.type, commentCount = board.commentCount, + viewCount = board.viewCount, ) }.toList()