Skip to content

Commit

Permalink
feat(api_event_callback): 事件回调接口增加输入框的值
Browse files Browse the repository at this point in the history
- 在 EventCallbackData 结构体中添加 InputValue 字段
  • Loading branch information
marunrun committed Dec 23, 2024
1 parent 5adf90a commit 1434642
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions api_event_callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ...
Expand Down

0 comments on commit 1434642

Please sign in to comment.