package bus.controller.biz;

import bus.model.dto.BBusTrackByBusDto;
import bus.model.dto.BTrackLocalDto;
import bus.model.dto.req.BTrackLocalReqDto;
import bus.service.BBusInfoService;
import com.qzwisdom.qzframework.core.tool.base.controller.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;

/**
 * @Program: bus
 * @Description: 车辆位置追踪接口
 * @Author: zy
 * @Date: 2025-03-01 10:04:08
 **/
@Slf4j
@CrossOrigin
@RestController
@Api(tags = "车辆位置追踪接口")
@RequestMapping(value="/bBusLocation")
public class BBusLocationController implements BaseController {

    @Autowired
    private BBusInfoService bBusInfoService;



    @ApiOperation("获取车辆实时追踪信息")
    @PostMapping(value = "getLocalBusInfo")
    public BTrackLocalDto getLocalBusInfo(@RequestBody BTrackLocalReqDto reqDto) {
        return bBusInfoService.getLocalBusInfo(reqDto);
    }
} 