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
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);
COPYRIGHT © MINGYOUNG