From 1434642c426191f18c784731859a509164fefe1a Mon Sep 17 00:00:00 2001 From: marin Date: Mon, 23 Dec 2024 15:51:37 +0800 Subject: [PATCH] =?UTF-8?q?feat(api=5Fevent=5Fcallback):=20=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E5=9B=9E=E8=B0=83=E6=8E=A5=E5=8F=A3=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E7=9A=84=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 EventCallbackData 结构体中添加 InputValue 字段 --- api_event_callback.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/api_event_callback.go b/api_event_callback.go index ed3a6270..a829f111 100644 --- a/api_event_callback.go +++ b/api_event_callback.go @@ -68,11 +68,12 @@ type EventCardCallback struct { // EventCardCallbackAction ... type EventCardCallbackAction struct { - Value json.RawMessage `json:"value"` // 交互元素的value字段值 - Tag string `json:"tag"` // 交互元素的tag字段值 - Option string `json:"option"` // 选中option的value(button元素不适用) - Name string `json:"name"` // 按钮的唯一标识 - FormValue json.RawMessage `json:"form_value"` // Form内交互组件的name和value + Value json.RawMessage `json:"value"` // 交互元素的value字段值 + Tag string `json:"tag"` // 交互元素的tag字段值 + Option string `json:"option"` // 选中option的value(button元素不适用) + Name string `json:"name"` // 按钮的唯一标识 + FormValue json.RawMessage `json:"form_value"` // Form内交互组件的name和value + InputValue string `json:"input_value"` } // EventCardHandler ...