implement notification group (#450)

* implement notification group

* some fixes

* fix sql

* add listNotification

* retrieve notification from map

* create notification_group_notification if non-exist

* NotificationIDToGroup -> NotificationIDToGroups

* clean
This commit is contained in:
UUBulb authored and GitHub committed 2024-10-23 21:55:12 +08:00
1 parent e792215f6e
commit 61e755d2b9
18 files changed
+666 -180

No files matched your search

+2 -2
View File
@@ -2,6 +2,6 @@ package model
type NotificationGroupNotification struct {
Common
NotificationGroupID uint64 `json:"notification_group_id"`
NotificationID uint64 `json:"notification_id"`
NotificationGroupID uint64 `json:"notification_group_id" gorm:"uniqueIndex:idx_notification_group_notification"`
NotificationID uint64 `json:"notification_id" gorm:"uniqueIndex:idx_notification_group_notification"`
}