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.
103 lines
2.5 KiB
103 lines
2.5 KiB
<?php
|
|
|
|
namespace app\admin\controller;
|
|
|
|
use app\admin\service\AgentService;
|
|
|
|
class Agent extends AdminBaseController
|
|
{
|
|
|
|
// 代理列表
|
|
public function index()
|
|
{
|
|
$service = new AgentService();
|
|
$result = $service->index();
|
|
return json($result);
|
|
}
|
|
|
|
// 代理用户列表
|
|
public function user()
|
|
{
|
|
$service = new AgentService();
|
|
$result = $service->user($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
// 管理用户
|
|
public function manager()
|
|
{
|
|
$service = new AgentService();
|
|
$result = $service->manager($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
// 代理下客服列表
|
|
public function customerList()
|
|
{
|
|
$service = new AgentService();
|
|
$result = $service->customerList($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
// 客服接待用户开启或关闭
|
|
public function customerReceptionEdit()
|
|
{
|
|
$service = new AgentService();
|
|
$result = $service->customerReceptionEdit($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
// 客服下所有用户
|
|
public function customerUserList()
|
|
{
|
|
$service = new AgentService();
|
|
$result = $service->customerUserList($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
// 变更用户绑定客服
|
|
public function changeUserCustomer()
|
|
{
|
|
$service = new AgentService();
|
|
$result = $service->changeUserCustomer($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
// aws ivs 推流列表
|
|
public function awsIvsList()
|
|
{
|
|
$service = new AgentService();
|
|
$result = $service->awsIvsList($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
// 添加主播信息
|
|
public function awsIvsAdd()
|
|
{
|
|
$service = new AgentService();
|
|
$result = $service->awsIvsAdd($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
// 编辑主播信息
|
|
public function awsIvsEdit()
|
|
{
|
|
$service = new AgentService();
|
|
$result = $service->awsIvsEdit($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
public function userListByChannel()
|
|
{
|
|
$service = new AgentService();
|
|
$result = $service->userListByChannel($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
public function statsByChannel()
|
|
{
|
|
$service = new AgentService();
|
|
$result = $service->statsByChannel($this->request->param());
|
|
return json($result);
|
|
}
|
|
}
|