Pu Zhibing
2025-03-28 e1ea85f4d18916efcd568b9b886a20184c2daeb2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package com.ruoyi.dataInterchange.api.feignClient;
 
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.dataInterchange.api.factory.UPExgMsgRealLocationClientFallbackFactory;
import com.ruoyi.dataInterchange.api.vo.GnssDataVo;
import com.ruoyi.dataInterchange.api.vo.OrderTravelVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
 
import java.util.List;
 
/**
 * @author zhibing.pu
 * @Date 2025/3/24 19:06
 */
@FeignClient(contextId = "UPExgMsgRealLocationClient", value = ServiceNameConstants.DATA_INTERCHANGE_SERVICE, fallbackFactory = UPExgMsgRealLocationClientFallbackFactory.class)
public interface UPExgMsgRealLocationClient {
    
    
    /**
     * 获取订单行程轨迹
     *
     * @param vehicleNo
     * @param start
     * @param end
     * @return
     */
    @PostMapping("/upExgMsgRealLocation/getOrderTravel")
    R<List<OrderTravelVo>> getOrderTravel(@RequestParam("vehicleNo") String vehicleNo, @RequestParam("start") Long start,
                                          @RequestParam("end") Long end);
    
    
    /**
     * 获取司机的最新定位信息
     *
     * @param vehicleNo
     * @return
     */
    @PostMapping("/upExgMsgRealLocation/getVehicleSpeed")
    R<GnssDataVo> getVehicleSpeed(@RequestParam("vehicleNo") String vehicleNo);
}