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

// EventV2URLPreviewGet 拉取链接预览数据 回调作用于应用的链接预览能力。当企业内发布了具备链接预览能力的应用后, 企业成员在飞书客户端查看、发送链接时, 如果链接命中了应用注册的 URL 规则, 则应用会向指定的回调地址发送 拉取链接预览数据 回调。你需要在对应的业务服务器内接收回调请求, 并在 3 秒内响应回调请求, 飞书客户端会根据响应数据渲染链接预览效果。
//
// 需应用配置并生效链接预览能力后, 回调才可以推送生效。
//
// doc: https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/development-link-preview/pull-link-preview-data-callback-structure
func (r *EventCallbackService) HandlerEventV2URLPreviewGet(f EventV2URLPreviewGetHandler) {
	r.cli.eventHandler.eventV2URLPreviewGetHandler = f
}

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

// EventV2URLPreviewGet ...
type EventV2URLPreviewGet struct {
}
