new-admin-api/app/controller/merchant/marketing/Agent.php

25 lines
643 B
PHP

<?php
namespace app\controller\merchant\marketing;
use app\common\repositories\marketing\AgentRepository;
use crmeb\basic\BaseController;
class Agent extends BaseController{
/**
* Common: 代理列表
* Author: wu-hui
* Time: 2024/04/17 14:20
* @return mixed
*/
public function agentList(){
[$page, $limit] = $this->getPage();
$params = $this->request->params(['uid','agent_type','contact_name','contact_phone','is_invite_supplier']);
$data = app()->make(AgentRepository::class)->getList((array)$params,(int)$page,(int)$limit);
return app('json')->success($data);
}
}