NotificationController

@RestController
@RequestMapping(value = ["/api/v2/notifications"])
class NotificationController(notificationService: NotificationService)(source)

Controller para gerenciamento de notificações do sistema. Fornece endpoints para listar e marcar notificações como lidas.

Constructors

Link copied to clipboard
constructor(notificationService: NotificationService)

Functions

Link copied to clipboard
@GetMapping(value = ["/count"])
fun countUnread(): Map<String, Long>
Link copied to clipboard
Link copied to clipboard
@PostMapping(value = ["/read-all"])
@ResponseStatus(value = HttpStatus.NO_CONTENT)
fun markAllAsRead()
Link copied to clipboard
@PostMapping(value = ["/{id}/read"])
fun markAsRead(@PathVariable id: String): NotificationResponse