38 lines
867 B
38 lines
867 B
3 months ago
|
<?php
|
||
|
|
||
|
namespace app\admin\controller\document;
|
||
|
|
||
|
use app\admin\controller\AdminBaseController;
|
||
|
use app\admin\service\document\LandingPageService;
|
||
|
|
||
|
class LandingPage extends AdminBaseController
|
||
|
{
|
||
|
|
||
|
public function index()
|
||
|
{
|
||
|
$service = new LandingPageService();
|
||
|
$result = $service->index();
|
||
|
return json($result);
|
||
|
}
|
||
|
|
||
|
public function add()
|
||
|
{
|
||
|
$service = new LandingPageService();
|
||
|
$result = $service->add($this->request->param());
|
||
|
return json($result);
|
||
|
}
|
||
|
|
||
|
public function edit()
|
||
|
{
|
||
|
$service = new LandingPageService();
|
||
|
$result = $service->edit($this->request->param());
|
||
|
return json($result);
|
||
|
}
|
||
|
|
||
|
public function del()
|
||
|
{
|
||
|
$service = new LandingPageService();
|
||
|
$result = $service->del($this->request->param());
|
||
|
return json($result);
|
||
|
}
|
||
|
}
|