|
...
|
...
|
@@ -21,9 +21,13 @@ class UserController extends BaseController |
|
|
|
* @author :liyuhang
|
|
|
|
* @method
|
|
|
|
*/
|
|
|
|
public function lists(ViewDeptUser $viewDeptUser){
|
|
|
|
public function lists(UserModel $userModel){
|
|
|
|
//TODO::搜索参数统一处理
|
|
|
|
$this->map['project_id'] = $this->user['project_id'];
|
|
|
|
$lists = $viewDeptUser->lists($this->map,$this->page,$this->row,'user_id');
|
|
|
|
$lists = $userModel->lists($this->map,$this->page,$this->row,$this->order,['id','name','mobile','created_at','wechat','status']);
|
|
|
|
if(empty($lists)){
|
|
|
|
$this->response('error',Code::USER_ERROR,[]);
|
|
|
|
}
|
|
|
|
$this->response('success',Code::SUCCESS,$lists);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|