mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
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:
11
model/notification_group_api.go
Normal file
11
model/notification_group_api.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package model
|
||||
|
||||
type NotificationGroupForm struct {
|
||||
Name string `json:"name"`
|
||||
Notifications []uint64 `json:"notifications"`
|
||||
}
|
||||
|
||||
type NotificationGroupResponseItem struct {
|
||||
Group NotificationGroup `json:"group"`
|
||||
Notifications []uint64 `json:"notifications"`
|
||||
}
|
||||
Reference in New Issue
Block a user