feat(notify): postgres repository for notifications inbox

This commit is contained in:
2026-04-28 22:25:23 +08:00
parent f25078dc8c
commit d9a8c04195
2 changed files with 201 additions and 0 deletions
+2
View File
@@ -53,6 +53,8 @@ type Message struct {
Body string
Link string
Metadata map[string]any
// ReadAt 表示该通知的已读时间。nil 表示未读,非 nil 表示用户已读的时刻。
ReadAt *time.Time
CreatedAt time.Time
}