package com.sz.admin.monitor.service.impl;

import com.sz.admin.monitor.pojo.dto.edgebox.BoxAlarmReportDto;
import com.sz.admin.monitor.service.ForwardService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * ClassName: ForwardServiceImpl
 * Package: com.sz.admin.monitor.service.impl
 * Description:
 */
@Service
@Slf4j
public class ForwardServiceImpl implements ForwardService {
    @Resource
    private RestTemplate restTemplate;
    @Override
    public void enrichAndForward(BoxAlarmReportDto boxAlarm) {
        ResponseEntity<String> response = restTemplate.postForEntity(boxAlarm.getUrl(), boxAlarm, String.class);
    }
}
