获取任务统计大盘
获取当前用户的任务统计信息。
请求地址:/openapi/v1/workflow/statistic
请求方法:GET
请求参数
| 参数 | 类型 | 是否必选 | 说明 | 示例 |
|---|---|---|---|---|
| accountId | String | 是 | 查询视角用户 ID。 | "1238779494193071" |
返回参数
| 参数 | 类型 | 说明 | 示例 |
|---|---|---|---|
| success | Boolean | 请求是否成功。 | true |
| data | Array | 任务类型统计。 | |
| accountType | String | 任务关联用户类型:
| "submitter" |
| cnt | Integer | 任务数。 | 5 |
| errorCode | String | 错误码。 | 无 |
| message | String | 异常信息。 | 无 |
调用成功示例
{
"success": true,
"requestId": "Op6b0PXR-BHGBdNLnCBEe4ZEdGCh1DTP",
"data": [{
"accountType": "submitter",
"cnt": 143
}, {
"accountType": "toApprove",
"cnt": 8
}, {
"accountType": "toExecute",
"cnt": 8
}]
}