diff --git a/app/Admin/Controllers/LanzuMpWithdrawController.php b/app/Admin/Controllers/LanzuMpWithdrawController.php new file mode 100755 index 0000000..6a980d8 --- /dev/null +++ b/app/Admin/Controllers/LanzuMpWithdrawController.php @@ -0,0 +1,84 @@ +id->sortable(); + $grid->mp_id; + $grid->money; + $grid->status; + $grid->created_at; + $grid->updated_at->sortable(); + + $grid->filter(function (Grid\Filter $filter) { + $filter->equal('id'); + + }); + }); + } + + /** + * Make a show builder. + * + * @param mixed $id + * + * @return Show + */ + protected function detail($id) + { + return Show::make($id, new LanzuMpWithdraw(), function (Show $show) { + $show->id; + $show->mp_id; + $show->money; + $show->status; + $show->created_at; + $show->updated_at; + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + + public function mpForm(){ + + return Form::make(new LanzuMpWithdraw(), function (Form $form) { + $form->display('id'); + $form->text('mp_id'); + $form->text('money'); + $form->text('status'); + + $form->display('created_at'); + $form->display('updated_at'); + }); + } + protected function form() + { + return Form::make(new LanzuMpWithdraw(), function (Form $form) { + $form->display('id'); + $form->text('mp_id'); + $form->text('money'); + $form->text('status'); + + $form->display('created_at'); + $form->display('updated_at'); + }); + } +} diff --git a/app/Admin/Repositories/LanzuMpWithdraw.php b/app/Admin/Repositories/LanzuMpWithdraw.php new file mode 100755 index 0000000..e702bf4 --- /dev/null +++ b/app/Admin/Repositories/LanzuMpWithdraw.php @@ -0,0 +1,16 @@ +resource('/mp', 'LanzuMpInfoController'); $router->resource('/mm', 'LanzuMmInfoController'); $router->resource('/market', 'ImsCjdcMarketController'); + $router->resource('/mp_withdraw', 'LanzuMpWithdrawController'); $router->any('/api/getMarket', 'LanzuMmInfoController@getMarket'); $router->any('/api/getMpInfo', 'ImsCjdcMarketController@getMpInfo'); + $router->get('/mp_form', 'LanzuMpWithdrawController@mpForm'); + }); diff --git a/app/Models/LanzuMpWithdraw.php b/app/Models/LanzuMpWithdraw.php new file mode 100755 index 0000000..fd1da46 --- /dev/null +++ b/app/Models/LanzuMpWithdraw.php @@ -0,0 +1,16 @@ + [ + 'LanzuMpWithdraw' => 'LanzuMpWithdraw', + ], + 'fields' => [ + 'mp_id' => '关联的服务商id', + 'money' => '提现金额', + 'status' => '提现状态', + ], + 'options' => [ + ], +];