Skip to content

Commit

Permalink
refactor: 불필요한 응답 필드 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
TaeyeonRoyce committed Jan 26, 2024
1 parent 1273b66 commit 313a2b3
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
package com.petqua.application.announcement

import com.petqua.domain.announcement.Announcement
import java.time.LocalDateTime

data class AnnouncementResponse(
val id: Long,
val title: String,
val linkUrl: String,
val createAt: LocalDateTime,
val updateAt: LocalDateTime,
) {
companion object {
fun from(announcement: Announcement): AnnouncementResponse {
return AnnouncementResponse(
id = announcement.id,
title = announcement.title,
linkUrl = announcement.linkUrl,
createAt = announcement.createAt,
updateAt = announcement.updateAt,
)
}
}
Expand Down

0 comments on commit 313a2b3

Please sign in to comment.