wechat

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MiniApp MiniAppConfig `json:"miniApp" yaml:"miniApp"`
}

type MiniApp

type MiniApp struct {
	Client *miniProgram.MiniProgram
	// contains filtered or unexported fields
}

MiniApp Doc: https://powerwechat.artisan-cloud.com/zh/mini-program/index.html

func NewMiniApp

func NewMiniApp(c MiniAppConfig) *MiniApp

func (*MiniApp) GetAppId

func (miniApp *MiniApp) GetAppId() string

GetAppId 返回AppId

type MiniAppConfig

type MiniAppConfig struct {
	AppId      string      `json:"appId" yaml:"appId"`
	AppSecret  string      `json:"appSecret" yaml:"appSecret"`
	Token      string      `json:"token" yaml:"token"`
	AESKey     string      `json:"aesKey" yaml:"aesKey"`
	HttpDebug  bool        `json:"httpDebug" yaml:"httpDebug"`
	CacheRedis redis.Redis `json:"cacheRedis" yaml:"cacheRedis"`
}

Jump to

Keyboard shortcuts

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