mirror of
https://github.com/StarFleetCPTN/GoMFT.git
synced 2026-10-21 13:34:05 +02:00
feat: Enhance notifications and pagination functionality
- Implemented pagination for user notifications, allowing users to navigate through their notifications more efficiently. - Updated the notifications page to display the total count of notifications and provide controls for adjusting the number of notifications shown per page. - Added backend support for fetching paginated notifications and counting total notifications for users. - Improved the user interface for notifications, including a new layout and additional help sections to guide users on managing their notifications.
This commit is contained in:
1 parent
db6259f8a3
commit
3140d9e143
11 files changed
+1187
-895
No files matched your search
@@ -9,6 +9,11 @@ import (
|
||||
type NotificationsData struct {
|
||||
Notifications []db.UserNotification
|
||||
UnreadCount int64
|
||||
// Pagination fields
|
||||
CurrentPage int
|
||||
TotalPages int
|
||||
TotalCount int
|
||||
PerPage int
|
||||
}
|
||||
|
||||
// FormatNotificationTime formats a notification time in a user-friendly way
|
||||
|
||||
Reference in new issue
Block a user