mp

package
v1.1.19 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	Key() string
	Id() string
	Token() string
	JsCode2Session(jsCode string) map[string]interface{}
	GetWxACodeUnLimit(page, scene string) []byte
	PostWxaBusinessGetUserPhoneNumber(code string) (res map[string]interface{})
}

func NewApp

func NewApp(config Config) App

type Config

type Config struct {
	Key            string        `json:"key"`
	AppId          string        `json:"appid"`
	Secret         string        `json:"secret"`
	Version        string        `json:"version"`
	ComponentAppid string        `json:"component_appid"`
	ComponentToken string        `json:"component_token"`
	Cache          cachego.Cache `json:"cache"`
}

type GetComponentAccessToken added in v1.0.39

type GetComponentAccessToken func() string

Jump to

Keyboard shortcuts

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