审核工单
yearning_audit_orderReview SQL audit tickets: approve to execute SQL, reject with reason, or undo the current audit step. Requires confirmation for high-risk approvals.
Instructions
审核工单:agree 同意(末级步骤会触发 SQL 执行)/ reject 驳回 / undo 撤回。flag 为当前审核步骤序号(用 yearning_order_timeline 确认);reject 必须提供 reason。agree 为高危操作,必须 confirm=true。对应 POST /api/v2/audit/order/state
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flag | Yes | 当前审核步骤序号(来自 order_timeline) | |
| delay | No | 延时执行时间(可选) | |
| action | Yes | 审核动作 | |
| reason | No | 驳回理由(action=reject 时必填) | |
| confirm | Yes | 必须为 true,确认执行审核动作 | |
| work_id | Yes | 工单号 | |
| source_id | Yes | 数据源 ID |