修改按计划行车请求方法(上次改错了)

This commit is contained in:
joylink_zhangsai 2022-11-29 13:56:13 +08:00
parent 6338ccce21
commit 2e6c06c0cc

View File

@ -501,7 +501,7 @@ public class SimulationV1Controller {
/** /**
* 按计划行车 * 按计划行车
*/ */
@PutMapping("/new/{simulationId}/runAsPlan") @PostMapping("/new/{simulationId}/runAsPlan")
public void runAsPlanNew(@PathVariable String simulationId, @RequestBody @Validated RunAsPlanParam param) { public void runAsPlanNew(@PathVariable String simulationId, @RequestBody @Validated RunAsPlanParam param) {
simulationService.runAsPlan(simulationId, param); simulationService.runAsPlan(simulationId, param);
} }
@ -509,7 +509,7 @@ public class SimulationV1Controller {
/** /**
* 重置仿真 * 重置仿真
*/ */
@PostMapping("/new/{simulationId}/reset") @PutMapping("/new/{simulationId}/reset")
public void reset(@PathVariable String simulationId) { public void reset(@PathVariable String simulationId) {
simulationService.reset(simulationId); simulationService.reset(simulationId);
} }