mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-09 15:12:26 +08:00
微信开放平台-代处理小程序
This commit is contained in:
@@ -3,6 +3,7 @@ package openplatform
|
||||
import (
|
||||
"github.com/silenceper/wechat/v2/openplatform/config"
|
||||
"github.com/silenceper/wechat/v2/openplatform/context"
|
||||
"github.com/silenceper/wechat/v2/openplatform/miniprogram"
|
||||
"github.com/silenceper/wechat/v2/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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user