tpp

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

README

TPP (Third-Party Platform)

Go SDK 统一接入:钉钉、飞书、微信公众号、微信小程序、企业微信、微信开放平台、支付宝、腾讯微卡

Forked from leapig/tpp,搬运到 PZOBJECT/tpp。

快速开始

go get github.com/PZOBJECT/tpp
// 企微【企业内部开发】/【服务商代开发】应用
app := tpp.NewTpp().WW(ww.Config{
    CorpId:     "企业ID",
    CorpSecret: "应用的凭证密钥",
})

// 微信小程序
app := tpp.NewTpp().MP(mp.Config{...})

// 微信公众号
app := tpp.NewTpp().OA(oa.Config{...})

// 腾讯微卡
app := tpp.NewTpp().WK(wk.Config{...})

// 微信开放平台
app := tpp.NewTpp().WO(wo.Config{...})

// 支付宝
app := tpp.NewTpp().AP(ap.Config{...})

// 钉钉
app := tpp.NewTpp().DT(dt.Config{...})

// 飞书
app := tpp.NewTpp().FS(fs.Config{...})

// 调用平台接口
app.DoAnything()

支持平台

包名 平台 说明
ww 企业微信 企业内部开发 / 服务商代开发
mp 微信小程序 小程序登录、消息、支付
oa 微信公众号 公众号消息、菜单、网页授权
wk 腾讯微卡 微卡集成
wo 微信开放平台 第三方平台开发
ap 支付宝 支付、登录
dt 钉钉 通讯录、消息、微应用
fs 飞书 通讯录、消息、应用管理

License

Apache 2.0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tpp

type Tpp interface {
	WW(ww.Config) ww.App
	MP(mp.Config) mp.App
	OA(oa.Config) oa.App
	WK(wk.Config) wk.App
	WO(wo.Config) wo.App
	AP(ap.Config) ap.App
	DT(dt.Config) dt.App
	FS(fs.Config) fs.App
}

func NewTpp

func NewTpp() Tpp

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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