TMSSelfOtherKuai100

package
v5.1.37 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() (err error)

Init 初始化

Types

type PollQueryData

type PollQueryData struct {
	//消息内容
	Message string `json:"message"`
	//当前状态
	State string `json:"state"`
	//通讯状态
	Status string `json:"status"`
	//快递明细状态
	Condition string `json:"condition"`
	//是否已经签收
	IsCheck string `json:"ischeck"`
	//快递公司编号
	Com string `json:"com"`
	//快递单号
	Nu string `json:"nu"`
	//日志
	Data []PollQueryDataLog `json:"data"`
}

PollQueryData 实时快递单号查询数据

func PollQuery

func PollQuery(orgID int64, companySN, tmsSN, phone, addrFrom, addrTo string) (result PollQueryData, errCode string, err error)

PollQuery 实时快递单号查询 参考文档: https://api.kuaidi100.com/document/5f0ffb5ebc8da837cbd8aefc

type PollQueryDataLog

type PollQueryDataLog struct {
	//内容
	Context string `json:"context"`
	//时间
	Time string `json:"time"`
	//格式化后的时间
	FTime string `json:"ftime"`
	//状态
	Status string `json:"status"`
	//状态代码
	StatusCode string `json:"status_code"`
	//分区代码
	AreaCode string `json:"area_code"`
	//分区名称
	AreaName string `json:"area_name"`
	//分区经纬度
	AreaCenter string `json:"area_center"`
	//当前快递点
	Location string `json:"location"`
	//行政区拼音
	AreaPinYin string `json:"area_pin_yin"`
}

Jump to

Keyboard shortcuts

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