Skip to content

Commit bfe9a61

Browse files
authored
Merge pull request #172 from team-gogo/fix/community-board-image-url-field-nullable
[community] 게시글 이미지 url 필드 nullable
2 parents f204359 + e5771e6 commit bfe9a61

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/kotlin/gogo/gogostage/domain/community/board/persistence/Board.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Board(
3838
val createdAt: LocalDateTime,
3939

4040
@Column(name = "image_url", length = 800, nullable = true)
41-
val imageUrl: String,
41+
val imageUrl: String?,
4242
) {
4343

4444
fun minusLikeCount() {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ data class WriteCommunityBoardDto(
1616
val content: String,
1717
@NotNull
1818
val gameCategory: GameCategory,
19-
val imageUrl: String,
19+
val imageUrl: String?,
2020
)
2121

2222
data class GetCommunityBoardResDto(
@@ -49,7 +49,7 @@ data class GetCommunityBoardInfoResDto(
4949
val isLiked: Boolean,
5050
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss")
5151
val createdAt: LocalDateTime,
52-
val imageUrl: String,
52+
val imageUrl: String?,
5353
val stage: StageDto,
5454
val commentCount: Int,
5555
val comment: List<CommentDto>

0 commit comments

Comments
 (0)