diff --git a/.gitignore b/.gitignore index 3688da9f..0c2bded5 100644 --- a/.gitignore +++ b/.gitignore @@ -30,4 +30,5 @@ generate test/debug_test.go g release -test.log \ No newline at end of file +test.log +debug/ \ No newline at end of file diff --git a/type_message_card.go b/type_message_card.go index 9262fe9e..1066079a 100644 --- a/type_message_card.go +++ b/type_message_card.go @@ -457,6 +457,7 @@ func (r *MessageContentCardElementOverflow) SetConfirm(val *MessageContentCardOb // // https://open.feishu.cn/document/ukTMukTMukTM/uIzNwUjLycDM14iM3ATN type MessageContentCardElementSelectMenu struct { + Name string `json:"name,omitempty"` // 组件唯一标识, 默认为空。 当 input 组件嵌套在 Form 容器中时必填。指当前交互组件的唯一标识。帮助开发者在交互的回传事件中识别用户用户提交的具体是哪个交互组件。 Tag MessageContentCardElementTag `json:"tag,omitempty"` // select_static, select_person Placeholder *MessageContentCardObjectText `json:"placeholder,omitempty"` // 占位符,无默认选项时必须有 InitialOption string `json:"initial_option,omitempty"` // 默认选项的value字段值 @@ -468,6 +469,11 @@ type MessageContentCardElementSelectMenu struct { // IsMessageContentCardElement ... func (r MessageContentCardElementSelectMenu) IsMessageContentCardElement() {} +func (r *MessageContentCardElementSelectMenu) SetName(val string) *MessageContentCardElementSelectMenu { + r.Name = val + return r +} + func (r *MessageContentCardElementSelectMenu) SetPlaceholder(val *MessageContentCardObjectText) *MessageContentCardElementSelectMenu { r.Placeholder = val return r @@ -821,6 +827,8 @@ func (r *MessageContentCardModuleColumn) SetBottomVerticalAlign() *MessageConten // === MessageContentCardModuleForm === // MessageContentCardModuleForm 表单容器 +// +// https://bytedance.larkoffice.com/wiki/O7oxw4i6hify1mkp1DncJNBknth type MessageContentCardModuleForm struct { Name string `json:"name"` Elements []MessageContentCardElement `json:"elements"` // Form 表单的叶子节点 可内嵌布局容器、呈现组件、交互组件