添加:代理中心 - 编辑信息获取
This commit is contained in:
parent
88f5495cdf
commit
ef8fbd9f70
|
|
@ -219,7 +219,12 @@ class Agent extends BaseController{
|
|||
|
||||
return app('json')->success($data);
|
||||
}
|
||||
// 审核
|
||||
/**
|
||||
* Common: 审核
|
||||
* Author: wu-hui
|
||||
* Time: 2024/02/01 18:00
|
||||
* @return mixed
|
||||
*/
|
||||
public function toExamine(){
|
||||
// 参数获取
|
||||
$params = $this->request->params(['id','status','reason']);
|
||||
|
|
@ -237,8 +242,6 @@ class Agent extends BaseController{
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Common: 配置信息 - 修改配置信息
|
||||
* Author: wu-hui
|
||||
|
|
|
|||
|
|
@ -173,6 +173,32 @@ class Agent extends BaseController{
|
|||
|
||||
return compact("agentApplyId", "data");
|
||||
}
|
||||
/**
|
||||
* Common: 获取申请记录
|
||||
* Author: wu-hui
|
||||
* Time: 2024/02/01 18:02
|
||||
* @return mixed
|
||||
*/
|
||||
public function applyRecord(){
|
||||
[$page, $limit] = $this->getPage();
|
||||
$params = $this->request->params([]);
|
||||
$params['uid'] = $this->request->uid();
|
||||
$data = app()->make(AgentApplyRepository::class)->getList((array)$params,(int)$page,(int)$limit);
|
||||
|
||||
return app('json')->success($data);
|
||||
}
|
||||
/**
|
||||
* Common: 单条申请信息
|
||||
* Author: wu-hui
|
||||
* Time: 2024/02/01 18:27
|
||||
* @return mixed
|
||||
*/
|
||||
public function applyInfo(){
|
||||
$applyId = $this->request->param('apply_id');
|
||||
$data = app()->make(AgentApplyRepository::class)->getSearchModel(['id'=>$applyId])->findOrEmpty()->toArray();
|
||||
|
||||
return app('json')->success($data);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -389,6 +389,8 @@ Route::group('api/', function () {
|
|||
Route::get('single_agent_info/:id', 'singleAgentInfo');// 获取单个代理人员信息
|
||||
Route::get('get_config', 'getConfig');// 获取配置信息
|
||||
Route::post('agent_apply', 'apply');// 提交申请信息
|
||||
Route::post('apply_record', 'applyRecord');// 申请记录
|
||||
Route::post('apply_info', 'applyInfo');// 申请记录
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue