主题
待办消息发送
| 接口名称 | url | 请求方式 | 请求数据类型 |
|---|---|---|---|
| 待办消息发送 | /api/todo-center/newtodo/open/generatetodo.json | post | application/json |
请求参数
| 参数名称 | 二级参数 | 参数说明 | 是否必填 | 数据类型 |
|---|---|---|---|---|
| url | 点击待办跳转的URL | 是 | String | |
| sourceId | 生成的待办所关联的第三方服务业务记录的id,对应待办处理中的sourceitemid | 是 | String | |
| batchId | 批次ID, 标识是同一条审批流程的编号,流程审批中,所有的待办batchId必须一致,否则将会出现问题 | 是 | string | |
| content | 待办内容 | 是 | String | |
| title | 来自字段的内容显示 | 是 | String | |
| itemtitle | 待办项标题内容显示,选填,如不填,则默认为title值 | 是 | String | |
| headImg | 待办在客户端显示的图URL | 是 | String | |
| appId | 生成的待办所关联的第三方服务类型id (待办中心的appid) | 是 | String | |
| senderId | 待办的发送人的openId,可不填 | 否 | String | |
| eid | 待办的发送人所在工作圈eid | 是 | String | |
| level | 待办紧急程度 0表示程度最低,最大为4,默认为0 | 否 | Integer | |
| params | jobNo结点的上一级结点(父结点) | 是 | JsonArray | |
| jobNo | 待办接收人jobNo, 可填多人 | 是 | String | |
| todoType | 待办类型: 0:待阅(通知);1:待审批(待办); | 是 | Integer | |
| processStatus | 0-不可以处理(默认),1-可以处理 (如果设置为1 那么待办中心可以处理待办并修改待办状态,为0则不允许待办中心处理待办。设置为1需要提供回调接口 对接待办中心处理后回调同步待办状态) | 否 | Integer | |
| urgentStatus | 加急状态 0普通(默认) 1催办 | 否 | Integer | |
| pendingStatus | 暂挂状态 0普通 (默认)1 暂挂 | 否 | Integer | |
| sysTag | 系统标识 标识子系统 | 否 | string |
json
curl --location '{{url}}/api/todo-center/newtodo/open/generatetodo.json' \
--header 'Content-Type: application/json' \
--data-raw '
{
"content": "单据需要您审批",
"title": "待办测试",
"itemtitle": "请假审批",
"headImg": "http://ejia.tbea.com/space/c/photo/load?id=5a2f7ad750f8dd7810e79981",
"appId": "1113811161813352448",
// "eid": "101",
"senderId":"1",
"params": [
{
"jobNo": "0083xx"
}
],
"url": "http://10.131.2.91:8866/#/chuli?appId=1113811161813352448&sourceId=source673ww12347&batchId=batch5414412345",
"sourceId": "12345412",
"todoType": 1
}
'