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()