package com.cico.nest.lcdp.boot.core.qxsd.infrastructure.gatewayimpl;

import com.cico.nest.lcdp.boot.core.qxsd.adapter.web.vo.tunnelFacility.TunnelSectionCongestionStatusVO;
import com.cico.nest.lcdp.boot.core.qxsd.domain.gateway.TunnelGateway;
import com.cico.nest.lcdp.boot.core.qxsd.infrastructure.gatewayimpl.database.dataobject.TrafficFlowMetricDO;
import com.cico.nest.lcdp.boot.core.qxsd.infrastructure.gatewayimpl.http.MetricMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zws
 * @date 2024/8/8
 */

@Service
public class TunnelGatewayImpl implements TunnelGateway {
    @Resource
    private MetricMapper metricMapper;

    @Override
    public TrafficFlowMetricDO getTrafficFlowMetric(String tunnelId) {
        return metricMapper.getTrafficFlowMetric(tunnelId);
    }

    @Override
    public List<TunnelSectionCongestionStatusVO> getSectionCongestion(String tunnelId) {
        return metricMapper.getSectionCongestion(tunnelId);
    }
}
