Skip to content

Commit

Permalink
Feat: Add description for slide.
Browse files Browse the repository at this point in the history
  • Loading branch information
huGgW committed Sep 19, 2023
1 parent 31e63eb commit 91fe352
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ class MainRepositoryImpl(
id = it.id,
title = it.title,
imageURL = imageURL,
createdAt = it.createdAt
createdAt = it.createdAt,
description = it.plainTextDescription.substring(
0, 100.coerceAtMost(it.plainTextDescription.length)
)
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ data class MainSlideResponse @QueryProjection constructor(
val id: Long,
val title: String,
val imageURL: String?,
val createdAt: LocalDateTime?
val createdAt: LocalDateTime?,
val description: String,
) {

}

0 comments on commit 91fe352

Please sign in to comment.