DeptUserController.php
1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?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'];
}
}