名称修改
parent
a0d771dbf9
commit
dc94c6ef34
|
@ -63,7 +63,7 @@ public class TaskInputController {
|
|||
@DeleteMapping("/{id}")
|
||||
@Operation(summary = "删除任务",description = "通过任务id删除任务信息")
|
||||
public Result delete(@PathVariable("id") Long id) {
|
||||
nodeService.removeById(id);
|
||||
taskInputService.removeById(id);
|
||||
return Result.success(null,"操作成功");
|
||||
}
|
||||
|
||||
|
@ -77,7 +77,7 @@ public class TaskInputController {
|
|||
@PutMapping("/{id}")
|
||||
@Operation(summary = "任务信息修改",description = "通过任务id修改任务信息")
|
||||
public Result update(@PathVariable("id") Integer id , @RequestBody TaskInputUpdReq req){
|
||||
nodeService.updateById(TaskInput.updBuild(req,()->id));
|
||||
taskInputService.updateById(TaskInput.updBuild(req,()->id));
|
||||
return Result.success(null,"操作成功");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue