puzhibing
2026-05-20 6927b406c7c0c08aacfffd0e7f81cfd6b04b1a03
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
44
package com.xiaopeng.api.feignClient.operation;
 
import com.xiaopeng.api.factory.operation.XpTargetedServiceClientFallbackFactory;
import com.xiaopeng.api.vo.operation.XpTargetedServiceVehicleVo;
import com.xiaopeng.common.core.domain.R;
import com.xiaopeng.common.core.dto.ServiceNameConstantsEnum;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
 
import java.util.List;
 
@FeignClient(contextId = "XpTargetedServiceClient", value = ServiceNameConstantsEnum.XP_OPERATION_SERVICE,
        fallbackFactory = XpTargetedServiceClientFallbackFactory.class)
public interface XpTargetedServiceClient {
 
 
    /**
     * 根据用户ID和城市编码获取
     * @param appUserId  用户ID
     * @param cityCode   城市编码
     * @return
     */
    @GetMapping("/logan/inner/v1/targetedService/findListByUserIdAndCityCode")
    R<List<XpTargetedServiceVehicleVo>> findListByUserIdAndCityCode(@RequestParam("appUserId") Long appUserId, @RequestParam("cityCode") String cityCode);
 
 
    /**
     * 获取定向服务权限
     * @param appUserId
     * @param cityCode
     * @return
     */
    @GetMapping("/logan/inner/v1/targetedService/getTargetedServiceWeight")
    R<Integer> getTargetedServiceWeight(@RequestParam("appUserId") Long appUserId, @RequestParam("cityCode") String cityCode);
 
 
    /**
     * 获取定向服务所有车辆
     * @return
     */
    @GetMapping("/logan/inner/v1/targetedService/getAllTargetedServiceVehicle")
    R<List<Long>> getAllTargetedServiceVehicle();
}