>[warning] 使用前必须引入**Todo**模型
use app\common\model\sys\Todo as TodoModel;
#### createTodo()-生成待办
>[info] createTodo($data=array()){}
### 参数
* data:生成待办的数组
* moduleno:待办关联的模块编号
* sano:待办关联的单据编号
* userid:待办处理用户
* sceneid:场景ID
* table:关联的数据表的名称
```php
$data =array(
'sano' =>'DEMO201900001',
'moduleno' =>'DEMO',
'table' =>'db_demo',
'title' =>'这是一个标题',
'sceneid' =>'DEMO',
'userid' =>'106',
'nickname' =>'邹XX',
'apply_id' =>'84',
'apply_name'=>'刘X',
'creator_id'=>'106',
'creator_name'=>'邹XX',
'abstract' =>'月黑风高夜....',
'url1' =>'http://www.baidu.com',
'url0' =>'http://m.baidu.com'
);
```
>[success]返回值 array
### 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