package com.xiaopeng.api.feignClient.maintenance; import com.xiaopeng.api.factory.maintenance.XpTaskClientFallbackFactory; import com.xiaopeng.api.factory.maintenance.XpTaskHandleDetailRoutineClientFallbackFactory; import com.xiaopeng.api.model.maintenance.XpTask; import com.xiaopeng.api.model.maintenance.XpTaskHandleDetailRoutine; 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; /** * 打卡服务 Feign 客户端 * * @author mitao * @date 2026-02-14 */ @FeignClient( contextId = "XpTaskClient", value = ServiceNameConstantsEnum.XP_MAINTENANCE_SERVICE, fallbackFactory = XpTaskClientFallbackFactory.class ) public interface XpTaskClient { /** * 通过车辆id查询上一次保养记录 * @param vehicleId 车辆ID */ @GetMapping("/logan/inner/xpTask/queryInfoByVehicleId") R queryInfoByVehicleId(@RequestParam("vehicleId") Long vehicleId); /** * 添加车辆事故任务 * @param vehicleId * @return */ @PostMapping("/logan/api/v1/taskManagement/saveVehicleAccidentError") R saveVehicleAccidentError(@RequestParam Long vehicleId); }