package com.xiaopeng.api.feignClient.maintenance;
|
|
import com.xiaopeng.api.factory.maintenance.XpVehicleRepairClientFallbackFactory;
|
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;
|
|
/**
|
* 车辆维修Feign客户端
|
*
|
* @author mitao
|
* @since 2026-02-11
|
*/
|
@FeignClient(contextId = "XpVehicleRepairClient",
|
value = ServiceNameConstantsEnum.XP_MAINTENANCE_SERVICE,
|
fallbackFactory = XpVehicleRepairClientFallbackFactory.class)
|
public interface XpVehicleRepairClient {
|
|
/**
|
* 获取车辆维修状态
|
* @param vehicleId
|
* @return
|
*/
|
@GetMapping("/logan/inner/xpVehicleRepair/getMaintenanceStatus")
|
R<Integer> getMaintenanceStatus(@RequestParam Long vehicleId);
|
|
}
|