ip

package
v0.0.0-...-c53dbe1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IP

type IP struct {
	*context.Context
}

IP struct

func NewIP

func NewIP(context *context.Context) *IP

NewIP init

func (*IP) GetIPList

func (ip *IP) GetIPList() (ipListResponse IPListResponse, err error)

GetIPList 根据商户号查询异步通知服务器的IP列表

type IPListRequest

type IPListRequest struct {
	MchID string `json:"mchid"` //Y	商户号
	Sign  string `json:"sign"`  //Y	数据签名 详见签名算法
}

IPListRequest 请求参数

type IPListResponse

type IPListResponse struct {
	ReturnCode int      `json:"return_code"` //Y	1:请求成功 0:请求失败
	ReturnMsg  string   `json:"return_msg"`  //Y	返回消息
	IPList     []string `json:"iplist"`      //Y	ip地址列表
	Sign       string   `json:"sign"`        //Y	数据签名 详见签名算法
}

IPListResponse PayJS返回参数

Jump to

Keyboard shortcuts

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