miniprogram

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package miniprogram mini program

Index

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 New

func New(ctx context.Context, cfg *config.Config) (*MicroApp, error)

New micro app

func (*MicroApp) GetAccessToken

func (ma *MicroApp) GetAccessToken(ctx context.Context, openID string) (string, error)

GetAccessToken 获取 access_token

func (*MicroApp) GetAuthorize

func (ma *MicroApp) GetAuthorize() *authorize.Authorize

GetAuthorize oauth2 网页授权

func (*MicroApp) GetClientToken

func (ma *MicroApp) GetClientToken(ctx context.Context) (string, error)

GetClientToken 获取 client_token

func (*MicroApp) GetContext

func (ma *MicroApp) GetContext() *credential.ContextConfig

GetContext get Context

func (ma *MicroApp) GetLink() *link.Link

GetLink 获取小程序 link

func (*MicroApp) GetQrcode

func (ma *MicroApp) GetQrcode() *qrcode.QRCode

GetQrcode 获取小程序码

func (*MicroApp) GetSchema added in v0.0.2

func (ma *MicroApp) GetSchema() *schema.Schema

GetSchema 获取小程序 schema

func (*MicroApp) GetSolution added in v0.0.9

func (ma *MicroApp) GetSolution() *solution.Solution

GetSolution 获取小程序解决方案

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 schema Schema link
Package schema Schema link

Jump to

Keyboard shortcuts

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