Skip to content

Commit

Permalink
feat(work): add params allow_select chat_id_list tag_filter
Browse files Browse the repository at this point in the history
add params allow_select chat_id_list tag_filter
  • Loading branch information
Lumiaqian committed Oct 7, 2023
1 parent 8f10936 commit 024fb2a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions work/externalcontact/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 024fb2a

Please sign in to comment.