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.
73 lines
1.7 KiB
73 lines
1.7 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 customerUser()
|
|
{
|
|
$service = new AgentService();
|
|
$result = $service->customerUser($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);
|
|
}
|
|
}
|