Skip to content

Commit

Permalink
feat: add positionTitle and companyName
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeqwaszx committed Jan 26, 2025
1 parent c444320 commit 6904707
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import java.time.LocalDateTime

data class Resume(
val id: String,
val postId: String?,
val positionTitle: String? = null,
val companyName: String? = null,
val author: User?,
val content: String,
val phoneNumber: String,
Expand All @@ -19,7 +20,8 @@ data class Resume(
): Resume =
Resume(
id = resumeEntity.id,
postId = resumeEntity.position?.id,
positionTitle = resumeEntity.position?.title,
companyName = resumeEntity.position?.company?.companyName,
author = if (includeAuthor) User.fromEntity(resumeEntity.user, includeResumes = false) else null,
content = resumeEntity.content ?: "",
createdAt = resumeEntity.createdAt,
Expand Down

0 comments on commit 6904707

Please sign in to comment.