1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-08 06:32:27 +08:00

待处理小程序业务

This commit is contained in:
silenceper
2020-01-22 15:45:06 +08:00
parent 7e8c94a6c4
commit 51cbfab087
6 changed files with 161 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ package openplatform
import (
"github.com/silenceper/wechat/openplatform/config"
"github.com/silenceper/wechat/openplatform/context"
"github.com/silenceper/wechat/openplatform/miniprogram"
"github.com/silenceper/wechat/openplatform/officialaccount"
)
@@ -26,3 +27,8 @@ func NewOpenPlatform(cfg *config.Config) *OpenPlatform {
func (openPlatform *OpenPlatform) GetOfficialAccount(appID string) *officialaccount.OfficialAccount {
return officialaccount.NewOfficialAccount(openPlatform.Context, appID)
}
//GetMiniProgram 小程序代理
func (openPlatform *OpenPlatform) GetMiniProgram(opCtx *context.Context, appID string) *miniprogram.MiniProgram {
return miniprogram.NewMiniProgram(opCtx, appID)
}