♻️ All parts into nexus

This commit is contained in:
2024-10-27 00:06:23 +08:00
parent 4c44af74b5
commit 7a0756a5e8
22 changed files with 233 additions and 306 deletions

View File

@@ -10,11 +10,10 @@ type Notification struct {
Topic string `json:"topic"`
Title string `json:"title"`
Subtitle *string `json:"subtitle"`
Subtitle string `json:"subtitle"`
Body string `json:"body"`
Metadata datatypes.JSONMap `json:"metadata"`
Avatar *string `json:"avatar"`
Picture *string `json:"picture"`
Priority int `json:"priority"`
SenderID *uint `json:"sender_id"`
Account Account `json:"account"`
@@ -22,8 +21,7 @@ type Notification struct {
ReadAt *time.Time `json:"read_at"`
IsRealtime bool `json:"is_realtime" gorm:"-"`
IsForcePush bool `json:"is_force_push" gorm:"-"`
IsRealtime bool `json:"is_realtime" gorm:"-"`
}
const (