config

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 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