gochat

package module
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 3 Imported by: 0

README

gochat

golang GitHub release pkg.go.dev MIT license

微信 Go SDK(支付、公众号、小程序)

目录 对应 功能
/mch 微信支付(普通商户直连模式) 下单、支付、退款、查询、委托代扣、企业付款、企业红包 等
/oa 微信公众号(Official Accounts) 网页授权、用户管理、模板消息、菜单管理、事件消息 等
/mp 微信小程序(Mini Program) 小程序授权、数据解密、二维码、事件消息 等

获取

go get -u github.com/shenghui0779/gochat

文档

说明

  • 支持 Go1.11+
  • 注意:因 access_token 每日获取次数有限且含有效期,故服务端应妥善保存 access_token 并定时刷新
  • 配合 yiigo 使用,可以更方便的操作 MySQLMongoDBRedis

Enjoy 😊

Documentation

Overview

Package gochat 微信 SDK for Go

/mch ---> 微信支付(普通商户直连模式) ---> 统一下单、支付、退款、查询、委托代扣、企业付款、企业红包 等

/oa ---> 微信公众号(Official Accounts) ---> 网页授权、用户管理、模板消息、菜单管理、事件消息 等

/mp ---> 微信小程序(Mini Program) ---> 小程序授权、数据解密、二维码、事件消息 等

For more details, see the documentation for the types and methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMP

func NewMP(appid, appsecret string) *mp.MP

NewMP 微信小程序

func NewMch

func NewMch(appid, mchid, apikey string) *mch.Mch

NewMch 微信商户

func NewOA

func NewOA(appid, appsecret string) *oa.OA

NewPub 微信公众号

Types

This section is empty.

Directories

Path Synopsis
Package wx is a generated GoMock package.
Package wx is a generated GoMock package.

Jump to

Keyboard shortcuts

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