Skip to content

Commit 09c8212

Browse files
author
hikki
committed
v4.0
1 parent c987a27 commit 09c8212

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

test/CascadeLineController.php

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,18 @@ class CascadeLineController
1212
*/
1313
use CascadeLineTrait;
1414

15+
public function show($id, Content $content)
16+
{
17+
// 节点详情查看页 例子.
18+
return "详情查看页";
19+
}
20+
1521
/**
1622
* @inheritDoc
1723
*/
1824
function createForm(FormPanel $formPanel)
1925
{
20-
// TODO: CODE
26+
// 节点新增 表单列设置 例子.
2127
$formPanel->input('insert_node_val','新增节点 name');
2228
}
2329

@@ -29,7 +35,7 @@ function storeAction(): array
2935
$request = Request::capture();
3036
$key = (int)$request->input('key');
3137
$insert_node_name = $request->input('insert_node_val');
32-
// TODO: CODE
38+
// 节点新增逻辑处理
3339
// 新增id 随机示例
3440
$insert_node_id = $key+mt_rand(10000,100000);
3541
return ['key'=>$insert_node_id,'val'=>$insert_node_name];
@@ -42,7 +48,7 @@ function editForm(FormPanel $formPanel,$id)
4248
{
4349
$request = Request::capture();
4450
$val = $request->input('val');
45-
// TODO: CODE
51+
// 节点修改 表单列设置 例子.
4652
$formPanel->input('update_node_name','修改节点 name',$val);
4753
}
4854

@@ -53,7 +59,7 @@ function updateAction($id): array
5359
{
5460
$request = Request::capture();
5561
$val = $request->input('update_node_name');
56-
// TODO: CODE
62+
// 节点修改逻辑处理
5763
return ['val'=>$val];
5864
}
5965

@@ -62,6 +68,15 @@ function updateAction($id): array
6268
*/
6369
function destroyAction($id)
6470
{
65-
// TODO: Implement destroyAction() method.
71+
// 节点删除逻辑处理
72+
}
73+
74+
/**
75+
* @inheritDoc
76+
*/
77+
function migrate()
78+
{
79+
// 节点迁移 交换 逻辑处理
80+
return Assistant::result(true);
6681
}
6782
}

0 commit comments

Comments
 (0)