package com.xiaopeng.maintenance.controller; import com.xiaopeng.common.core.domain.R; import com.xiaopeng.maintenance.service.XpTaskService; import io.swagger.annotations.Api; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; /** *

* 管理后台 任务工单 *

* * @author mitao * @since 2026-02-03 */ @RestController @Slf4j @Api(tags = "管理后台-任务工单") @RequestMapping("/logan/api/v1/taskManagement") public class XpTaskManagementFeignController { @Resource private XpTaskService xpTaskService; /** * 内部调用-添加车辆异常任务 * @param vehicleId * @return */ @PostMapping("/saveVehicleAccidentError") public R saveVehicleAccidentError(@RequestParam Long vehicleId) { xpTaskService.saveVehicleAccidentError(vehicleId); return R.ok(); } }