mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-08 06:32:27 +08:00
待处理小程序业务
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user