From 2e71a008c5dc7e44d37979a859a50ca1cc762f8d Mon Sep 17 00:00:00 2001 From: chyroc Date: Mon, 18 Mar 2024 16:17:35 +0800 Subject: [PATCH] add: EventV2CorehrProcessNodeUpdatedV2 --- ...lback_v2_corehr_process_node_updated_v2.go | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 api_event_callback_v2_corehr_process_node_updated_v2.go diff --git a/api_event_callback_v2_corehr_process_node_updated_v2.go b/api_event_callback_v2_corehr_process_node_updated_v2.go new file mode 100644 index 00000000..053c544a --- /dev/null +++ b/api_event_callback_v2_corehr_process_node_updated_v2.go @@ -0,0 +1,43 @@ +// Code generated by lark_sdk_gen. DO NOT EDIT. +/** + * Copyright 2022 chyroc + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package lark + +import ( + "context" +) + +// EventV2CorehrProcessNodeUpdatedV2 配置的节点为节点定义(node_definition_id 是唯一标识)。在流程实例中, 每个流程实例生成的节点实例会不同。{使用示例}(url=/api/tools/api_explore/api_explore_config?project=corehr&version=v2&resource=process.node&event=updated) +// +// doc: https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process-node/events/updated +func (r *EventCallbackService) HandlerEventV2CorehrProcessNodeUpdatedV2(f EventV2CorehrProcessNodeUpdatedV2Handler) { + r.cli.eventHandler.eventV2CorehrProcessNodeUpdatedV2Handler = f +} + +// EventV2CorehrProcessNodeUpdatedV2Handler event EventV2CorehrProcessNodeUpdatedV2 handler +type EventV2CorehrProcessNodeUpdatedV2Handler func(ctx context.Context, cli *Lark, schema string, header *EventHeaderV2, event *EventV2CorehrProcessNodeUpdatedV2) (string, error) + +// EventV2CorehrProcessNodeUpdatedV2 ... +type EventV2CorehrProcessNodeUpdatedV2 struct { + FlowDefinitionID string `json:"flow_definition_id,omitempty"` // 流程定义 id + NodeDefinitionID string `json:"node_definition_id,omitempty"` // 节点定义 id + ProcessID string `json:"process_id,omitempty"` // 流程运行实例 id + ProcessNodeID string `json:"process_node_id,omitempty"` // 节点运行实例 id + NodeType int64 `json:"node_type,omitempty"` // 节点类型, 可选值有: 1: 审批节点, 2: 抄送节点, 5: 表单节点, 6: 电子签 + NodeStatus int64 `json:"node_status,omitempty"` // 节点状态, 可选值有: 1: 进行中, 2: 已拒绝, 3: 已通过, 4: 已撤回, 5: 已回退, 6: 已跳过 + BizType string `json:"biz_type,omitempty"` // 业务类型, 详情请查看[业务类型](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process-approver/events/biz-type), 长度范围: `1` ~ `200` 字符 +}