Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix/#279] 아티클 main image url 필드 응답 추가 #280

Merged
merged 2 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class ReadArticleUseCase(
name = writerRecord.name,
url = writerRecord.url
),
mainImageUrl = articleRecord.mainImageURL,
title = articleRecord.title,
content = articleRecord.content,
problemIds = problemIds.problemIds,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class ReadArticlesUseCase(
name = a.writerName,
url = a.writerImgUrl
),
mainImageUrl = a.mainImageUrl,
title = a.articleTitle,
content = a.content,
problemIds = emptyList(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import java.time.LocalDateTime
data class ReadArticleUseCaseOut(
val id: Long,
val writer: WriterDetail,
val mainImageUrl: URL,
val title: String,
val content: String,
val problemIds: List<Long>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class ArticleController(
useCaseOut.writer.name,
useCaseOut.writer.url
),
mainImageUrl = useCaseOut.mainImageUrl,
content = useCaseOut.content,
problemIds = useCaseOut.problemIds,
category = useCaseOut.category,
Expand Down Expand Up @@ -75,6 +76,7 @@ class ArticleController(
a.writer.name,
a.writer.url
),
mainImageUrl = a.mainImageUrl,
content = a.content,
problemIds = a.problemIds,
category = a.category,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import java.time.LocalDateTime
data class ReadArticleResponse(
val id: Long,
val writer: WriterInfo,
val mainImageUrl: URL,
val title: String,
val content: String,
val problemIds: List<Long>,
Expand Down
Loading