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

// EventV2HireApplicationDeletedV1 投递被删除后会推送该事件
//
// 注意该事件仅通知变更投递id及阶段id, 需要配合另外的查询接口反查实际的投递或阶段信息。
//
// doc: https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application/events/deleted
// new doc: https://open.feishu.cn/document/server-docs/hire-v1/candidate-management/delivery-process-management/event/deleted
func (r *EventCallbackService) HandlerEventV2HireApplicationDeletedV1(f EventV2HireApplicationDeletedV1Handler) {
	r.cli.eventHandler.eventV2HireApplicationDeletedV1Handler = f
}

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

// EventV2HireApplicationDeletedV1 ...
type EventV2HireApplicationDeletedV1 struct {
	ApplicationIDs []string `json:"application_ids,omitempty"` // 投递 ID 列表
}
