Fixed important in notification

This commit is contained in:
llsajjad
2025-09-27 14:57:42 +03:30
parent 359f7f2608
commit ca81da026d
5 changed files with 36 additions and 21 deletions
+9 -7
View File
@@ -1,17 +1,19 @@
// notification_api.dart
class NotificationApi {
static const String notifications = '/api/v1/notifications';
static String getNotifications({required int limit, required int offset}) {
return '$notifications?limit=$limit&offset=$offset';
}
static const String feedback = '/api/v1/feedback';
static const String markAllAsRead = '/api/v1/notifications/mark';
static const String markAsRead = '/api/v1/notifications/mark-as-read';
static const String tenderApprovalsTender = '/api/v1/notifications';
static const String unreadNotifications = '/api/v1/notifications?seen=false';
static String getUnreadNotifications({required int limit, required int offset}) {
return '$unreadNotifications?limit=$limit&offset=$offset';
static String getUnreadNotifications({required int limit, required int offset}) {
return '/api/v1/notifications?seen=false&limit=$limit&offset=$offset';
}
}
static String getImportantNotifications({required int limit, required int offset}) {
return '/api/v1/notifications?priority=important&limit=$limit&offset=$offset';
}
}