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) GetPay() (*payment.Pay, error)
- func (ma *MicroApp) GetQrcode() *qrcode.QRCode
- func (ma *MicroApp) GetSchema() *schema.Schema
- 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) SetAccessTokenHandle ¶
func (ma *MicroApp) SetAccessTokenHandle(accessTokenHandle credential.AccessTokenHandle)
SetAccessTokenHandle 自定义 access_token 获取方式
Directories ¶
Path | Synopsis |
---|---|
Package authorize mini program authorize
|
Package authorize mini program authorize |
Package link generate short links
|
Package link generate short links |
Package payment payment
|
Package payment payment |
constant
Package constant payment constant
|
Package constant payment constant |
domain
Package domain domain
|
Package domain domain |
Package schema Schema link
|
Package schema Schema link |
Click to show internal directories.
Click to hide internal directories.