Skip to content

Commit 6147971

Browse files
committed
refactor: 게시글 조회시 사용자 ID 반환 추가
1 parent 113fd36 commit 6147971

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • nmnb-application/src/main/kotlin/nmnb/application/domain/post/service/dto/response

nmnb-application/src/main/kotlin/nmnb/application/domain/post/service/dto/response/PostPageResponse.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ data class PostPageResponse(
2020
}
2121

2222
data class PostInfoResponse(
23+
val userId: String?,
2324
val postId: Long?,
2425
val url: String,
2526
val thumbnailUrl: String,
@@ -29,6 +30,7 @@ data class PostInfoResponse(
2930
companion object {
3031
fun of(post: Post): PostInfoResponse {
3132
return PostInfoResponse(
33+
userId = post.user.id,
3234
postId = post.id,
3335
url = post.url,
3436
thumbnailUrl = post.thumbnailUrl,

0 commit comments

Comments
 (0)