Skip to content

Commit ce2c618

Browse files
authored
release: 0.7.9 (#85)
2 parents 8183df3 + 01bfaea commit ce2c618

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

docs/api/inbox/get_all_unread_inboxes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ inboxes = [
1818
"body": "devxb에게 git-goods 길드가입 요청이 왔어요.",
1919
"redirectTo": "/auctions/",
2020
"type": "INBOX" // (INBOX, NOTICE...)
21-
"status": "UNREAD" // READ or UNREAD
21+
"status": "UNREAD", // READ or UNREAD
22+
"publishedAt": "2024-10-14T12:34:56Z",
2223
}
2324
...
2425
]

src/main/kotlin/org/gitanimals/inbox/controller/response/InboxResponse.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ package org.gitanimals.inbox.controller.response
33
import org.gitanimals.inbox.domain.InboxApplication
44
import org.gitanimals.inbox.domain.InboxStatus
55
import org.gitanimals.inbox.domain.InboxType
6+
import java.time.LocalDateTime
7+
import java.time.ZoneId
68

79
data class InboxResponse(
810
val inboxes: List<InboxElement>
@@ -16,6 +18,7 @@ data class InboxResponse(
1618
val redirectTo: String,
1719
val type: InboxType,
1820
val status: InboxStatus,
21+
val publishedAt: LocalDateTime,
1922
)
2023

2124
companion object {
@@ -31,6 +34,10 @@ data class InboxResponse(
3134
redirectTo = it.redirectTo,
3235
type = it.type,
3336
status = it.getStatus(),
37+
publishedAt = LocalDateTime.ofInstant(
38+
it.publisher.publishedAt,
39+
ZoneId.of("Asia/Seoul"),
40+
)
3441
)
3542
}
3643
)

0 commit comments

Comments
 (0)