kdniao

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EBusinessID = ""
	AppKey      = ""
	//ReqUrl      = "http://api.kdniao.cc/Ebusiness/EbusinessOrderHandle.aspx"
	ReqUrl             = "http://api.kdniao.com/api/dist"
	SHIP_CODE_YUNDA    = "YD"
	SHIP_CODE_SHUNFENG = "SF"
)

Functions

func Parse

func Parse(shipperCode, logisticCode string, v *TraceResult, invert bool) *shipment.ShipOrderTrack

Types

type PostParams

type PostParams struct {
	RequestData string
	EBusinessID string
	RequestType string
	DataSign    string
	DataType    string
}

type RequestData

type RequestData struct {
	ShipperCode  string
	LogisticCode string
}

type TraceItem

type TraceItem struct {
	AcceptTime    string
	AcceptStation string
}

type TraceResult

type TraceResult struct {
	Traces  []TraceItem
	Success bool
	State   string
}

func KdnTraces

func KdnTraces(shipperCode string, logisticCode string) (traceResult *TraceResult, err error)

Jump to

Keyboard shortcuts

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