// 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"
)

// EventV2CorehrProcessCcUpdatedV2 流程中生成抄送单据后会触发该事件。抄送节点会生成抄送单据任务。如果一个节点有多个人抄送人, 则会生成多个抄送单据。
//
// 你需要在应用内配置事件订阅, 并订阅该事件, 这样才可以在事件触发时接收到事件数据。了解事件订阅可参见[事件概述](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM)。
//
// doc: https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process-cc/events/updated
func (r *EventCallbackService) HandlerEventV2CorehrProcessCcUpdatedV2(f EventV2CorehrProcessCcUpdatedV2Handler) {
	r.cli.eventHandler.eventV2CorehrProcessCcUpdatedV2Handler = f
}

// EventV2CorehrProcessCcUpdatedV2Handler event EventV2CorehrProcessCcUpdatedV2 handler
type EventV2CorehrProcessCcUpdatedV2Handler func(ctx context.Context, cli *Lark, schema string, header *EventHeaderV2, event *EventV2CorehrProcessCcUpdatedV2) (string, error)

// EventV2CorehrProcessCcUpdatedV2 ...
type EventV2CorehrProcessCcUpdatedV2 struct {
	ProcessID  string `json:"process_id,omitempty"`  // 流程实例ID
	ApproverID string `json:"approver_id,omitempty"` // 抄送单据ID
	Status     int64  `json:"status,omitempty"`      // 单据状态, 可选值有: 5: 抄送到达
	BizType    string `json:"biz_type,omitempty"`    // 业务类型, 详情请查看[业务类型](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process-approver/events/biz-type), 长度范围: `1` ～ `200` 字符
}
