mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-12 08:42:28 +08:00
群发消息接口 (#259)
* 添加TODO:待完善接口 * 【模板消息】将message.DataItem改为message.TemplateDataItem * 【群发消息】基本框架 * 群发消息-基本方法 * fix golint * fix:SendWxCard log
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package openplatform
|
||||
|
||||
import (
|
||||
"github.com/silenceper/wechat/v2/openplatform/account"
|
||||
"github.com/silenceper/wechat/v2/openplatform/config"
|
||||
"github.com/silenceper/wechat/v2/openplatform/context"
|
||||
"github.com/silenceper/wechat/v2/openplatform/miniprogram"
|
||||
@@ -29,6 +30,12 @@ func (openPlatform *OpenPlatform) GetOfficialAccount(appID string) *officialacco
|
||||
}
|
||||
|
||||
//GetMiniProgram 小程序代理
|
||||
func (openPlatform *OpenPlatform) GetMiniProgram(opCtx *context.Context, appID string) *miniprogram.MiniProgram {
|
||||
return miniprogram.NewMiniProgram(opCtx, appID)
|
||||
func (openPlatform *OpenPlatform) GetMiniProgram(appID string) *miniprogram.MiniProgram {
|
||||
return miniprogram.NewMiniProgram(openPlatform.Context, appID)
|
||||
}
|
||||
|
||||
//GetAccountManager 账号管理
|
||||
//TODO
|
||||
func (openPlatform *OpenPlatform) GetAccountManager() *account.Account {
|
||||
return account.NewAccount(openPlatform.Context)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user