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> findListByUserIdAndCityCode(@RequestParam("appUserId") Long appUserId, @RequestParam("cityCode") String cityCode); /** * 获取定向服务权限 * @param appUserId * @param cityCode * @return */ @GetMapping("/logan/inner/v1/targetedService/getTargetedServiceWeight") R getTargetedServiceWeight(@RequestParam("appUserId") Long appUserId, @RequestParam("cityCode") String cityCode); /** * 获取定向服务所有车辆 * @return */ @GetMapping("/logan/inner/v1/targetedService/getAllTargetedServiceVehicle") R> getAllTargetedServiceVehicle(); }