Added Read/Unread filter in notification API.

This commit is contained in:
piyushkag
2024-12-30 15:25:32 +05:30
parent 172c2bec62
commit 8fba9a1c81
5 changed files with 26 additions and 18 deletions

View File

@@ -18,6 +18,6 @@ public interface NotificationService {
public void deleteNotification(HttpServletRequest request, Long id);
public List<NotificationResponse> getNotificationsByCompanyIdAndUserId(Long userId, Long companyId);
public List<NotificationResponse> getNotificationsByCompanyIdAndUserId(Long userId, Long companyId, List<NotificationEnum> statuses);
}

View File

@@ -56,7 +56,7 @@ public class NotificationServiceImpl implements NotificationService {
}
@Override
public List<NotificationResponse> getNotificationsByCompanyIdAndUserId(Long userId, Long companyId) {
return notificationDao.getNotificationByCompanyIdAndUserId(userId, companyId);
public List<NotificationResponse> getNotificationsByCompanyIdAndUserId(Long userId, Long companyId, List<NotificationEnum> statuses) {
return notificationDao.getNotificationByCompanyIdAndUserId(userId, companyId, statuses);
}
}