♻️ Improve notifications mark read system

This commit is contained in:
2024-10-13 13:00:51 +08:00
parent bee9799415
commit 6ea4850459
5 changed files with 22 additions and 9 deletions

View File

@@ -2,6 +2,7 @@ package models
import (
"gorm.io/datatypes"
"time"
)
type Notification struct {
@@ -19,6 +20,8 @@ type Notification struct {
Account Account `json:"account"`
AccountID uint `json:"account_id"`
ReadAt *time.Time `json:"read_at"`
IsRealtime bool `json:"is_realtime" gorm:"-"`
IsForcePush bool `json:"is_force_push" gorm:"-"`
}