Commit a8e88c63 authored by zhuwei's avatar zhuwei

电话跟进

parent f66d76eb
...@@ -760,11 +760,8 @@ class User extends Basic ...@@ -760,11 +760,8 @@ class User extends Basic
/** /**
* 订单动态 * 客户动态
* @return \think\Response * @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/ */
public function userLog(){ public function userLog(){
$params = $this->params; $params = $this->params;
...@@ -789,6 +786,34 @@ class User extends Basic ...@@ -789,6 +786,34 @@ class User extends Basic
} }
/**
* 电话跟进
* @return \think\Response
*/
public function followUpLog(){
$params = $this->params;
/* $params = array(
"user_id" => 828,
"page_no" => 1,
"page_size" => 15
);*/
if (!isset($params['user_id'])) {
return $this->response("101", "参数不全");
}
$user_id = $params['user_id'];
$pageNo = empty($params['page_no']) ? 1 : $params['page_no'];
$pageSize = empty($params['page_size']) ? 15 : $params['page_size'];
$result = $this->userLogService->phoneFollowUp($user_id,$this->siteId,$pageNo,$pageSize);
if(count($result) > 0){
return $this->response("200", "success!", $result);
}else{
return $this->response("101", "请求数据为空");
}
}
} }
\ No newline at end of file
...@@ -756,7 +756,7 @@ Route::group('broker', [ ...@@ -756,7 +756,7 @@ Route::group('broker', [
'getUserLabels' => [ 'api_broker/User/getUserLabels', [ 'method' => 'get|post' ] ],//获取电话跟进标签列表 'getUserLabels' => [ 'api_broker/User/getUserLabels', [ 'method' => 'get|post' ] ],//获取电话跟进标签列表
'userDetail' => [ 'api_broker/User/userDetail', [ 'method' => 'get|post' ] ],// 'userDetail' => [ 'api_broker/User/userDetail', [ 'method' => 'get|post' ] ],//
'userLog' => [ 'api_broker/User/userLog', [ 'method' => 'get|post' ] ],// 'userLog' => [ 'api_broker/User/userLog', [ 'method' => 'get|post' ] ],//
'followUpLog' => [ 'api_broker/User/followUpLog', [ 'method' => 'get|post' ] ],//
]); ]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment