|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Bside\User;
|
|
|
|
|
|
|
|
use App\Enums\Common\Code;
|
|
|
|
use App\Http\Controllers\Bside\BaseController;
|
|
|
|
use App\Http\Logic\Bside\User\DeptUserLogic;
|
|
|
|
use App\Models\User\DeptUser;
|
|
|
|
use App\Models\User\ViewDeptUser;
|
|
|
|
|
|
|
|
class DeptUserController extends BaseController
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param ViewDeptUser $viewDeptUser
|
|
|
|
* @name :(列表)lists
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/5/17 17:27
|
|
|
|
*/
|
|
|
|
public function lists(ViewDeptUser $viewDeptUser){
|
|
|
|
$this->param['project_id'] = $this->user['project_id'];
|
|
|
|
$lists = $viewDeptUser->lists($this->map,$this->page,$this->row,$this->order);
|
|
|
|
$this->response('success',Code::SUCCESS,$lists);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name :(获取成员列表)get_user_list
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/5/17 17:38
|
|
|
|
*/
|
|
|
|
public function get_user_list(DeptUserLogic $deptUserLogic){
|
|
|
|
//获取当前用户已添加的成员
|
|
|
|
$list = $deptUserLogic->get_user_list();
|
|
|
|
$this->response('success',Code::SUCCESS,$list);
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* @name :(添加或编辑成员)save
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/5/17 17:36
|
|
|
|
*/
|
|
|
|
public function add(DeptUserLogic $deptUserLogic){
|
|
|
|
$this->param['project_id'] = $this->user['project_id'];
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|