保存审批日志数据
最近更新时间: 2025年06月09日 01时48分03秒
能力接口
描述
如果需要在任务中心查看详细的审批日志,可以通过该接口推送。
支持的模式
客户端模式,授权码模式
请求方法
POST
请求地址
数据来源
请求体参数
| 参数名 | 类型 | 是否必须 | 备注 |
|---|---|---|---|
| logs | object[] | 是 | 审批日志列表 |
| userId | string | 是 | 工号 |
| taskId | int | 是 | 任务id |
| instId | int | 是 | 实例id,实例的唯一标识,即用户的一条申请id |
| nodeName | string | 是 | 节点名称 |
| operationDesc | string | 是 | 操作名称 |
| comment | string | 是 | 审批意见 |
| created | string | 是 | 创建时间 |
请求示例
curl -X 'POST' \
'https://api.tongji.edu.cn/v1/infra/task_center/push_task_log' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer e447e4b4b8e23973b42c44b8d324242' \
-d '{
"logs": [
{
"comment": "通过",
"created": "2023-09-17 10:00:00",
"instId": 1,
"nodeName": "部门审核",
"userId": "******",
"operationDesc": "部门审核通过",
"taskId": 1,
}
]
}'
返回示例
{
"code": "A00000",
"msg": "操作成功",
"data": null
}