Skip to content

Commit f3a8d85

Browse files
committed
add: BoardDto into viewCount field
1 parent 14f936e commit f3a8d85

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/kotlin/gogo/gogostage/domain/community/root/application/dto/CommunityDto.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ data class BoardDto(
3535
val gameCategory: GameCategory,
3636
val title: String,
3737
val likeCount: Int,
38+
val viewCount: Int,
3839
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss")
3940
val createdAt: LocalDateTime,
4041
val stageType: StageType,

src/main/kotlin/gogo/gogostage/domain/community/root/persistence/CommunityCustomRepositoryImpl.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class CommunityCustomRepositoryImpl(
5858
createdAt = board.createdAt,
5959
stageType = board.community.stage.type,
6060
commentCount = board.commentCount,
61+
viewCount = board.viewCount,
6162
)
6263
}.toList()
6364

0 commit comments

Comments
 (0)