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

// EventV2ApplicationApplicationFeedbackUpdatedV6 当反馈的处理状态被更新时, 触发该事件
//
// doc: https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/application-v6/application-feedback/events/updated
// new doc: https://open.feishu.cn/document/server-docs/application-v6/event/updated
func (r *EventCallbackService) HandlerEventV2ApplicationApplicationFeedbackUpdatedV6(f EventV2ApplicationApplicationFeedbackUpdatedV6Handler) {
	r.cli.eventHandler.eventV2ApplicationApplicationFeedbackUpdatedV6Handler = f
}

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

// EventV2ApplicationApplicationFeedbackUpdatedV6 ...
type EventV2ApplicationApplicationFeedbackUpdatedV6 struct {
	FeedbackIDs []string                                                  `json:"feedback_ids,omitempty"` // 反馈id列表
	Status      int64                                                     `json:"status,omitempty"`       // 反馈处理状态（枚举值, 0: 未处理  1: 已处理  2: 处理中 3: 已关闭）
	AppID       string                                                    `json:"app_id,omitempty"`       // 应用的 app_id
	UpdateTime  string                                                    `json:"update_time,omitempty"`  // 反馈处理时间, 格式为yyyy-mm-dd hh:mm:ss
	OperatorID  *EventV2ApplicationApplicationFeedbackUpdatedV6OperatorID `json:"operator_id,omitempty"`  // 操作者用户 ID
}

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