From 024fb2a92dbae3f2f146eb80c73165d30f7b57ed Mon Sep 17 00:00:00 2001 From: lumiaqian Date: Sat, 7 Oct 2023 14:15:21 +0800 Subject: [PATCH 1/2] feat(work): add params allow_select chat_id_list tag_filter add params allow_select chat_id_list tag_filter --- work/externalcontact/msg.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/work/externalcontact/msg.go b/work/externalcontact/msg.go index b991367..d4f065d 100644 --- a/work/externalcontact/msg.go +++ b/work/externalcontact/msg.go @@ -38,8 +38,23 @@ type AddMsgTemplateRequest struct { Sender string `json:"sender,omitempty"` Text MsgText `json:"text"` Attachments []*Attachment `json:"attachments"` + AllowSelect bool `json:"allow_select,omitempty"` + ChatIdList []string `json:"chat_id_list,omitempty"` + TagFilter TagFilter `json:"tag_filter,omitempty"` } +type ( + // TagFilter 标签过滤 + TagFilter struct { + GroupList []TagGroupList `json:"group_list"` + } + + // TagGroupList 标签组 + TagGroupList struct { + TagList []string `json:"tag_list"` + } +) + // MsgText 文本消息 type MsgText struct { Content string `json:"content"` From 836c5b6607acb1a324c4d2eee45a447e06458e91 Mon Sep 17 00:00:00 2001 From: lumiaqian Date: Sat, 7 Oct 2023 14:24:52 +0800 Subject: [PATCH 2/2] feat(work): add params allow_select chat_id_list tag_filter add params allow_select chat_id_list tag_filter --- work/externalcontact/msg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/work/externalcontact/msg.go b/work/externalcontact/msg.go index d4f065d..1258543 100644 --- a/work/externalcontact/msg.go +++ b/work/externalcontact/msg.go @@ -39,7 +39,7 @@ type AddMsgTemplateRequest struct { Text MsgText `json:"text"` Attachments []*Attachment `json:"attachments"` AllowSelect bool `json:"allow_select,omitempty"` - ChatIdList []string `json:"chat_id_list,omitempty"` + ChatIDList []string `json:"chat_id_list,omitempty"` TagFilter TagFilter `json:"tag_filter,omitempty"` }