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.
48 lines
1.3 KiB
48 lines
1.3 KiB
<?php
|
|
namespace app\admin\controller\auth;
|
|
|
|
use app\admin\service\auth\AuthRoleService;
|
|
use app\admin\controller\AdminBaseController;
|
|
use think\Request;
|
|
|
|
// 用户管理
|
|
class AuthRole extends AdminBaseController
|
|
{
|
|
//新增
|
|
public function add()
|
|
{
|
|
$service = new AuthRoleService();
|
|
$result = $service->add($this->request->param());
|
|
return json($result);
|
|
}
|
|
public function edit()
|
|
{
|
|
$service = new AuthRoleService();
|
|
$result = $service->edit($this->request->param('id'),$this->request->param());
|
|
return json($result);
|
|
}
|
|
public function list()
|
|
{
|
|
$service = new AuthRoleService();
|
|
$result = $service->list($this->request->param());
|
|
return json($result);
|
|
}
|
|
public function del()
|
|
{
|
|
$service = new AuthRoleService();
|
|
$result = $service->del($this->request->param('id'));
|
|
return json($result);
|
|
}
|
|
public function updateStatus()
|
|
{
|
|
$service = new AuthRoleService();
|
|
$result = $service->updateStatus($this->request->param('id'),$this->request->param());
|
|
return json($result);
|
|
}
|
|
public function allList(){
|
|
$service = new AuthRoleService();
|
|
$result = $service->allList($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
}
|
|
|