config

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 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
	ClientKey []byte `json:"clientKey"` // 证书私钥内容
	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