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

// EventV2CorehrOffboardingChecklistUpdatedV2 离职流转流程的状态变更消息
//
// doc: https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/offboarding/events/checklist_updated
func (r *EventCallbackService) HandlerEventV2CorehrOffboardingChecklistUpdatedV2(f EventV2CorehrOffboardingChecklistUpdatedV2Handler) {
	r.cli.eventHandler.eventV2CorehrOffboardingChecklistUpdatedV2Handler = f
}

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

// EventV2CorehrOffboardingChecklistUpdatedV2 ...
type EventV2CorehrOffboardingChecklistUpdatedV2 struct {
	EmploymentID       string                                                  `json:"employment_id,omitempty"`        // 员工 ID
	TargetUserID       *EventV2CorehrOffboardingChecklistUpdatedV2TargetUserID `json:"target_user_id,omitempty"`       // 用户 ID
	OffboardingID      string                                                  `json:"offboarding_id,omitempty"`       // 离职记录 ID
	ChecklistProcessID string                                                  `json:"checklist_process_id,omitempty"` // 离职流转流程发起后的审批流程实例 ID
	ChecklistStatus    int64                                                   `json:"checklist_status,omitempty"`     // 离职流转状态, 可选值有: 1: 未发起, 2: 进行中, 3: 已完成, 4: 已拒绝, 5: 已撤销
}

// EventV2CorehrOffboardingChecklistUpdatedV2TargetUserID ...
type EventV2CorehrOffboardingChecklistUpdatedV2TargetUserID struct {
	UnionID string `json:"union_id,omitempty"` // 用户的 union id
	UserID  string `json:"user_id,omitempty"`  // 用户的 user id, 字段权限要求: 获取用户 user ID
	OpenID  string `json:"open_id,omitempty"`  // 用户的 open id
}
