Skip to content

Commit 4460619

Browse files
author
Matrix-X
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents 257cdb7 + d7ef761 commit 4460619

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

src/work/externalContact/messageTemplate/client.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,28 @@ func (comp *Client) SendWelcomeMsg(ctx context.Context, options *request.Request
9292
return result, err
9393
}
9494

95+
// 提醒成员群发
96+
// https://developer.work.weixin.qq.com/document/path/97618
97+
func (comp *Client) RemindGroupMsgSend(ctx context.Context, options *request.RequestRemindGroupMsgSend) (*response2.ResponseWork, error) {
98+
99+
result := &response2.ResponseWork{}
100+
101+
_, err := comp.BaseClient.HttpPostJson(ctx, "cgi-bin/externalcontact/remind_groupmsg_send", options, nil, nil, result)
102+
103+
return result, err
104+
}
105+
106+
// 停止企业群发
107+
// https://developer.work.weixin.qq.com/document/path/97619
108+
func (comp *Client) CancelGroupMsgSend(ctx context.Context, options *request.RequestCancelGroupMsgSend) (*response2.ResponseWork, error) {
109+
110+
result := &response2.ResponseWork{}
111+
112+
_, err := comp.BaseClient.HttpPostJson(ctx, "cgi-bin/externalcontact/cancel_groupmsg_send", options, nil, nil, result)
113+
114+
return result, err
115+
}
116+
95117
func (comp *Client) formatMessage(ctx context.Context, data *object.HashMap) (*object.HashMap, error) {
96118
params := *data
97119

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package request
2+
3+
type RequestCancelGroupMsgSend struct {
4+
MsgID string `json:"msgid"`
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package request
2+
3+
type RequestRemindGroupMsgSend struct {
4+
MsgID string `json:"msgid"`
5+
}

0 commit comments

Comments
 (0)