|
@@ -46,6 +46,17 @@ public class LocationController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "删除停靠点")
|
|
|
|
+ @PostMapping("/deletePoint")
|
|
|
|
+ public ResultData deletePoint(@RequestBody Integer pointId) {
|
|
|
|
+ int flag = locationService.deletePoint(pointId);
|
|
|
|
+ if (flag > 0) {
|
|
|
|
+ return ResultData.success();
|
|
|
|
+ } else {
|
|
|
|
+ return ResultData.fail(ErrorCode.FAIL);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
@ApiOperation(value = "删除巡检点")
|
|
@ApiOperation(value = "删除巡检点")
|
|
@PostMapping("/deleteTarget")
|
|
@PostMapping("/deleteTarget")
|
|
public ResultData deleteTarget(@RequestBody Long targetId) {
|
|
public ResultData deleteTarget(@RequestBody Long targetId) {
|