Skip to content

Commit b0d1f46

Browse files
committed
add: imageUrl field in logic
1 parent 97383f4 commit b0d1f46

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main/kotlin/gogo/gogostage/domain/community/board/application/BoardProcessor.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ class BoardProcessor(
2626
commentCount = 0,
2727
likeCount = 0,
2828
isFiltered = false,
29-
createdAt = LocalDateTime.now()
29+
createdAt = LocalDateTime.now(),
30+
imageUrl = writeCommunityBoardDto.imageUrl,
3031
)
3132

3233
return boardRepository.save(board)

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ data class WriteCommunityBoardDto(
1515
@Size(max = 1000)
1616
val content: String,
1717
@NotNull
18-
val gameCategory: GameCategory
18+
val gameCategory: GameCategory,
19+
val imageUrl: String,
1920
)
2021

2122
data class GetCommunityBoardResDto(

0 commit comments

Comments
 (0)