config

package
v0.0.0-...-aa73d0e Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Code    string `json:"code,omitempty"`    // 错误代码
	Message string `json:"message,omitempty"` // 错误信息
}

type V3

type V3 struct {
	MchID         string `json:"mchid"`         // 商户ID
	ClientKeyPath string `json:"clientKeyPath"` // 证书私钥路径
	SerialNo      string `json:"serialNo"`      // 证书编号
}

func (V3) Request

func (m V3) Request(api string, body interface{}, out interface{}) error

func (V3) Sign

func (m V3) Sign(url string, body interface{}) (string, error)

Sign 签名 @param method string 请求类型 @param url string 请求地址 @param body interface 请求数据

Jump to

Keyboard shortcuts

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