添加字段和表
parent
45cce49f3d
commit
4126b4899c
|
@ -15,12 +15,12 @@ public class NodeTableController {
|
||||||
private NodeTableService nodeTableService;
|
private NodeTableService nodeTableService;
|
||||||
|
|
||||||
@PostMapping
|
@PostMapping
|
||||||
private Result addNodeTable(NodeTable nodeTable) {
|
private Result addNodeTable(@RequestBody NodeTable nodeTable) {
|
||||||
boolean save = nodeTableService.save(nodeTable);
|
boolean save = nodeTableService.save(nodeTable);
|
||||||
return Result.success(save);
|
return Result.success(save);
|
||||||
}
|
}
|
||||||
@GetMapping("/{id}")
|
@GetMapping("/{id}")
|
||||||
private Result getNodeTable(@PathVariable Long id) {
|
private Result getNodeTable(@PathVariable("id") Long id) {
|
||||||
NodeTable byId = nodeTableService.getById(id);
|
NodeTable byId = nodeTableService.getById(id);
|
||||||
return Result.success(byId);
|
return Result.success(byId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue