Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

角色管理

张铭阳 edited this page Sep 30, 2017 · 1 revision

获取企业角色列表

API

array list(int $size = null, int $offset = null)

Example

$app->role->list(10, 20);

获取角色的员工列表

API

array simpleList(int $roleId, int $size = null, int $offset = null)

Example

$app->role->simpleList(1203141);

批量为员工增加角色信息

API

array attach(array $roleList, array $userList)

Example

$app->role->attach([1, 2, 3, 4], ['zhangsan', 'lisi']);

批量删除员工角的色信息

API

array detach(array $roleList, array $userList)

Example

$app->role->detach([1, 2, 3, 4], ['zhangsan', 'lisi']);

删除角色信息

API

array delete(int $roleId)

Example

$app->role->delete(1);

获取角色组信息

API

array group(int $groupId)

Example

$app->role->group(1);