>[warning] 使用前必须引入**UserTrait**片段
use db\traits\sys\UserTrait;
#### getUserRoles()-获取指定用户所属的角色/岗位信息
>[info] getUserRoles($userId){}
### 参数
* userId:用户编号
>[success]返回值 array/false
### error
```php
return false;
```
### success
```php
array(
array(
'uid' =>'',
'group_id' =>'',
'role_id' =>'',
'role_name' =>'',
'sys_role_id'=>'',
),
array(
'uid' =>'',
'group_id' =>'',
'role_id' =>'',
'role_name' =>'',
'sys_role_id'=>'',
),
.....
)
```
- 空白目录
- 简介
- 前端
- 组件
- 文件上传
- 用户选择
- 组织机构选择
- 角色岗位选择
- 岗位选择
- 用户组选择
- 高拍仪上传
- 公共类库
- 组织机构
- bindToOrg
- bindusertoremote
- getAncestors
- getAllChildIds
- getByOrgId
- getByThirdAppPkId
- getChilds
- getChildsCount
- getMasterOrg
- getOrgUserById
- getOrgUser
- getOrgRoleData
- getOrgRoleQuota
- getOrgRoleUserCount
- getParents
- getPosteritys
- getTreeArray
- getUserOrgs
- getUserOrgCount
- getUserOrgRoleInfo
- hasChild
- hasMasterOrg
- hasBind
- isOrgUser
- updateOrg
- 用户管理
- getAuthorInfo
- getByDuty
- getByGroup
- getByMobile
- getByOrg
- getByUserId
- getByUserName
- getByRole
- getByToken
- getByThirdUserId
- getUserOrgs
- getUserRoles
- getUserList
- 统一待办
- createTodo
- createHandle
- createRead
- removeTodo
- getTodoList
- setReaded