Documentation ¶
Index ¶
- func CheckWxResp(resp *http.Response) (map[string]interface{}, error)
- func CheckWxRespForPay(resp *http.Response) (map[string]interface{}, error)
- func GenerateAuthorization(method, urlStr, data, mchId, privateKey, serialNo string) (string, error)
- func GetJson(url string) (map[string]interface{}, error)
- func ParsePrivateKey(privateKey string) (*rsa.PrivateKey, error)
- func RsaSign(signContent string, privateKey string, hash crypto.Hash) string
- func SendJson(targetUrl string, data interface{}, escapeHtml ...bool) (map[string]interface{}, error)
- func SendJsonForPay(url string, data interface{}, mchId, privateKey, serialNo string) (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckWxRespForPay ¶
func GenerateAuthorization ¶
func GenerateAuthorization(method, urlStr, data, mchId, privateKey, serialNo string) (string, error)
生成签名头
func ParsePrivateKey ¶
func ParsePrivateKey(privateKey string) (*rsa.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.