package com.xiaopeng.api.feignClient.vehicleConvoy; import com.xiaopeng.api.factory.vehicleConvoy.XpFleetClientFallbackFactory; import com.xiaopeng.api.model.vehicleConvoy.XpFleet; 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.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; import java.util.List; /** * 车队Feign客户端 * * @author mitao */ @FeignClient(contextId = "XpFleetClient", value = ServiceNameConstantsEnum.XP_VEHICLE_CONVOY_SERVICE, fallbackFactory = XpFleetClientFallbackFactory.class) public interface XpFleetClient { /** * 根据ID列表批量查询车队信息 * * @param ids 车队ID列表 * @return 车队列表 */ @PostMapping("/inner/fleet/listByIds") R> listByIds(@RequestBody List ids); /** * 通过运营人员id查询车队信息 * * @param operationsUserId 运营人员id * @return 车队信息 */ @GetMapping("/inner/v1/fleet/getFleetByOperationsUserId") R getFleetByOperationsUserId(@RequestParam Long operationsUserId); /** * 根据打卡地址id查询被车辆使用次数 * @param locationId 打卡地址id * @return */ @GetMapping("/inner/fleet/getUseCountByLocationId") R getUseCountByLocationId(@RequestParam Long locationId); }