Documentation ¶
Overview ¶
Package miniprogram mini program
Index ¶
- type MicroApp
- func (ma *MicroApp) GetAccessToken(ctx context.Context, openID string) (string, error)
- func (ma *MicroApp) GetAuthorize() *authorize.Authorize
- func (ma *MicroApp) GetClientToken(ctx context.Context) (string, error)
- func (ma *MicroApp) GetContext() *credential.ContextConfig
- func (ma *MicroApp) GetLink() *link.Link
- func (ma *MicroApp) GetQrcode() *qrcode.QRCode
- func (ma *MicroApp) GetSchema() *schema.Schema
- func (ma *MicroApp) GetSolution() *solution.Solution
- func (ma *MicroApp) SetAccessTokenHandle(accessTokenHandle credential.AccessTokenHandle)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MicroApp ¶
type MicroApp struct {
// contains filtered or unexported fields
}
MicroApp mini program
func (*MicroApp) GetAccessToken ¶
GetAccessToken 获取 access_token
func (*MicroApp) GetAuthorize ¶
GetAuthorize oauth2 网页授权
func (*MicroApp) GetClientToken ¶
GetClientToken 获取 client_token
func (*MicroApp) GetContext ¶
func (ma *MicroApp) GetContext() *credential.ContextConfig
GetContext get Context
func (*MicroApp) GetSolution ¶ added in v0.0.9
GetSolution 获取小程序解决方案
func (*MicroApp) SetAccessTokenHandle ¶
func (ma *MicroApp) SetAccessTokenHandle(accessTokenHandle credential.AccessTokenHandle)
SetAccessTokenHandle 自定义 access_token 获取方式
Click to show internal directories.
Click to hide internal directories.