wechat

package module
v2.0.0-...-1758a18 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

删除掉其他的 仅支持微信公众号 和支付相关

Documentation

Overview

Package wechat provide wechat sdk for go

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) GetOfficialAccount

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

GetOfficialAccount 获取微信公众号实例

func (*Wechat) GetPay

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

GetPay 获取微信支付的实例

func (*Wechat) SetCache

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

SetCache 设置 cache

func (*Wechat) SetHTTPClient

func (wc *Wechat) SetHTTPClient(client *http.Client)

SetHTTPClient 设置HTTPClient

Directories

Path Synopsis
domain
internal
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

Jump to

Keyboard shortcuts

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