package com.njcn.cloud.service.impl;

import com.njcn.cloud.service.RealTimeInfoService;
import com.njcn.device.pq.api.LineFeignClient;
import com.njcn.device.pq.pojo.vo.LineDetailVO;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wr
 * @description
 * @date 2023/11/22 15:40
 */
@Service
@RequiredArgsConstructor
public class RealTimeInfoServiceImpl implements RealTimeInfoService {


    private final LineFeignClient lineFeignClient;

    @Override
    public List<LineDetailVO.Detail> getLineBaseInfo(List<String> lineId) {
        return lineFeignClient.getLineDetailByIds(lineId).getData();
    }
}
