Documentation ¶
Overview ¶
Package healthnr 包含阿里健康新零售相关结构体
Index ¶
- func ReleaseAlibabaHealthNrLogisticsQueryAPIRequest(v *AlibabaHealthNrLogisticsQueryAPIRequest)
- func ReleaseAlibabaHealthNrLogisticsQueryAPIResponse(v *AlibabaHealthNrLogisticsQueryAPIResponse)
- func ReleaseLogisticsDetail(v *LogisticsDetail)
- func ReleaseResponseResult(v *ResponseResult)
- type AlibabaHealthNrLogisticsQueryAPIRequest
- func (r AlibabaHealthNrLogisticsQueryAPIRequest) GetApiMethodName() string
- func (r AlibabaHealthNrLogisticsQueryAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaHealthNrLogisticsQueryAPIRequest) GetOrderId() int64
- func (r AlibabaHealthNrLogisticsQueryAPIRequest) GetRawParams() model.Params
- func (r *AlibabaHealthNrLogisticsQueryAPIRequest) Reset()
- func (r *AlibabaHealthNrLogisticsQueryAPIRequest) SetOrderId(_orderId int64) error
- type AlibabaHealthNrLogisticsQueryAPIResponse
- type AlibabaHealthNrLogisticsQueryAPIResponseModel
- type LogisticsDetail
- type ResponseResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReleaseAlibabaHealthNrLogisticsQueryAPIRequest ¶ added in v1.3.4
func ReleaseAlibabaHealthNrLogisticsQueryAPIRequest(v *AlibabaHealthNrLogisticsQueryAPIRequest)
ReleaseAlibabaHealthNrLogisticsQueryAPIRequest 将 AlibabaHealthNrLogisticsQueryAPIRequest 放入 sync.Pool
func ReleaseAlibabaHealthNrLogisticsQueryAPIResponse ¶ added in v1.3.4
func ReleaseAlibabaHealthNrLogisticsQueryAPIResponse(v *AlibabaHealthNrLogisticsQueryAPIResponse)
ReleaseAlibabaHealthNrLogisticsQueryAPIResponse 将 AlibabaHealthNrLogisticsQueryAPIResponse 保存到 sync.Pool
func ReleaseLogisticsDetail ¶ added in v1.3.4
func ReleaseLogisticsDetail(v *LogisticsDetail)
ReleaseLogisticsDetail 释放LogisticsDetail
func ReleaseResponseResult ¶ added in v1.3.4
func ReleaseResponseResult(v *ResponseResult)
ReleaseResponseResult 释放ResponseResult
Types ¶
type AlibabaHealthNrLogisticsQueryAPIRequest ¶ added in v1.2.0
type AlibabaHealthNrLogisticsQueryAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaHealthNrLogisticsQueryAPIRequest 阿里健康新零售物流详情接口 API请求 alibaba.health.nr.logistics.query
对阿里健康o2o对接的商户提供查询物流单详情的能力
func GetAlibabaHealthNrLogisticsQueryAPIRequest ¶ added in v1.3.4
func GetAlibabaHealthNrLogisticsQueryAPIRequest() *AlibabaHealthNrLogisticsQueryAPIRequest
GetAlibabaHealthNrLogisticsQueryRequest 从 sync.Pool 获取 AlibabaHealthNrLogisticsQueryAPIRequest
func NewAlibabaHealthNrLogisticsQueryRequest ¶
func NewAlibabaHealthNrLogisticsQueryRequest() *AlibabaHealthNrLogisticsQueryAPIRequest
NewAlibabaHealthNrLogisticsQueryRequest 初始化AlibabaHealthNrLogisticsQueryAPIRequest对象
func (AlibabaHealthNrLogisticsQueryAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaHealthNrLogisticsQueryAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaHealthNrLogisticsQueryAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaHealthNrLogisticsQueryAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaHealthNrLogisticsQueryAPIRequest) GetOrderId ¶ added in v1.2.0
func (r AlibabaHealthNrLogisticsQueryAPIRequest) GetOrderId() int64
GetOrderId OrderId Getter
func (AlibabaHealthNrLogisticsQueryAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlibabaHealthNrLogisticsQueryAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlibabaHealthNrLogisticsQueryAPIRequest) Reset ¶ added in v1.3.4
func (r *AlibabaHealthNrLogisticsQueryAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*AlibabaHealthNrLogisticsQueryAPIRequest) SetOrderId ¶ added in v1.2.0
func (r *AlibabaHealthNrLogisticsQueryAPIRequest) SetOrderId(_orderId int64) error
SetOrderId is OrderId Setter 订单id
type AlibabaHealthNrLogisticsQueryAPIResponse ¶
type AlibabaHealthNrLogisticsQueryAPIResponse struct { model.CommonResponse AlibabaHealthNrLogisticsQueryAPIResponseModel }
AlibabaHealthNrLogisticsQueryAPIResponse 阿里健康新零售物流详情接口 API返回值 alibaba.health.nr.logistics.query
对阿里健康o2o对接的商户提供查询物流单详情的能力
func GetAlibabaHealthNrLogisticsQueryAPIResponse ¶ added in v1.3.4
func GetAlibabaHealthNrLogisticsQueryAPIResponse() *AlibabaHealthNrLogisticsQueryAPIResponse
GetAlibabaHealthNrLogisticsQueryAPIResponse 从 sync.Pool 获取 AlibabaHealthNrLogisticsQueryAPIResponse
func (*AlibabaHealthNrLogisticsQueryAPIResponse) Reset ¶ added in v1.3.4
func (m *AlibabaHealthNrLogisticsQueryAPIResponse) Reset()
Reset 清空结构体
type AlibabaHealthNrLogisticsQueryAPIResponseModel ¶ added in v1.2.0
type AlibabaHealthNrLogisticsQueryAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_health_nr_logistics_query_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回结果 ResponseResult *ResponseResult `json:"response_result,omitempty" xml:"response_result,omitempty"` }
AlibabaHealthNrLogisticsQueryAPIResponseModel is 阿里健康新零售物流详情接口 成功返回结果
func (*AlibabaHealthNrLogisticsQueryAPIResponseModel) Reset ¶ added in v1.3.4
func (m *AlibabaHealthNrLogisticsQueryAPIResponseModel) Reset()
Reset 清空结构体
type LogisticsDetail ¶
type LogisticsDetail struct { // 物流商 LogisticsName string `json:"logistics_name,omitempty" xml:"logistics_name,omitempty"` // 配送单下单时间 SendTime string `json:"send_time,omitempty" xml:"send_time,omitempty"` // 配送单确认时间 ConfirmTime string `json:"confirm_time,omitempty" xml:"confirm_time,omitempty"` // 配送单取消时间 CancelTime string `json:"cancel_time,omitempty" xml:"cancel_time,omitempty"` // 骑手取货时间 FetchTime string `json:"fetch_time,omitempty" xml:"fetch_time,omitempty"` // 配送完成时间 CompleteTime string `json:"complete_time,omitempty" xml:"complete_time,omitempty"` // 骑手姓名 DispatcherName string `json:"dispatcher_name,omitempty" xml:"dispatcher_name,omitempty"` // 骑手电话 DispatcherMobile string `json:"dispatcher_mobile,omitempty" xml:"dispatcher_mobile,omitempty"` // 订单id OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"` // 物流状态 LogisticsStatus int64 `json:"logistics_status,omitempty" xml:"logistics_status,omitempty"` }
LogisticsDetail 结构体
func GetLogisticsDetail ¶ added in v1.3.4
func GetLogisticsDetail() *LogisticsDetail
GetLogisticsDetail() 从对象池中获取LogisticsDetail
type ResponseResult ¶
type ResponseResult struct { // 错误码 ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` // 错误描述 ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` // 返回结果 Result *LogisticsDetail `json:"result,omitempty" xml:"result,omitempty"` // 是否成功(true 成功,false 失败) Success bool `json:"success,omitempty" xml:"success,omitempty"` }
ResponseResult 结构体
func GetResponseResult ¶ added in v1.3.4
func GetResponseResult() *ResponseResult
GetResponseResult() 从对象池中获取ResponseResult