mirror of
https://gitee.com/niucloud-team/niucloud.git
synced 2025-12-12 01:47:08 +00:00
Update Generator.php
This commit is contained in:
parent
0e47055ccb
commit
69235add6d
@ -55,7 +55,7 @@ class Generator extends BaseController
|
||||
$data = $this->request->params([
|
||||
[ "table_name", "" ],
|
||||
], false);
|
||||
$this->validate($data, 'app\validate\generator\generator.add');
|
||||
$this->validate($data, 'app\validate\generator\Generator.add');
|
||||
$id = ( new GenerateService() )->add($data);
|
||||
return success(100011, [ 'id' => $id ]);
|
||||
}
|
||||
@ -75,7 +75,7 @@ class Generator extends BaseController
|
||||
[ "edit_type", "1" ],
|
||||
[ "table_column", "" ],
|
||||
], false);
|
||||
$this->validate($data, 'app\validate\generator\generator.update');
|
||||
$this->validate($data, 'app\validate\generator\Generator.update');
|
||||
( new GenerateService() )->update($id, $data);
|
||||
return success(100004);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user