miniProgram

package
v3.0.50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2023 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	*miniProgram.MiniProgram

	AccessToken *auth.AccessToken
	Auth        *auth2.Client
}

func NewApplication

func NewApplication(config *UserConfig, extraInfos ...*kernel.ExtraInfo) (*Application, error)

func (*Application) GetAccessToken

func (app *Application) GetAccessToken() *kernel.AccessToken

func (*Application) GetComponent

func (app *Application) GetComponent(name string) interface{}

func (*Application) GetConfig

func (app *Application) GetConfig() *kernel.Config

func (*Application) GetContainer

func (app *Application) GetContainer() *kernel.ServiceContainer

type UserConfig

type UserConfig struct {
	MiniProgramUserConfig *miniProgram.UserConfig
	CorpID                string
	AgentID               int
	Secret                string
	Token                 string
	AESKey                string
	CallbackURL           string
	Http                  *object.HashMap
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL