1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-10 07:42:26 +08:00

企业微信内部开发API:完善企业内部消息推送

This commit is contained in:
hb
2022-03-02 19:20:04 +08:00
parent 88f07bc5fb
commit 6313e3d580
3 changed files with 67 additions and 57 deletions

View File

@@ -7,6 +7,7 @@ import (
"github.com/silenceper/wechat/v2/work/externalcontact"
"github.com/silenceper/wechat/v2/work/js"
"github.com/silenceper/wechat/v2/work/kf"
"github.com/silenceper/wechat/v2/work/message"
"github.com/silenceper/wechat/v2/work/msgaudit"
"github.com/silenceper/wechat/v2/work/oauth"
"github.com/silenceper/wechat/v2/work/server"
@@ -77,3 +78,8 @@ func (wk *Work) GetCalendar() *tools.Calendar {
func (wk *Work) GetExternalContact() (*externalcontact.Client, error) {
return externalcontact.NewClient(wk.ctx.Config)
}
//GetMessageApp 发送应用消息
func (wk *Work) GetMessageApp() *message.App {
return message.NewApp(wk.ctx)
}