express

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Express

type Express struct {
	*context.Context
}

Express 微信物流服务 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/introduction.html

func NewExpress

func NewExpress(ctx *context.Context) *Express

NewExpress init

type FlowWaybillDeliveryInfo

type FlowWaybillDeliveryInfo struct {
	DeliveryID   string `json:"delivery_id"`   // 运力公司id
	DeliveryName string `json:"delivery_name"` // 运力公司名称
}

FlowWaybillDeliveryInfo 运力公司信息

type FlowWaybillInfo

type FlowWaybillInfo struct {
	WaybillID string        `json:"waybill_id"` // 运单号
	Status    WaybillStatus `json:"status"`     // 运单状态
}

FlowWaybillInfo 运单信息

type FollowWaybillGoodsInfo

type FollowWaybillGoodsInfo struct {
	DetailList []FollowWaybillGoodsInfoItem `json:"detail_list"`
}

FollowWaybillGoodsInfo 商品信息

type FollowWaybillGoodsInfoItem

type FollowWaybillGoodsInfoItem struct {
	GoodsName   string `json:"goods_name"`           // 必选,商品名称(最大长度为utf-8编码下的60个字符)
	GoodsImgURL string `json:"goods_img_url"`        // 必选,商品图片url
	GoodsDesc   string `json:"goods_desc,omitempty"` // 商品详情描述,不传默认取“商品名称”值,最多40汉字
}

FollowWaybillGoodsInfoItem 商品信息详情

type FollowWaybillRequest

type FollowWaybillRequest struct {
	GoodsInfo       FollowWaybillGoodsInfo `json:"goods_info"`        // 必选,商品信息
	Openid          string                 `json:"openid"`            // 必选,用户openid
	SenderPhone     string                 `json:"sender_phone"`      // 寄件人手机号
	ReceiverPhone   string                 `json:"receiver_phone"`    // 必选,收件人手机号,部分运力需要用户手机号作为查单依据
	DeliveryID      string                 `json:"delivery_id"`       // 运力id(运单号所属运力公司id)
	WaybillID       string                 `json:"waybill_id"`        // 必选,运单号
	TransID         string                 `json:"trans_id"`          // 必选,交易单号(微信支付生成的交易单号,一般以420开头)
	OrderDetailPath string                 `json:"order_detail_path"` // 订单详情页地址
}

FollowWaybillRequest 传运单接口请求参数

type FollowWaybillResponse

type FollowWaybillResponse struct {
	util.CommonError
	WaybillToken string `json:"waybill_token"` // 查询id
}

FollowWaybillResponse 传运单接口返回参数

type FollowWaybillShopInfo

type FollowWaybillShopInfo struct {
	GoodsInfo FollowWaybillGoodsInfo `json:"goods_info"` // 商品信息
}

FollowWaybillShopInfo 商品信息

type GetDeliveryListResponse

type GetDeliveryListResponse struct {
	util.CommonError
	DeliveryList []FlowWaybillDeliveryInfo `json:"delivery_list"` // 运力公司列表
	Count        int                       `json:"count"`         // 运力公司个数
}

GetDeliveryListResponse 获取运力id列表返回参数

type QueryFollowTraceRequest

type QueryFollowTraceRequest struct {
	WaybillToken string `json:"waybill_token"` // 必选,查询id
}

QueryFollowTraceRequest 查询运单详情信息请求参数

type QueryFollowTraceResponse

type QueryFollowTraceResponse struct {
	util.CommonError
	WaybillInfo  FlowWaybillInfo         `json:"waybill_info"`  // 运单信息
	ShopInfo     FollowWaybillShopInfo   `json:"shop_info"`     // 商品信息
	DeliveryInfo FlowWaybillDeliveryInfo `json:"delivery_info"` // 运力信息
}

QueryFollowTraceResponse 查询运单详情信息返回参数

type QueryTraceRequest

type QueryTraceRequest struct {
	WaybillToken string `json:"waybill_token"` // 必选,查询id
}

QueryTraceRequest 查询运单详情接口请求参数

type QueryTraceResponse

type QueryTraceResponse struct {
	util.CommonError
	WaybillInfo  FlowWaybillInfo         `json:"waybill_info"`  // 运单信息
	ShopInfo     FollowWaybillShopInfo   `json:"shop_info"`     // 商品信息
	DeliveryInfo FlowWaybillDeliveryInfo `json:"delivery_info"` // 运力信息
}

QueryTraceResponse 查询运单详情接口返回参数

type TraceWaybillRequest

type TraceWaybillRequest struct {
	GoodsInfo       FollowWaybillGoodsInfo `json:"goods_info"`        // 必选,商品信息
	Openid          string                 `json:"openid"`            // 必选,用户openid
	SenderPhone     string                 `json:"sender_phone"`      // 寄件人手机号
	ReceiverPhone   string                 `json:"receiver_phone"`    // 必选,收件人手机号,部分运力需要用户手机号作为查单依据
	DeliveryID      string                 `json:"delivery_id"`       // 运力id(运单号所属运力公司id)
	WaybillID       string                 `json:"waybill_id"`        // 必选,运单号
	TransID         string                 `json:"trans_id"`          // 必选,交易单号(微信支付生成的交易单号,一般以420开头)
	OrderDetailPath string                 `json:"order_detail_path"` // 订单详情页地址

}

TraceWaybillRequest 传运单接口请求参数

type TraceWaybillResponse

type TraceWaybillResponse struct {
	util.CommonError
	WaybillToken string `json:"waybill_token"` // 查询id
}

TraceWaybillResponse 传运单接口返回参数

type UpdateFollowWaybillGoodsRequest

type UpdateFollowWaybillGoodsRequest struct {
	WaybillToken string                 `json:"waybill_token"` // 必选,查询id
	GoodsInfo    FollowWaybillGoodsInfo `json:"goods_info"`    // 必选,商品信息
}

UpdateFollowWaybillGoodsRequest 修改运单商品信息请求参数

type UpdateWaybillGoodsRequest

type UpdateWaybillGoodsRequest struct {
	WaybillToken string                 `json:"waybill_token"` // 必选,查询id
	GoodsInfo    FollowWaybillGoodsInfo `json:"goods_info"`    // 必选,商品信息
}

UpdateWaybillGoodsRequest 更新物品信息接口请求参数

type WaybillStatus

type WaybillStatus int

WaybillStatus 运单状态

const (
	// WaybillStatusNotExist 运单不存在或者未揽收
	WaybillStatusNotExist WaybillStatus = iota
	// WaybillStatusPicked 已揽件
	WaybillStatusPicked
	// WaybillStatusTransporting 运输中
	WaybillStatusTransporting
	// WaybillStatusDispatching 派件中
	WaybillStatusDispatching
	// WaybillStatusSigned 已签收
	WaybillStatusSigned
	// WaybillStatusException 异常
	WaybillStatusException
	// WaybillStatusSignedByOthers 代签收
	WaybillStatusSignedByOthers
)

Jump to

Keyboard shortcuts

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