Enhance Notification System with New API Endpoints and Response Structures
- Added new endpoints for marking notifications as seen and retrieving detailed notification information for both admin and user contexts, improving the flexibility of the notification system. - Implemented the MarkSeen and ViewNotification methods in the NotificationHandler, ensuring proper handling of notification visibility and details retrieval. - Updated the NotificationService interface to include methods for getting notification details and marking notifications as seen, enhancing service capabilities. - Enhanced the notification response structures to include additional fields such as Image, Seen, and ScheduledAt, providing richer data in API responses. - Updated API documentation with Swagger comments for the new endpoints and response formats, ensuring clarity for API consumers.
This commit is contained in:
@@ -24,6 +24,9 @@ type NotificationService interface {
|
||||
// GetNotifications retrieves a list of notifications
|
||||
GetNotifications(ctx context.Context, req *GetNotificationsRequest) (*NotificationListResponse, error)
|
||||
|
||||
// GetNotification retrieves a single notification by ID
|
||||
GetNotification(ctx context.Context, notificationID string) (*DetailedNotificationResponse, error)
|
||||
|
||||
// MarkSeen marks a notification as seen
|
||||
MarkSeen(ctx context.Context, notificationID string) (*MarkSeenResponse, error)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user