提交审批事件 #
提交审批事件的类型为SUBMISSION_APPROVED
,示例消息体如下:
{
"id": "c5Ce8ZO1SKKKYybe1M_2DQ",
"type": "SUBMISSION_APPROVED",
"appId": "APP369363402021143552",
"eventId": "EVT377353803868931072",
"submissionId": "SBM375936684929319936",
"qrId": "QRC370517157622055936",
"plateId": "MRY370517157668193280",
"qrCustomId": null,
"groupId": "GRP370517025530840064",
"pageId": "p_6NXGxU6cAB73xwKQW3Tm6u",
"answers": [
{
"controlId": "c_ksaKmhD4LTgUByZx5npvkp",
"controlType": "SINGLE_LINE_TEXT",
"content": "借用两天"
},
{
"controlId": "c_mCttvyCxyhQEM2op7sWum8",
"controlType": "DATE",
"date": "2023-06-22"
}
],
"tenantId": "TNT369363343011480576",
"createdAt": 1685614751253,
"createdBy": "MBR369363343011480577",
"referenceData": null,
"approval": {
"passed": true,
"note": null,
"approvedAt": 1667808618737,
"approvedBy": "MBR369363343011480577"
}
}
字段含义:
字段 | 解释 |
---|---|
id | Webhook事件ID |
type | Webhook事件类型 |
appId | 应用ID |
eventId | 码如云内部事件ID |
submissionId | 提交ID |
qrId | 实例ID |
plateId | 实例的码牌编号 |
qrCustomId | 实例的自定义编号,可通过编辑实例基本信息或调用新建实例(高级方式)API进行设置 |
groupId | 实例所在分组的ID |
pageId | 页面ID |
answers | 控件提交值的数组 |
tenantId | 客户在码如云的租户ID |
createdAt | 提交创建时间,格式为Epoch的毫秒数,即自1970年1月1日(UTC/GMT的午夜)开始所经过的毫秒数 |
createdBy | 提交者的成员ID |
referenceData | 提交表单时所提供的额外参考数据,请参考新建提交API |
approval.passed | 审批是否通过 |
approval.note | 审批意见 |
approval.approvedAt | 审批时间,格式为Epoch的毫秒数,即自1970年1月1日(UTC/GMT的午夜)开始所经过的毫秒数 |
approval.approvedBy | 审批人的成员ID |