You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.7 KiB
69 lines
1.7 KiB
<?php
|
|
|
|
namespace app\admin\controller\document;
|
|
|
|
use app\admin\controller\AdminBaseController;
|
|
use app\admin\service\document\IndexService;
|
|
|
|
class Index extends AdminBaseController
|
|
{
|
|
|
|
public function index()
|
|
{
|
|
$service = new IndexService();
|
|
$result = $service->index();
|
|
return json($result);
|
|
}
|
|
|
|
public function add()
|
|
{
|
|
$service = new IndexService();
|
|
$result = $service->add($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
public function detail()
|
|
{
|
|
$service = new IndexService();
|
|
$result = $service->detail($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
public function edit()
|
|
{
|
|
$service = new IndexService();
|
|
$result = $service->edit($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
public function del()
|
|
{
|
|
$service = new IndexService();
|
|
$result = $service->del($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
// 咨询文章列表
|
|
public function informationArticleList()
|
|
{
|
|
$service = new IndexService();
|
|
$result = $service->informationArticleList($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
// 咨询文章新增
|
|
public function informationArticleAdd()
|
|
{
|
|
$service = new IndexService();
|
|
$result = $service->informationArticleAdd($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
// 咨询文章编辑
|
|
public function informationArticleEdit()
|
|
{
|
|
$service = new IndexService();
|
|
$result = $service->informationArticleEdit($this->request->param());
|
|
return json($result);
|
|
}
|
|
}
|