Commit df4997cdb471ec023b2b5ae19afbe575cb3fa6c9
1 parent
94548ec8
人员离职接口
Showing
1 changed file
with
14 additions
and
0 deletions
src/Api/User.php
@@ -94,6 +94,20 @@ class User | @@ -94,6 +94,20 @@ class User | ||
94 | } | 94 | } |
95 | 95 | ||
96 | /** | 96 | /** |
97 | + * 员工离职 | ||
98 | + * @param string $employeeId | ||
99 | + * @return array | ||
100 | + */ | ||
101 | + public function dismiss(string $employeeId) : array | ||
102 | + { | ||
103 | + $params = [ | ||
104 | + 'employeeId' => $employeeId, | ||
105 | + 'employeeStatus' => self::STATUS_OFFLINE | ||
106 | + ]; | ||
107 | + return $this->service->apiRequest('post', 'employeeUpdate', $params); | ||
108 | + } | ||
109 | + | ||
110 | + /** | ||
97 | * 员工数据参数检查 | 111 | * 员工数据参数检查 |
98 | * @param array $params | 112 | * @param array $params |
99 | * @throws \Exception | 113 | * @throws \Exception |