Added API for getting notifications by compnayId and userId.
This commit is contained in:
@@ -17,4 +17,7 @@ public interface NotificationService {
|
||||
public NotificationResponse updateNotificationStatus(HttpServletRequest request, Long id, NotificationEnum status);
|
||||
|
||||
public void deleteNotification(HttpServletRequest request, Long id);
|
||||
|
||||
public List<NotificationResponse> getNotificationsByCompanyIdAndUserId(Long userId, Long companyId);
|
||||
|
||||
}
|
||||
|
||||
@@ -55,4 +55,8 @@ public class NotificationServiceImpl implements NotificationService {
|
||||
return;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<NotificationResponse> getNotificationsByCompanyIdAndUserId(Long userId, Long companyId) {
|
||||
return notificationDao.getNotificationByCompanyIdAndUserId(userId, companyId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user