Documentation ¶
Overview ¶
Package cainiaoncwl 包含菜鸟农村物流相关结构体
Index ¶
- type CainiaoncwljhorderqueryAPIRequest
- func (r CainiaoncwljhorderqueryAPIRequest) GetApiMethodName() string
- func (r CainiaoncwljhorderqueryAPIRequest) GetApiParams(params url.Values)
- func (r CainiaoncwljhorderqueryAPIRequest) GetParam0() *JhRequest
- func (r CainiaoncwljhorderqueryAPIRequest) GetRawParams() model.Params
- func (r *CainiaoncwljhorderqueryAPIRequest) SetParam0(_param0 *JhRequest) error
- type CainiaoncwljhorderqueryAPIResponse
- type CainiaoncwljhorderqueryAPIResponseModel
- type JhAreaInfo
- type JhFee
- type JhItemInfo
- type JhOrder
- type JhReceiverInfo
- type JhRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CainiaoncwljhorderqueryAPIRequest ¶ added in v1.3.1
type CainiaoncwljhorderqueryAPIRequest struct { model.Params // contains filtered or unexported fields }
CainiaoncwljhorderqueryAPIRequest 农村物流集货单查询接口 API请求 cainiao.ncwl.jhorder.query
提供给接入商家,查询农村物流集货单
func NewCainiaoncwljhorderqueryRequest ¶ added in v1.3.1
func NewCainiaoncwljhorderqueryRequest() *CainiaoncwljhorderqueryAPIRequest
NewCainiaoncwljhorderqueryRequest 初始化CainiaoncwljhorderqueryAPIRequest对象
func (CainiaoncwljhorderqueryAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r CainiaoncwljhorderqueryAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (CainiaoncwljhorderqueryAPIRequest) GetApiParams ¶ added in v1.3.1
func (r CainiaoncwljhorderqueryAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (CainiaoncwljhorderqueryAPIRequest) GetParam0 ¶ added in v1.3.1
func (r CainiaoncwljhorderqueryAPIRequest) GetParam0() *JhRequest
GetParam0 Param0 Getter
func (CainiaoncwljhorderqueryAPIRequest) GetRawParams ¶ added in v1.3.1
func (r CainiaoncwljhorderqueryAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*CainiaoncwljhorderqueryAPIRequest) SetParam0 ¶ added in v1.3.1
func (r *CainiaoncwljhorderqueryAPIRequest) SetParam0(_param0 *JhRequest) error
SetParam0 is Param0 Setter 1
type CainiaoncwljhorderqueryAPIResponse ¶ added in v1.3.1
type CainiaoncwljhorderqueryAPIResponse struct { model.CommonResponse CainiaoncwljhorderqueryAPIResponseModel }
CainiaoncwljhorderqueryAPIResponse 农村物流集货单查询接口 API返回值 cainiao.ncwl.jhorder.query
提供给接入商家,查询农村物流集货单
type CainiaoncwljhorderqueryAPIResponseModel ¶ added in v1.3.1
type CainiaoncwljhorderqueryAPIResponseModel struct { XMLName xml.Name `xml:"cainiao_ncwl_jhorder_query_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 查询获得的集货单列表 JhOrderList []JhOrder `json:"jh_order_list,omitempty" xml:"jh_order_list>jh_order,omitempty"` // 总结果记录数 TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` // 翻页查询当前返回页数;指定集货号时无效; CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"` // 总页数 TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` }
CainiaoncwljhorderqueryAPIResponseModel is 农村物流集货单查询接口 成功返回结果
type JhAreaInfo ¶
type JhAreaInfo struct { // 可以指定某个省的集货单 Provice string `json:"provice,omitempty" xml:"provice,omitempty"` // 可以指定某个省市的集货单 District string `json:"district,omitempty" xml:"district,omitempty"` // 可以指定省市区的集货单 City string `json:"city,omitempty" xml:"city,omitempty"` }
JhAreaInfo 结构体
type JhFee ¶
type JhFee struct { // 预留字段,总计金额 TotalLogisticFee int64 `json:"total_logistic_fee,omitempty" xml:"total_logistic_fee,omitempty"` }
JhFee 结构体
type JhItemInfo ¶
type JhItemInfo struct { // 商品名称 Name string `json:"name,omitempty" xml:"name,omitempty"` // 外部编号,即商家商品编号 OuterItemId string `json:"outer_item_id,omitempty" xml:"outer_item_id,omitempty"` // 预留字段,活动报名时候配置的,根据包装与包含了几个售卖单位;商家内部有维护,以公司内部为准; PacakgeRule string `json:"pacakge_rule,omitempty" xml:"pacakge_rule,omitempty"` // 预留字段,售卖1件相当于几个东西;如果销售商品售卖规则与商家内部规则一致,可以不使用这个字段; SellRule string `json:"sell_rule,omitempty" xml:"sell_rule,omitempty"` // 数量 Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"` // 淘系商品号 TbItemId int64 `json:"tb_item_id,omitempty" xml:"tb_item_id,omitempty"` // 淘系skuid TbSkuId int64 `json:"tb_sku_id,omitempty" xml:"tb_sku_id,omitempty"` // 体积,单位,立方分米 Volume int64 `json:"volume,omitempty" xml:"volume,omitempty"` // 重量,单位,克 Weight int64 `json:"weight,omitempty" xml:"weight,omitempty"` }
JhItemInfo 结构体
type JhOrder ¶
type JhOrder struct { // 此集货单商品列表 ItemInfoList []JhItemInfo `json:"item_info_list,omitempty" xml:"item_info_list>jh_item_info,omitempty"` // 此集货单集货开始时间 BeginTime string `json:"begin_time,omitempty" xml:"begin_time,omitempty"` // 此集货单集货停止时间 FinishTime string `json:"finish_time,omitempty" xml:"finish_time,omitempty"` // 集货单号 OrderCode string `json:"order_code,omitempty" xml:"order_code,omitempty"` // 补货原主单号 OriginalOrder string `json:"original_order,omitempty" xml:"original_order,omitempty"` // 集货单状态,CONSOLIDATED 已集货;CONSIGNED 已发货;INBOUND 县仓入库;LACK 缺货LACK Status string `json:"status,omitempty" xml:"status,omitempty"` // 收货信息 JhReceiverInfo *JhReceiverInfo `json:"jh_receiver_info,omitempty" xml:"jh_receiver_info,omitempty"` // 预留字段,本集包费用,单位分 JhFee *JhFee `json:"jh_fee,omitempty" xml:"jh_fee,omitempty"` // 是否是补货 ReplenishFlag bool `json:"replenish_flag,omitempty" xml:"replenish_flag,omitempty"` }
JhOrder 结构体
type JhReceiverInfo ¶
type JhReceiverInfo struct { // 收货城市 City string `json:"city,omitempty" xml:"city,omitempty"` // 收货县或者区 District string `json:"district,omitempty" xml:"district,omitempty"` // 收货省 Province string `json:"province,omitempty" xml:"province,omitempty"` // 收货明细地址 ReceiverAddress string `json:"receiver_address,omitempty" xml:"receiver_address,omitempty"` // 收货手机号 ReceiverMobile string `json:"receiver_mobile,omitempty" xml:"receiver_mobile,omitempty"` // 收货姓名 ReceiverName string `json:"receiver_name,omitempty" xml:"receiver_name,omitempty"` // 收货电话 ReceiverPhone string `json:"receiver_phone,omitempty" xml:"receiver_phone,omitempty"` // 收货邮编 ReceiverZip string `json:"receiver_zip,omitempty" xml:"receiver_zip,omitempty"` // 收货镇或者街区 Street string `json:"street,omitempty" xml:"street,omitempty"` }
JhReceiverInfo 结构体
type JhRequest ¶
type JhRequest struct { // 集单完成时间,查询起点 StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"` // 通常指定已集货状态;指定状态查询,不指定返回所有;CONSOLIDATED 已集货;CONSIGNED 已发货;INBOUND 县仓入库;LACK 缺货LACK Status string `json:"status,omitempty" xml:"status,omitempty"` // 淘宝item_id ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"` // 可以指定集货号查询,此时其他条件忽略;最大指定5条,逗号分隔; OrderCodeList string `json:"order_code_list,omitempty" xml:"order_code_list,omitempty"` // 集单完成时间,查询尾点;尾点有起点不能超过7天;起点不能是一年以前; EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"` // 淘宝skuId SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"` // 1 AreaInfo *JhAreaInfo `json:"area_info,omitempty" xml:"area_info,omitempty"` // 查询第几页,起点1 PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"` // 一页查询多少数据,最大100 PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` }
JhRequest 结构体