Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapUserConfig ¶
func MapUserConfig(userConfig *UserConfig) (*object.HashMap, error)
Types ¶
type MiniProgram ¶
type MiniProgram struct { *kernel.ServiceContainer Base *base.Client VirtualPayment *virtualPayment.Client AccessToken *auth.AccessToken Auth *auth.Client Server *server.Guard ActiveMessage *updatableMessage.Client Encryptor *Encryptor Broadcast *liveBroadcast.Client CustomerServiceMessage *customerServiceMessage.Client DataCube *dataCube.Client UniformMessage *uniformMessage.Client Image *image.Client Internet *internet.Client Express *express.Client Delivery *immediateDelivery.Client OCR *ocr.Client Operation *operation.Client Plugin *plugin.Client PhoneNumber *phoneNumber.Client NearbyPoi *nearbyPoi.Client WXACode *wxaCode.Client URLScheme *urlScheme.Client URLLink *urlLink.Client Security *security.Client Search *search.Client ServiceMarket *serviceMarket.Client SubscribeMessage *subscribeMessage.Client ShortLink *shortLink.Client Soter *soter.Client UpdatableMessage *updatableMessage.Client RiskControl *riskControl.Client MiniDramaVOD *vod.Client Config *kernel.Config Logger *logger.Logger }
func NewMiniProgram ¶
func NewMiniProgram(config *UserConfig, extraInfos ...*kernel.ExtraInfo) (*MiniProgram, error)
func (*MiniProgram) GetAccessToken ¶
func (app *MiniProgram) GetAccessToken() *kernel.AccessToken
func (*MiniProgram) GetComponent ¶
func (app *MiniProgram) GetComponent(name string) interface{}
func (*MiniProgram) GetConfig ¶
func (app *MiniProgram) GetConfig() *kernel.Config
func (*MiniProgram) GetContainer ¶
func (app *MiniProgram) GetContainer() *kernel.ServiceContainer
type UserConfig ¶
type UserConfig struct { AppID string Secret string RefreshToken string ComponentAppID string ComponentAppToken string Token string AESKey string // 小程序虚拟支付新增配置 AppKey string // 现网AppKey OfferID string // OfferID(支付应用ID) 等同于商户号 ResponseType string Log Log OAuth OAuth Cache kernel.CacheInterface Http Http HttpDebug bool Debug bool NotifyURL string Sandbox bool }
Click to show internal directories.
Click to hide internal directories.