修改remote接口参数
parent
93a2ec4fba
commit
65cfcf4c8d
|
@ -17,8 +17,8 @@ import org.springframework.web.bind.annotation.*;
|
||||||
public interface RemoteCarService {
|
public interface RemoteCarService {
|
||||||
|
|
||||||
|
|
||||||
@GetMapping("/car/list/{vinId}")
|
@GetMapping("/car/list")
|
||||||
public Result<Car> list(@PathVariable String vinId);
|
public Result<Car> list(@RequestParam("carVinId") String carVinId);
|
||||||
|
|
||||||
@PostMapping("/baseFence/fenceById")
|
@PostMapping("/baseFence/fenceById")
|
||||||
public Result<Fence> fenceById(@RequestParam("fenceId") Integer fenceId);
|
public Result<Fence> fenceById(@RequestParam("fenceId") Integer fenceId);
|
||||||
|
|
|
@ -26,7 +26,7 @@ public class RemoteCarFallbackFactory implements FallbackFactory<RemoteCarServic
|
||||||
|
|
||||||
return new RemoteCarService() {
|
return new RemoteCarService() {
|
||||||
@Override
|
@Override
|
||||||
public Result<Car> list(String vinId) {
|
public Result<Car> list(String carVinId) {
|
||||||
return Result.error("保存操作日志失败:" + cause.getMessage());
|
return Result.error("保存操作日志失败:" + cause.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,11 +46,10 @@ public class CarController extends BaseController {
|
||||||
/**
|
/**
|
||||||
* 根据vin查询车辆信息管理列表
|
* 根据vin查询车辆信息管理列表
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions
|
@GetMapping("/list")
|
||||||
@GetMapping("/list/{vinId}")
|
public Result<Car> list(@RequestParam("carVinId") String carVinId){
|
||||||
public Result<Car> list(@PathVariable String vinId){
|
|
||||||
|
|
||||||
Car list = carService.selectCarInfoList(vinId);
|
Car list = carService.selectCarInfoList(carVinId);
|
||||||
|
|
||||||
return Result.success(list);
|
return Result.success(list);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue