>[warning] 使用前必须引入**Organization**模型
use app\common\model\sys\Organization as OrgModel;
#### bindusertoremote()-同步用户到远端
>[info] bindusertoremote($userdata,$needToSync=true){}
### 参数
* userdata:用户参数
* username:用户账号
* departmentId:用户部门
* needToSync:是否需要同步
* true:需要
* false:不需要
>[success]返回值
### error
```php
array(
'code' => 0,
'msg' => '提示信息'
)
```
### success
```php
array(
'code' => 1,
'msg' => 'success'
)
```
- 空白目录
- 简介
- 前端
- 组件
- 文件上传
- 用户选择
- 组织机构选择
- 角色岗位选择
- 岗位选择
- 用户组选择
- 高拍仪上传
- 公共类库
- 组织机构
- 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