Documentation
¶
Overview ¶
Package cainiaoncwl 包含菜鸟农村物流相关结构体
Index ¶
- func ReleaseCainiaoNcwlJhorderQueryAPIRequest(v *CainiaoNcwlJhorderQueryAPIRequest)
- func ReleaseCainiaoNcwlJhorderQueryAPIResponse(v *CainiaoNcwlJhorderQueryAPIResponse)
- func ReleaseJhAreaInfo(v *JhAreaInfo)
- func ReleaseJhFee(v *JhFee)
- func ReleaseJhItemInfo(v *JhItemInfo)
- func ReleaseJhOrder(v *JhOrder)
- func ReleaseJhReceiverInfo(v *JhReceiverInfo)
- func ReleaseJhRequest(v *JhRequest)
- 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) Reset()
- 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 ¶
func ReleaseCainiaoNcwlJhorderQueryAPIRequest ¶ added in v1.3.4
func ReleaseCainiaoNcwlJhorderQueryAPIRequest(v *CainiaoNcwlJhorderQueryAPIRequest)
ReleaseCainiaoNcwlJhorderQueryAPIRequest 将 CainiaoNcwlJhorderQueryAPIRequest 放入 sync.Pool
func ReleaseCainiaoNcwlJhorderQueryAPIResponse ¶ added in v1.3.4
func ReleaseCainiaoNcwlJhorderQueryAPIResponse(v *CainiaoNcwlJhorderQueryAPIResponse)
ReleaseCainiaoNcwlJhorderQueryAPIResponse 将 CainiaoNcwlJhorderQueryAPIResponse 保存到 sync.Pool
func ReleaseJhAreaInfo ¶ added in v1.3.4
func ReleaseJhAreaInfo(v *JhAreaInfo)
ReleaseJhAreaInfo 释放JhAreaInfo
func ReleaseJhItemInfo ¶ added in v1.3.4
func ReleaseJhItemInfo(v *JhItemInfo)
ReleaseJhItemInfo 释放JhItemInfo
func ReleaseJhReceiverInfo ¶ added in v1.3.4
func ReleaseJhReceiverInfo(v *JhReceiverInfo)
ReleaseJhReceiverInfo 释放JhReceiverInfo
func ReleaseJhRequest ¶ added in v1.3.4
func ReleaseJhRequest(v *JhRequest)
ReleaseJhRequest 释放JhRequest
Types ¶
type CainiaoNcwlJhorderQueryAPIRequest ¶ added in v1.2.0
type CainiaoNcwlJhorderQueryAPIRequest struct { model.Params // contains filtered or unexported fields }
CainiaoNcwlJhorderQueryAPIRequest 农村物流集货单查询接口 API请求 cainiao.ncwl.jhorder.query
提供给接入商家,查询农村物流集货单
func GetCainiaoNcwlJhorderQueryAPIRequest ¶ added in v1.3.4
func GetCainiaoNcwlJhorderQueryAPIRequest() *CainiaoNcwlJhorderQueryAPIRequest
GetCainiaoNcwlJhorderQueryRequest 从 sync.Pool 获取 CainiaoNcwlJhorderQueryAPIRequest
func NewCainiaoNcwlJhorderQueryRequest ¶
func NewCainiaoNcwlJhorderQueryRequest() *CainiaoNcwlJhorderQueryAPIRequest
NewCainiaoNcwlJhorderQueryRequest 初始化CainiaoNcwlJhorderQueryAPIRequest对象
func (CainiaoNcwlJhorderQueryAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r CainiaoNcwlJhorderQueryAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (CainiaoNcwlJhorderQueryAPIRequest) GetApiParams ¶ added in v1.2.0
func (r CainiaoNcwlJhorderQueryAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (CainiaoNcwlJhorderQueryAPIRequest) GetParam0 ¶ added in v1.2.0
func (r CainiaoNcwlJhorderQueryAPIRequest) GetParam0() *JhRequest
GetParam0 Param0 Getter
func (CainiaoNcwlJhorderQueryAPIRequest) GetRawParams ¶ added in v1.2.8
func (r CainiaoNcwlJhorderQueryAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*CainiaoNcwlJhorderQueryAPIRequest) Reset ¶ added in v1.3.4
func (r *CainiaoNcwlJhorderQueryAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*CainiaoNcwlJhorderQueryAPIRequest) SetParam0 ¶ added in v1.2.0
func (r *CainiaoNcwlJhorderQueryAPIRequest) SetParam0(_param0 *JhRequest) error
SetParam0 is Param0 Setter 1
type CainiaoNcwlJhorderQueryAPIResponse ¶
type CainiaoNcwlJhorderQueryAPIResponse struct { model.CommonResponse CainiaoNcwlJhorderQueryAPIResponseModel }
CainiaoNcwlJhorderQueryAPIResponse 农村物流集货单查询接口 API返回值 cainiao.ncwl.jhorder.query
提供给接入商家,查询农村物流集货单
func GetCainiaoNcwlJhorderQueryAPIResponse ¶ added in v1.3.4
func GetCainiaoNcwlJhorderQueryAPIResponse() *CainiaoNcwlJhorderQueryAPIResponse
GetCainiaoNcwlJhorderQueryAPIResponse 从 sync.Pool 获取 CainiaoNcwlJhorderQueryAPIResponse
func (*CainiaoNcwlJhorderQueryAPIResponse) Reset ¶ added in v1.3.4
func (m *CainiaoNcwlJhorderQueryAPIResponse) Reset()
Reset 清空结构体
type CainiaoNcwlJhorderQueryAPIResponseModel ¶ added in v1.2.0
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 农村物流集货单查询接口 成功返回结果
func (*CainiaoNcwlJhorderQueryAPIResponseModel) Reset ¶ added in v1.3.4
func (m *CainiaoNcwlJhorderQueryAPIResponseModel) Reset()
Reset 清空结构体
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 结构体
func GetJhAreaInfo ¶ added in v1.3.4
func GetJhAreaInfo() *JhAreaInfo
GetJhAreaInfo() 从对象池中获取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 结构体
func GetJhItemInfo ¶ added in v1.3.4
func GetJhItemInfo() *JhItemInfo
GetJhItemInfo() 从对象池中获取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 结构体
func GetJhReceiverInfo ¶ added in v1.3.4
func GetJhReceiverInfo() *JhReceiverInfo
GetJhReceiverInfo() 从对象池中获取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 结构体