wechat

package module
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

README

WeChat SDK for Go

Go Go Report Card pkg

基于gin、go-redis开发的微信SDK

目录说明

  • officialaccount: 微信公众号API
  • miniprogram: 小程序API
  • qqminiprogram: QQ小程序API
  • minigame: 小游戏API
  • pay: 微信支付API
  • openplatform: 开放平台API
  • aispeech: 智能对话

Thanks

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wechat

type Wechat struct {
	// contains filtered or unexported fields
}

Wechat struct

func NewWechat

func NewWechat() *Wechat

NewWechat init

func (*Wechat) GetMiniProgram

func (wc *Wechat) GetMiniProgram(cfg *miniConfig.Config) *miniprogram.MiniProgram

GetMiniProgram 获取小程序的实例

func (*Wechat) GetOfficialAccount

func (wc *Wechat) GetOfficialAccount(cfg *offConfig.Config) *officialaccount.OfficialAccount

GetOfficialAccount 获取微信公众号实例

func (*Wechat) GetOpenPlatform

func (wc *Wechat) GetOpenPlatform(cfg *openConfig.Config) *openplatform.OpenPlatform

GetOpenPlatform 获取微信开放平台的实例

func (*Wechat) GetPay

func (wc *Wechat) GetPay(cfg *payConfig.Config) *pay.Pay

GetPay 获取微信支付的实例

func (*Wechat) GetQQMiniProgram

func (wc *Wechat) GetQQMiniProgram(cfg *qqMiniConfig.Config) *qqminiprogram.QQMiniProgram

GetQQMiniProgram 获取小程序的实例

func (*Wechat) SetCache

func (wc *Wechat) SetCache(cache cache.ICache)

SetCache 设置cache

Directories

Path Synopsis
domain
internal
config
Package config 小程序 config 配置
Package config 小程序 config 配置
minidrama
Package minidrama Mini Program entertainment mini-drama related interface
Package minidrama Mini Program entertainment mini-drama related interface
tcb
virtualpayment
Package virtualpayment mini program virtual payment
Package virtualpayment mini program virtual payment
device
Package device 设备相关接口
Package device 设备相关接口
js
ocr
user
Package user blacklist 公众号用户黑名单管理 参考文档:https://developers.weixin.qq.com/doc/offiaccount/User_Management/Manage_blacklist.html
Package user blacklist 公众号用户黑名单管理 参考文档:https://developers.weixin.qq.com/doc/offiaccount/User_Management/Manage_blacklist.html
pay
config
Package config 小程序config配置
Package config 小程序config配置
tcb

Jump to

Keyboard shortcuts

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