Merge pull request '新增公司成员接口' (#36) from zhangwei into dev
Reviewed-on: #36
This commit is contained in:
commit
1d7f608c95
|
@ -187,4 +187,32 @@
|
||||||
}
|
}
|
||||||
return json($result);
|
return json($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//获取公司成员列表
|
||||||
|
public function companyUserLists(): Json
|
||||||
|
{
|
||||||
|
$params = $this->request->get(['company_id','page_no','page_size']);
|
||||||
|
if(empty($params['company_id'])){
|
||||||
|
return $this->fail('缺少必要参数');
|
||||||
|
}
|
||||||
|
$result = curl_post(env('project.worker_domain').'/middleapi/company/companyUserLists',$params,$this->reqHeader);
|
||||||
|
if($result['code'] == 0){
|
||||||
|
return $this->fail($result['msg']);
|
||||||
|
}
|
||||||
|
return json($result);
|
||||||
|
}
|
||||||
|
|
||||||
|
//获取公司成员详情
|
||||||
|
public function companyUserDetail(): Json
|
||||||
|
{
|
||||||
|
$params = $this->request->get(['user_id']);
|
||||||
|
if(empty($params['user_id'])){
|
||||||
|
return $this->fail('缺少必要参数');
|
||||||
|
}
|
||||||
|
$result = curl_post(env('project.worker_domain').'/middleapi/company/companyUserDetail',$params,$this->reqHeader);
|
||||||
|
if($result['code'] == 0){
|
||||||
|
return $this->fail($result['msg']);
|
||||||
|
}
|
||||||
|
return json($result);
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue