{ "id": "item-delete-own", "label": "删除", "description": "删除自己拥有的记录。用户点宿主「删除」:行上仅所有者=当前用户时显示;勾选批量时他人记录由技能跳过。", "replaces": "delete", "placements": ["agent"], "executionProfile": "sync", "interaction": "confirm", "interactionByPlacement": { "delete": "confirm", "agent": "form" }, "confirmation": { "message": "确认删除?仅删除你拥有的记录,他人记录会跳过;删除后不可恢复。" }, "bind": { "tables": ["business_items"], "selectionMode": "required", "visibleWhen": { "field": "owner_user_id", "equalsFrom": "currentUser.userId" }, "inputMapping": { "itemId": "$row.$pk", "itemIds": "$selection.ids" } }, "hostEffects": { "onSuccess": ["reloadTable", "clearSelection"] }, "inputSchema": { "type": "object", "properties": { "itemId": { "type": "string", "title": "编号", "description": "行内触发时自动填入", "readOnly": true }, "itemIds": { "type": "string", "title": "编号列表", "description": "勾选时自动填入", "readOnly": true } } }, "entrypoint": { "type": "cli", "command": "item-delete", "args": ["--id", "{{itemId}}", "--ids", "{{itemIds}}"] } }