| | |
| | | package com.xiaopeng.api.feignClient.vehicleConvoy; |
| | | |
| | | import com.xiaopeng.api.dto.operation.VehiclePositionByVinDto; |
| | | import com.xiaopeng.api.dto.vehicleConvoy.UpdateVehicleStateDto; |
| | | import com.xiaopeng.api.factory.vehicleConvoy.XpVehicleClientFallbackFactory; |
| | | import com.xiaopeng.api.model.vehicleConvoy.XpVehicle; |
| | | import com.xiaopeng.api.vo.automaticPilot.VehiclePosition; |
| | | import com.xiaopeng.api.vo.operation.VehiclePositionVo; |
| | | import com.xiaopeng.common.core.domain.R; |
| | | import com.xiaopeng.common.core.dto.ServiceNameConstantsEnum; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | |
| | | @PostMapping("/inner/vehicle/listByIds") |
| | | R<List<XpVehicle>> listByIds(@RequestBody List<Long> ids); |
| | | /** |
| | | * 查询车辆列表 |
| | | * |
| | | * @return 车辆列表 |
| | | */ |
| | | @PostMapping("/inner/vehicle/listVehicle") |
| | | R<List<XpVehicle>> listVehicle(); |
| | | /** |
| | | * 根据ID查询车辆信息 |
| | | * |
| | | * @param id 车辆ID |
| | | * @return 车辆 |
| | | */ |
| | | @GetMapping("/inner/vehicle/queryById") |
| | | R<XpVehicle> queryById(Long id); |
| | | R<XpVehicle> queryById(@RequestParam Long id); |
| | | /** |
| | | * 修改车辆信息 |
| | | * |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/inner/vehicle/findByVehicleVin") |
| | | R<VehiclePosition> findByVehicleVin(String vehicleVin); |
| | | R<XpVehicle> findByVehicleVin(@RequestParam("vehicleVin") String vehicleVin); |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据车辆xpuid查询车辆信息 |
| | | * |
| | | * @param xpuid |
| | | * @return |
| | | */ |
| | | @GetMapping("/inner/vehicle/findByVehicleXpuId") |
| | | R<XpVehicle> findByVehicleXpuId(@RequestParam("xpuid") String xpuid); |
| | | |
| | | /** |
| | | * 修改车辆状态 |
| | | * |
| | | * @param updateVehicleStateDto |
| | | * @return |
| | | */ |
| | | @PostMapping("/inner/vehicle/updateVehicleStatus") |
| | | R<?> updateVehicleStatus(@RequestBody UpdateVehicleStateDto updateVehicleStateDto); |
| | | |
| | | /** |
| | | * 根据车辆id查询车辆所属的车队id |
| | | * |
| | | * @param vehicleId |
| | | * @return |
| | | */ |
| | | @GetMapping("/inner/vehicle/findFleetIdByVehicleId") |
| | | R<Long> findFleetIdByVehicleId(@RequestParam Long vehicleId); |
| | | |
| | | } |