kdhelp

package
v0.0.0-...-e16bbcd Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Timeout time.Duration
)

Functions

This section is empty.

Types

type Client

type Client struct {
	Params *common.ClientParams
}

func InitClient

func InitClient() *Client

func (*Client) Execute

func (client *Client) Execute(url, method string, param common.Parameter) (res []byte, err error)

Execute 执行API接口

type KuaidiCompanyQueryResDto

type KuaidiCompanyQueryResDto struct {
	ExName string `json:"exname"`
	Name   string `json:"name"`
	Phone  string `json:"phone"`
	Url    string `json:"url"`
}

type KuaidiLogisticsQueryResDto

type KuaidiLogisticsQueryResDto struct {
	Status  int    `json:"status"`
	Success bool   `json:"success"`
	ExName  string `json:"exname"`
	Nu      string `json:"nu"`
	Reason  string `json:"reason"`
	Data    []struct {
		Context string `json:"context"`
		Time    string `json:"time"`
	} `json:"data"`
}

func KuaidiLogisticsQuery

func KuaidiLogisticsQuery(appKey, logisticsCode string) (resDto *KuaidiLogisticsQueryResDto, err error)

type SmLogisticsQueryResDto

type SmLogisticsQueryResDto struct {
	Status int    `json:"status"`
	Msg    string `json:"msg"`
	Data   struct {
		Nu       string `json:"nu"`
		Company  string `json:"company"`
		Code     string `json:"code"`
		Tel      string `json:"tel"`
		Img      string `json:"img"`
		URL      string `json:"url"`
		Status   string `json:"status"`
		Messages []struct {
			Context string `json:"context"`
			Time    string `json:"time"`
		} `json:"messages"`
		HasItem    string `json:"hasItem"`
		SourceName string `json:"source_name"`
		SourceURL  string `json:"source_url"`
	} `json:"data"`
}

func SmLogisticsQuery

func SmLogisticsQuery(postId string) (resDto *SmLogisticsQueryResDto, err error)

Jump to

Keyboard shortcuts

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