diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 5c6e168..1f4f429 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,11 +4,7 @@
-
-
-
-
-
+
@@ -153,7 +149,6 @@
-
@@ -178,7 +173,8 @@
-
+
+
true
diff --git a/pkg/internal/server/admin/notify_api.go b/pkg/internal/server/admin/notify_api.go
index d2adc34..69b50bd 100644
--- a/pkg/internal/server/admin/notify_api.go
+++ b/pkg/internal/server/admin/notify_api.go
@@ -11,16 +11,13 @@ import (
func notifyAllUser(c *fiber.Ctx) error {
var data struct {
- ClientID string `json:"client_id" validate:"required"`
- ClientSecret string `json:"client_secret" validate:"required"`
- Type string `json:"type" validate:"required"`
- Subject string `json:"subject" validate:"required,max=1024"`
- Content string `json:"content" validate:"required,max=4096"`
- Metadata map[string]any `json:"metadata"`
- Links []models.NotificationLink `json:"links"`
- IsForcePush bool `json:"is_force_push"`
- IsRealtime bool `json:"is_realtime"`
- UserID uint `json:"user_id" validate:"required"`
+ Type string `json:"type" validate:"required"`
+ Subject string `json:"subject" validate:"required,max=1024"`
+ Content string `json:"content" validate:"required,max=4096"`
+ Metadata map[string]any `json:"metadata"`
+ Links []models.NotificationLink `json:"links"`
+ IsForcePush bool `json:"is_force_push"`
+ IsRealtime bool `json:"is_realtime"`
}
if err := exts.BindAndValidate(c, &data); err != nil {