package
1.1.2
Repository: https://github.com/gitcpu-io/zgo.git
Documentation: pkg.go.dev

# Functions

DecryptOpenDataToBodyMap 解密支付宝开放数据到 zgoutils.BodyMap encryptedData:包括敏感数据在内的完整用户信息的加密数据 secretKey:AES密钥,支付宝管理平台配置 文档:https://docs.alipay.com/mini/introduce/aes 文档:https://docs.open.alipay.com/common/104567.
DecryptOpenDataToStruct 解密支付宝开放数据到 结构体 encryptedData:包括敏感数据在内的完整用户信息的加密数据 secretKey:AES密钥,支付宝管理平台配置 beanPtr:需要解析到的结构体指针 文档:https://docs.alipay.com/mini/introduce/aes 文档:https://docs.open.alipay.com/common/104567.
FormatPrivateKey 格式化 普通应用秘钥.
FormatPublicKey 格式化 普通支付宝公钥.
格式化请求URL参数.
GetCertSN 获取证书序列号SN certPathOrData.509证书文件路径(appCertPublicKey.crt、alipayCertPublicKey_RSA2.crt) 或证书 buffer 返回 sn:证书序列号(app_cert_sn、alipay_cert_sn) 返回 err:error 信息.
No description provided by the author
初始化支付宝客户端 注意:如果使用支付宝公钥证书验签,请设置 支付宝根证书SN(client.SetAlipayRootCertSN())、应用公钥证书SN(client.SetAppCertSN()) appId:应用ID PrivateKey:应用私钥 IsProd:是否是正式环境.
SystemOauthToken 换取授权访问令牌(默认使用utf-8,RSA2) appId:应用ID PrivateKey:应用私钥 grantType:值为 authorization_code 时,代表用code换取;值为 refresh_token 时,代表用refresh_token换取,传空默认code换取 codeOrToken:支付宝授权码或refresh_token 文档:https://docs.open.alipay.com/api_9/alipay.system.oauth.token.

# Constants

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
===================================================.
===================================================.
===================================================.
===================================================.
===================================================.
===================================================.
No description provided by the author
No description provided by the author
===================================================.
No description provided by the author
===================================================.
===================================================.
===================================================.
===================================================.
===================================================.
===================================================.
===================================================.
===================================================.
===================================================.
===================================================.
===================================================.
===================================================.
===================================================.

# Interfaces

No description provided by the author
No description provided by the author