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

// EventV1LeaveApprovalRevert 请假撤销消息
//
// doc: https://open.feishu.cn/document/ukTMukTMukTM/uIDO24iM4YjLygjN/event/leave
// new doc: https://open.feishu.cn/document/server-docs/approval-v4/event/special-event/leave
func (r *EventCallbackService) HandlerEventV1LeaveApprovalRevert(f EventV1LeaveApprovalRevertHandler) {
	r.cli.eventHandler.eventV1LeaveApprovalRevertHandler = f
}

// EventV1LeaveApprovalRevertHandler event EventV1LeaveApprovalRevert handler
type EventV1LeaveApprovalRevertHandler func(ctx context.Context, cli *Lark, schema string, header *EventHeaderV1, event *EventV1LeaveApprovalRevert) (string, error)

// EventV1LeaveApprovalRevert ...
type EventV1LeaveApprovalRevert struct {
	AppID        string `json:"app_id,omitempty"`        // 如: cli_xxx
	TenantKey    string `json:"tenant_key,omitempty"`    // 如: xxx
	Type         string `json:"type,omitempty"`          // 如: leave_approval_revert
	InstanceCode string `json:"instance_code,omitempty"` // 审批实例Code. 如: xxx
	OperateTime  int64  `json:"operate_time,omitempty"`  // 如: 1564590532
	Status       string `json:"status,omitempty"`        // 如: REVERTED
}
