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

// EventV2HireEHRImportTaskForInternshipOfferImportedV1 飞书招聘系统内用户选择实习 Offer 导入 e-HR 系统之后, 将推送候选人信息至订阅系统中。可以使用实习 Offer id[更新实习 Offer 入/离职状态](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/offer/intern_offer_status)
//
// 搭配使用: [更新 e-HR 导入任务结果](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/ehr_import_task/patch)更新本次导入事件的结果
//
// doc: https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/ehr_import_task_for_internship_offer/events/imported
// new doc: https://open.feishu.cn/document/server-docs/hire-v1/candidate-management/delivery-process-management/onboard/events/imported
func (r *EventCallbackService) HandlerEventV2HireEHRImportTaskForInternshipOfferImportedV1(f EventV2HireEHRImportTaskForInternshipOfferImportedV1Handler) {
	r.cli.eventHandler.eventV2HireEHRImportTaskForInternshipOfferImportedV1Handler = f
}

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

// EventV2HireEHRImportTaskForInternshipOfferImportedV1 ...
type EventV2HireEHRImportTaskForInternshipOfferImportedV1 struct {
	TaskID          string                                                              `json:"task_id,omitempty"`           // 导入任务 ID
	ApplicationID   string                                                              `json:"application_id,omitempty"`    // 投递 ID
	OfferID         string                                                              `json:"offer_id,omitempty"`          // Offer ID
	PreOnboardID    string                                                              `json:"pre_onboard_id,omitempty"`    // 实习 ID
	EHRDepartmentID string                                                              `json:"ehr_department_id,omitempty"` // 导入部门 ID
	OperatorID      string                                                              `json:"operator_id,omitempty"`       // 操作人的飞书招聘 user_id
	OperatorUserID  *EventV2HireEHRImportTaskForInternshipOfferImportedV1OperatorUserID `json:"operator_user_id,omitempty"`  // 用户 ID
	EHRDepartment   *EventV2HireEHRImportTaskForInternshipOfferImportedV1EHRDepartment  `json:"ehr_department,omitempty"`    // saas 部门ID
}

// EventV2HireEHRImportTaskForInternshipOfferImportedV1EHRDepartment ...
type EventV2HireEHRImportTaskForInternshipOfferImportedV1EHRDepartment struct {
	DepartmentID     string `json:"department_id,omitempty"`      // 部门ID
	OpenDepartmentID string `json:"open_department_id,omitempty"` // 部门 Open ID
}

// EventV2HireEHRImportTaskForInternshipOfferImportedV1OperatorUserID ...
type EventV2HireEHRImportTaskForInternshipOfferImportedV1OperatorUserID 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
}
