| @@ 47-56 (lines=10) @@ | ||
| 44 | * |
|
| 45 | * @return \EntWeChat\Support\Collection |
|
| 46 | */ |
|
| 47 | public function batchGet($departmentId, $fetchChild = null, $status = null) |
|
| 48 | { |
|
| 49 | $params = [ |
|
| 50 | 'department_id' => $departmentId, |
|
| 51 | 'fetch_child' => $fetchChild, |
|
| 52 | 'status' => $status, |
|
| 53 | ]; |
|
| 54 | ||
| 55 | return $this->parseJSON('get', [self::API_BATCH_GET, $params]); |
|
| 56 | } |
|
| 57 | ||
| 58 | /** |
|
| 59 | * List users. |
|
| @@ 67-76 (lines=10) @@ | ||
| 64 | * |
|
| 65 | * @return \EntWeChat\Support\Collection |
|
| 66 | */ |
|
| 67 | public function lists($departmentId, $fetchChild = null, $status = null) |
|
| 68 | { |
|
| 69 | $params = [ |
|
| 70 | 'department_id' => $departmentId, |
|
| 71 | 'fetch_child' => $fetchChild, |
|
| 72 | 'status' => $status, |
|
| 73 | ]; |
|
| 74 | ||
| 75 | return $this->parseJSON('get', [self::API_LIST, $params]); |
|
| 76 | } |
|
| 77 | ||
| 78 | /** |
|
| 79 | * Create a user. |
|