package com.ruoyi.account.controller;
|
|
import com.ruoyi.account.service.FleetUnbindService;
|
import com.ruoyi.common.core.domain.R;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.util.List;
|
|
/**
|
* <p>
|
* 车队解绑内部接口 前端控制器(other 服务删除车队链路使用,无管理端权限)
|
* </p>
|
*
|
* @author mxcd
|
* @since 2026-09-29
|
*/
|
@RestController
|
@RequestMapping("/fleet-unbind")
|
public class FleetUnbindController {
|
|
@Autowired
|
private FleetUnbindService fleetUnbindService;
|
|
/**
|
* 内部接口:按车队ID批量解绑 VIN码/充电卡/白名单的车队归属(单事务,返回实际解绑数量)
|
*/
|
@ApiOperation(value = "内部接口:按车队批量解绑(清空三表 fleet_id,返回实际解绑数量)")
|
@PostMapping("/inner/unbind")
|
public R<Integer> unbindByFleetIds(@RequestBody List<Integer> fleetIds) {
|
return R.ok(fleetUnbindService.unbindByFleetIds(fleetIds));
|
}
|
}
|