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