Skip to content

Commit cf6ec16

Browse files
authored
Merge pull request #113 from NMNB-Team/v1/refactor/#112-return-user-id
[refactor] 게시글 조회시 사용자 ID 반환 추가
2 parents 113fd36 + 6147971 commit cf6ec16

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)