NotificationService

@Service
class NotificationService(notificationRepository: NotificationRepository)(source)

Serviço responsável pela gestão de notificações do sistema. Fornece operações para listar, criar e marcar notificações como lidas.

Constructors

Link copied to clipboard
constructor(notificationRepository: NotificationRepository)

Functions

Link copied to clipboard
fun countUnread(tenantId: String, userId: String): Long
Link copied to clipboard
@Transactional
fun createNotification(tenantId: String, type: NotificationType, title: String, message: String? = null, userId: String? = null, resourceType: String? = null, resourceId: String? = null): NotificationResponse
Link copied to clipboard
Link copied to clipboard
@Transactional
fun markAllAsRead(tenantId: String, userId: String): Int
Link copied to clipboard
@Transactional
fun markAsRead(tenantId: String, notificationId: String): NotificationResponse