This repository has been archived by the owner on May 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 113
部门管理
张铭阳 edited this page Sep 30, 2017
·
1 revision
API
$app->department->list(int $id)
Example
$app->department->list(1000);
API
$app->department->get(int $id)
Example
$app->department->get(1000);
API
$app->department->create(array $params)
Example
$app->department->create([
'name' => '钉钉事业部',
'parentid' => 1,
// ...
]);
API
$app->department->update(array $params)
Example
$app->department->update([
'name' => '钉钉事业部',
'parentid' => 1,
'id' => 1,
// ...
]);
API
$app->department->delete(int $id)
Example
$app->department->delete(123);
API
$app->department->parent(int $id)
Example
$app->department->parent(123);
API
$app->department->userParent(string $userId)
Example
$app->department->userParent('zhangsan');
COPYRIGHT © MINGYOUNG