后管页面新增 推送设备告警信息

This commit is contained in:
Lemon
2024-09-27 09:45:46 +08:00
parent 9b963613a5
commit 7a92d42aae
3 changed files with 64 additions and 4 deletions

View File

@@ -150,4 +150,23 @@ public class ThirdPartyNotificationController extends BaseController {
}
return result;
}
/**
* 设备告警信息推送
*/
@PostMapping("/notificationAlarmInfo")
public AjaxResult notificationAlarmInfo(@RequestBody NotificationDTO dto) {
AjaxResult result;
try {
notificationService.notificationAlarmInfo(dto);
result = AjaxResult.success();
} catch (BusinessException e) {
logger.error("设备告警信息推送失败", e);
result = AjaxResult.error(e.getMessage());
} catch (Exception e) {
logger.error("设备告警信息推送失败", e);
result = AjaxResult.error();
}
return result;
}
}