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.
33 lines
675 B
33 lines
675 B
2 months ago
|
<?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);
|
||
|
}
|
||
|
}
|