Add AllMarkSeen Functionality to Notification System

- Introduced the AllMarkSeen method in the notification service to mark all notifications as seen for a user, enhancing user experience by allowing bulk actions on notifications.
- Implemented the PublicAllMarkSeen handler to handle HTTP requests for marking all notifications as seen, ensuring proper request validation and response handling.
- Updated the notification client and SDK to support the new AllMarkSeen functionality, improving the overall API capabilities.
- Enhanced API documentation with Swagger comments for the new endpoint, ensuring clarity for API consumers.
This commit is contained in:
n.nakhostin
2025-09-22 10:07:02 +03:30
parent aef91b4711
commit 733d726df6
6 changed files with 112 additions and 0 deletions
+3
View File
@@ -30,6 +30,9 @@ type NotificationService interface {
// MarkSeen marks a notification as seen
MarkSeen(ctx context.Context, notificationID string) (*MarkSeenResponse, error)
// AllMarkSeen marks all notifications as seen for a user
AllMarkSeen(ctx context.Context, userID string) (*MarkSeenResponse, error)
// Health checks if the notification service is available
Health(ctx context.Context) error