From 479ff1f242b5f5f7f8e25c4889c4fe3e2841582a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E6=99=B6?= Date: Tue, 10 Oct 2023 06:32:22 -0500 Subject: [PATCH] feat(work): AddMsgTemplate api add params allow_select chat_id_list tag_filter (#730) * feat(work): add params allow_select chat_id_list tag_filter add params allow_select chat_id_list tag_filter * 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 278b3be..ab28370 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"`