Skip to content

Commit

Permalink
refactor: 나눔 게시자 정보 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiwon-cho committed Feb 24, 2024
1 parent 1470f35 commit 33f84d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/kotlin/mara/server/domain/share/ShareDto.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package mara.server.domain.share

import mara.server.domain.user.ProfileImage
import org.springframework.data.domain.Page
import java.time.LocalDate
import java.time.LocalTime
Expand Down Expand Up @@ -36,6 +37,8 @@ data class UpdateShareStatusRequest(
)

data class ShareResponse(
val userName: String,
val profileImage: ProfileImage,
val shareId: Long,
val title: String,
val itemName: String,
Expand All @@ -50,6 +53,8 @@ data class ShareResponse(
val thumbNailImage: String
) {
constructor(share: Share) : this(
userName = share.user.nickname,
profileImage = share.user.profileImage,
shareId = share.id,
title = share.title,
content = share.content,
Expand Down

0 comments on commit 33f84d5

Please sign in to comment.