package com.bonus.canteen.core.bus.api;

import com.bonus.canteen.core.bus.service.BusLineService;
import com.bonus.canteen.core.bus.vo.BusLineDeviceVO;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Component
public class BusLineApi {
   @Resource
   @Lazy
   private BusLineService busLineService;

   public List<BusLineDeviceVO> queryAllBusLineAndDevice() {
      return this.busLineService.queryBusLineAndDeviceList();
   }
}
