mirror of
https://github.com/StarFleetCPTN/GoMFT.git
synced 2026-10-14 18:18:15 +02:00
feat: Implement notification services management
- Added a new notifications management page with functionality to create, delete, and test notification services. - Introduced a new template for displaying notification services, including forms for adding and configuring services. - Updated backend handlers to support notification service operations and improved error handling. - Enhanced the user interface with toast notifications for success and error messages related to notification actions. - Refactored existing settings components to integrate with the new notifications management features.
This commit is contained in:
1 parent
d35f7bfe53
commit
4d393e17ab
5 files changed
+604
-25
No files matched your search
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// NotificationService defines a notification service configuration
|
||||
type NotificationService struct {
|
||||
ID uint
|
||||
Name string
|
||||
@@ -20,6 +21,14 @@ type NotificationService struct {
|
||||
FailureCount int
|
||||
}
|
||||
|
||||
// SettingsNotificationsData contains data for the notifications page in settings
|
||||
type SettingsNotificationsData struct {
|
||||
NotificationServices []NotificationService
|
||||
ErrorMessage string
|
||||
SuccessMessage string
|
||||
}
|
||||
|
||||
// SettingsData contains data for the settings page
|
||||
type SettingsData struct {
|
||||
NotificationServices []NotificationService
|
||||
ErrorMessage string
|
||||
|
||||
Reference in new issue
Block a user