class AlertController {

    @GetMapping("/find-all-visible/{type}")
    public RestResult<List<AlertResource>> findAllVisibleByType(@PathVariable("type") AlertType type) {
        return alertService.findAllVisibleByType(type).toGetResponse();
    }

}