|
...
|
...
|
@@ -30,8 +30,8 @@ class ProjectMenuController extends BaseController |
|
|
|
* @author :liyuhang
|
|
|
|
* @method
|
|
|
|
*/
|
|
|
|
public function info(Request $request,ProjectMenuLogic $projectMenuLogic){
|
|
|
|
$request->validate([
|
|
|
|
public function info(ProjectMenuLogic $projectMenuLogic){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>'required'
|
|
|
|
],[
|
|
|
|
'id.required' => 'ID不能为空'
|
|
...
|
...
|
@@ -74,11 +74,12 @@ class ProjectMenuController extends BaseController |
|
|
|
* @author :liyuhang
|
|
|
|
* @method
|
|
|
|
*/
|
|
|
|
public function del(Request $request,ProjectMenuLogic $projectMenuLogic){
|
|
|
|
$request->validate([
|
|
|
|
'id'=>'required'
|
|
|
|
public function del(ProjectMenuLogic $projectMenuLogic){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>['required','array'],
|
|
|
|
],[
|
|
|
|
'id.required' => 'ID不能为空'
|
|
|
|
'id.required' => 'ID不能为空',
|
|
|
|
'id.array' => 'ID为数组',
|
|
|
|
]);
|
|
|
|
$projectMenuLogic->menu_del();
|
|
|
|
$this->response('success');
|
...
|
...
|
|