Skip to content

Commit

Permalink
✏️ Add buyer to Article
Browse files Browse the repository at this point in the history
  • Loading branch information
wonseok committed Feb 1, 2025
1 parent ddcee3b commit ad7dd36
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import java.time.Instant
data class Article(
val id: Long,
val seller: User,
val buyer: User?,
val title: String,
val content: String,
val tag: String,
Expand All @@ -24,6 +25,7 @@ data class Article(
return Article(
id = entity.id!!,
seller = User.fromEntity(entity.seller),
buyer = entity.buyer?.let { User.fromEntity(it) },
title = entity.title,
content = entity.content,
tag = entity.tag,
Expand Down

0 comments on commit ad7dd36

Please sign in to comment.