lstvending

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package lstvending 包含零售通自动售货机相关结构体

https://open.taobao.com/API.htm?docType=2&docId=37506

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaLstVendingCargospaceSaveAPIRequest

type AlibabaLstVendingCargospaceSaveAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaLstVendingCargospaceSaveAPIRequest 自动售卖机货道数据回流 API请求 alibaba.lst.vending.cargospace.save

自动售卖机货道数据回流接口,ISV通过调用此接口上传售卖机货道信息。

func NewAlibabaLstVendingCargospaceSaveRequest

func NewAlibabaLstVendingCargospaceSaveRequest() *AlibabaLstVendingCargospaceSaveAPIRequest

NewAlibabaLstVendingCargospaceSaveRequest 初始化AlibabaLstVendingCargospaceSaveAPIRequest对象

func (AlibabaLstVendingCargospaceSaveAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaLstVendingCargospaceSaveAPIRequest) GetApiParams

func (r AlibabaLstVendingCargospaceSaveAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaLstVendingCargospaceSaveAPIRequest) GetCargoSpaceDTOList

GetCargoSpaceDTOList CargoSpaceDTOList Getter

func (AlibabaLstVendingCargospaceSaveAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaLstVendingCargospaceSaveAPIRequest) SetCargoSpaceDTOList

func (r *AlibabaLstVendingCargospaceSaveAPIRequest) SetCargoSpaceDTOList(_cargoSpaceDTOList []VendingCargoSpaceDto) error

SetCargoSpaceDTOList is CargoSpaceDTOList Setter 货道信息

type AlibabaLstVendingCargospaceSaveAPIResponse

type AlibabaLstVendingCargospaceSaveAPIResponse struct {
	model.CommonResponse
	AlibabaLstVendingCargospaceSaveAPIResponseModel
}

AlibabaLstVendingCargospaceSaveAPIResponse 自动售卖机货道数据回流 API返回值 alibaba.lst.vending.cargospace.save

自动售卖机货道数据回流接口,ISV通过调用此接口上传售卖机货道信息。

type AlibabaLstVendingCargospaceSaveAPIResponseModel

type AlibabaLstVendingCargospaceSaveAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_lst_vending_cargospace_save_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果集
	Result *MultiResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaLstVendingCargospaceSaveAPIResponseModel is 自动售卖机货道数据回流 成功返回结果

type AlibabaLstVendingCargospaceSaveResultDto

type AlibabaLstVendingCargospaceSaveResultDto struct {
	// 错误信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 记录唯一标识
	Key string `json:"key,omitempty" xml:"key,omitempty"`
}

AlibabaLstVendingCargospaceSaveResultDto 结构体

type AlibabaLstVendingEquipmentQueryAPIRequest

type AlibabaLstVendingEquipmentQueryAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaLstVendingEquipmentQueryAPIRequest 自动售卖机设备信息查询 API请求 alibaba.lst.vending.equipment.query

为零售通品牌商提供已租赁的设备信息查询。

func NewAlibabaLstVendingEquipmentQueryRequest

func NewAlibabaLstVendingEquipmentQueryRequest() *AlibabaLstVendingEquipmentQueryAPIRequest

NewAlibabaLstVendingEquipmentQueryRequest 初始化AlibabaLstVendingEquipmentQueryAPIRequest对象

func (AlibabaLstVendingEquipmentQueryAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaLstVendingEquipmentQueryAPIRequest) GetApiParams

func (r AlibabaLstVendingEquipmentQueryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaLstVendingEquipmentQueryAPIRequest) GetOpenEquipmentQuery

GetOpenEquipmentQuery OpenEquipmentQuery Getter

func (AlibabaLstVendingEquipmentQueryAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaLstVendingEquipmentQueryAPIRequest) SetOpenEquipmentQuery

func (r *AlibabaLstVendingEquipmentQueryAPIRequest) SetOpenEquipmentQuery(_openEquipmentQuery *OpenEquipmentQuery) error

SetOpenEquipmentQuery is OpenEquipmentQuery Setter 设备查询条件

type AlibabaLstVendingEquipmentQueryAPIResponse

type AlibabaLstVendingEquipmentQueryAPIResponse struct {
	model.CommonResponse
	AlibabaLstVendingEquipmentQueryAPIResponseModel
}

AlibabaLstVendingEquipmentQueryAPIResponse 自动售卖机设备信息查询 API返回值 alibaba.lst.vending.equipment.query

为零售通品牌商提供已租赁的设备信息查询。

type AlibabaLstVendingEquipmentQueryAPIResponseModel

type AlibabaLstVendingEquipmentQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_lst_vending_equipment_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果集
	Result *AlibabaLstVendingEquipmentQueryResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaLstVendingEquipmentQueryAPIResponseModel is 自动售卖机设备信息查询 成功返回结果

type AlibabaLstVendingEquipmentQueryResultDto

type AlibabaLstVendingEquipmentQueryResultDto struct {
	// 设备信息列表
	ModuleList []OpenEquipmentDto `json:"module_list,omitempty" xml:"module_list>open_equipment_dto,omitempty"`
	// 错误信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 是否执行异常
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaLstVendingEquipmentQueryResultDto 结构体

type AlibabaLstVendingGoodsSaveAPIRequest

type AlibabaLstVendingGoodsSaveAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaLstVendingGoodsSaveAPIRequest 自动售卖机商品回传 API请求 alibaba.lst.vending.goods.save

零售通自动售卖机商品数据回流。

func NewAlibabaLstVendingGoodsSaveRequest

func NewAlibabaLstVendingGoodsSaveRequest() *AlibabaLstVendingGoodsSaveAPIRequest

NewAlibabaLstVendingGoodsSaveRequest 初始化AlibabaLstVendingGoodsSaveAPIRequest对象

func (AlibabaLstVendingGoodsSaveAPIRequest) GetApiMethodName

func (r AlibabaLstVendingGoodsSaveAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaLstVendingGoodsSaveAPIRequest) GetApiParams

func (r AlibabaLstVendingGoodsSaveAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaLstVendingGoodsSaveAPIRequest) GetGoodsDTOList

GetGoodsDTOList GoodsDTOList Getter

func (AlibabaLstVendingGoodsSaveAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaLstVendingGoodsSaveAPIRequest) SetGoodsDTOList

func (r *AlibabaLstVendingGoodsSaveAPIRequest) SetGoodsDTOList(_goodsDTOList []VendingGoodsDto) error

SetGoodsDTOList is GoodsDTOList Setter 商品信息

type AlibabaLstVendingGoodsSaveAPIResponse

type AlibabaLstVendingGoodsSaveAPIResponse struct {
	model.CommonResponse
	AlibabaLstVendingGoodsSaveAPIResponseModel
}

AlibabaLstVendingGoodsSaveAPIResponse 自动售卖机商品回传 API返回值 alibaba.lst.vending.goods.save

零售通自动售卖机商品数据回流。

type AlibabaLstVendingGoodsSaveAPIResponseModel

type AlibabaLstVendingGoodsSaveAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_lst_vending_goods_save_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果集
	Result *MultiResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaLstVendingGoodsSaveAPIResponseModel is 自动售卖机商品回传 成功返回结果

type AlibabaLstVendingGoodsSaveResultDto

type AlibabaLstVendingGoodsSaveResultDto struct {
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 记录唯一值
	Key string `json:"key,omitempty" xml:"key,omitempty"`
}

AlibabaLstVendingGoodsSaveResultDto 结构体

type AlibabaLstVendingOrderUpdateAPIRequest

type AlibabaLstVendingOrderUpdateAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaLstVendingOrderUpdateAPIRequest 自动售货机订单物流信息回传 API请求 alibaba.lst.vending.order.update

零售通与设备供应商进行订单对接,通过此接口回流订单物流信息。

func NewAlibabaLstVendingOrderUpdateRequest

func NewAlibabaLstVendingOrderUpdateRequest() *AlibabaLstVendingOrderUpdateAPIRequest

NewAlibabaLstVendingOrderUpdateRequest 初始化AlibabaLstVendingOrderUpdateAPIRequest对象

func (AlibabaLstVendingOrderUpdateAPIRequest) GetApiMethodName

func (r AlibabaLstVendingOrderUpdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaLstVendingOrderUpdateAPIRequest) GetApiParams

func (r AlibabaLstVendingOrderUpdateAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaLstVendingOrderUpdateAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaLstVendingOrderUpdateAPIRequest) GetVendingOrderDTO

GetVendingOrderDTO VendingOrderDTO Getter

func (*AlibabaLstVendingOrderUpdateAPIRequest) SetVendingOrderDTO

func (r *AlibabaLstVendingOrderUpdateAPIRequest) SetVendingOrderDTO(_vendingOrderDTO *VendingOrderDto) error

SetVendingOrderDTO is VendingOrderDTO Setter 零售通设备订单

type AlibabaLstVendingOrderUpdateAPIResponse

type AlibabaLstVendingOrderUpdateAPIResponse struct {
	model.CommonResponse
	AlibabaLstVendingOrderUpdateAPIResponseModel
}

AlibabaLstVendingOrderUpdateAPIResponse 自动售货机订单物流信息回传 API返回值 alibaba.lst.vending.order.update

零售通与设备供应商进行订单对接,通过此接口回流订单物流信息。

type AlibabaLstVendingOrderUpdateAPIResponseModel

type AlibabaLstVendingOrderUpdateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_lst_vending_order_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误码
	ErrorNo string `json:"error_no,omitempty" xml:"error_no,omitempty"`
	// 错误信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 请求是否成功
	Succ bool `json:"succ,omitempty" xml:"succ,omitempty"`
	// 是否执行了更新操作
	Module bool `json:"module,omitempty" xml:"module,omitempty"`
}

AlibabaLstVendingOrderUpdateAPIResponseModel is 自动售货机订单物流信息回传 成功返回结果

type AlibabaLstVendingShippingCallbackAPIRequest

type AlibabaLstVendingShippingCallbackAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaLstVendingShippingCallbackAPIRequest 售货机出货回传接口 API请求 alibaba.lst.vending.shipping.callback

零售通自动售货机商品出货回传接口,同步商品出库最新状态。

func NewAlibabaLstVendingShippingCallbackRequest

func NewAlibabaLstVendingShippingCallbackRequest() *AlibabaLstVendingShippingCallbackAPIRequest

NewAlibabaLstVendingShippingCallbackRequest 初始化AlibabaLstVendingShippingCallbackAPIRequest对象

func (AlibabaLstVendingShippingCallbackAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaLstVendingShippingCallbackAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaLstVendingShippingCallbackAPIRequest) GetCode

GetCode Code Getter

func (AlibabaLstVendingShippingCallbackAPIRequest) GetEquipmentCode

GetEquipmentCode EquipmentCode Getter

func (AlibabaLstVendingShippingCallbackAPIRequest) GetMessage

GetMessage Message Getter

func (AlibabaLstVendingShippingCallbackAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaLstVendingShippingCallbackAPIRequest) GetTime

GetTime Time Getter

func (AlibabaLstVendingShippingCallbackAPIRequest) GetTradeFlowNo

GetTradeFlowNo TradeFlowNo Getter

func (*AlibabaLstVendingShippingCallbackAPIRequest) SetCode

SetCode is Code Setter 处理结果代码

func (*AlibabaLstVendingShippingCallbackAPIRequest) SetEquipmentCode

func (r *AlibabaLstVendingShippingCallbackAPIRequest) SetEquipmentCode(_equipmentCode string) error

SetEquipmentCode is EquipmentCode Setter 厂商设备编码

func (*AlibabaLstVendingShippingCallbackAPIRequest) SetMessage

SetMessage is Message Setter 处理结果代码描述

func (*AlibabaLstVendingShippingCallbackAPIRequest) SetTime

SetTime is Time Setter 出货时间

func (*AlibabaLstVendingShippingCallbackAPIRequest) SetTradeFlowNo

func (r *AlibabaLstVendingShippingCallbackAPIRequest) SetTradeFlowNo(_tradeFlowNo string) error

SetTradeFlowNo is TradeFlowNo Setter 交易流水号

type AlibabaLstVendingShippingCallbackAPIResponse

type AlibabaLstVendingShippingCallbackAPIResponse struct {
	model.CommonResponse
	AlibabaLstVendingShippingCallbackAPIResponseModel
}

AlibabaLstVendingShippingCallbackAPIResponse 售货机出货回传接口 API返回值 alibaba.lst.vending.shipping.callback

零售通自动售货机商品出货回传接口,同步商品出库最新状态。

type AlibabaLstVendingShippingCallbackAPIResponseModel

type AlibabaLstVendingShippingCallbackAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_lst_vending_shipping_callback_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 执行结果
	Module bool `json:"module,omitempty" xml:"module,omitempty"`
}

AlibabaLstVendingShippingCallbackAPIResponseModel is 售货机出货回传接口 成功返回结果

type AlibabaLstVendingTradeflowQueryAPIRequest

type AlibabaLstVendingTradeflowQueryAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaLstVendingTradeflowQueryAPIRequest 自动售卖机交易流水查询 API请求 alibaba.lst.vending.tradeflow.query

零售通自动售卖机交易流水查询接口,品牌商通过此接口同步商品交易数据。

func NewAlibabaLstVendingTradeflowQueryRequest

func NewAlibabaLstVendingTradeflowQueryRequest() *AlibabaLstVendingTradeflowQueryAPIRequest

NewAlibabaLstVendingTradeflowQueryRequest 初始化AlibabaLstVendingTradeflowQueryAPIRequest对象

func (AlibabaLstVendingTradeflowQueryAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaLstVendingTradeflowQueryAPIRequest) GetApiParams

func (r AlibabaLstVendingTradeflowQueryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaLstVendingTradeflowQueryAPIRequest) GetOpenTradeFlowQuery

GetOpenTradeFlowQuery OpenTradeFlowQuery Getter

func (AlibabaLstVendingTradeflowQueryAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaLstVendingTradeflowQueryAPIRequest) SetOpenTradeFlowQuery

func (r *AlibabaLstVendingTradeflowQueryAPIRequest) SetOpenTradeFlowQuery(_openTradeFlowQuery *OpenTradeFlowQuery) error

SetOpenTradeFlowQuery is OpenTradeFlowQuery Setter 交易流水查询条件

type AlibabaLstVendingTradeflowQueryAPIResponse

type AlibabaLstVendingTradeflowQueryAPIResponse struct {
	model.CommonResponse
	AlibabaLstVendingTradeflowQueryAPIResponseModel
}

AlibabaLstVendingTradeflowQueryAPIResponse 自动售卖机交易流水查询 API返回值 alibaba.lst.vending.tradeflow.query

零售通自动售卖机交易流水查询接口,品牌商通过此接口同步商品交易数据。

type AlibabaLstVendingTradeflowQueryAPIResponseModel

type AlibabaLstVendingTradeflowQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_lst_vending_tradeflow_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果集
	Result *AlibabaLstVendingTradeflowQueryResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaLstVendingTradeflowQueryAPIResponseModel is 自动售卖机交易流水查询 成功返回结果

type AlibabaLstVendingTradeflowQueryResultDto

type AlibabaLstVendingTradeflowQueryResultDto struct {
	// 交易流水记录
	ModuleList []VendingTradeFlowDto `json:"module_list,omitempty" xml:"module_list>vending_trade_flow_dto,omitempty"`
	// 错误信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 是否异常
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaLstVendingTradeflowQueryResultDto 结构体

type AlibabaLstVendingTradeflowSaveAPIRequest

type AlibabaLstVendingTradeflowSaveAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaLstVendingTradeflowSaveAPIRequest 自动售卖机交易信息回流 API请求 alibaba.lst.vending.tradeflow.save

自动售货机交易信息同步接口,ISV通过此接口上传售货机交易信息。

func NewAlibabaLstVendingTradeflowSaveRequest

func NewAlibabaLstVendingTradeflowSaveRequest() *AlibabaLstVendingTradeflowSaveAPIRequest

NewAlibabaLstVendingTradeflowSaveRequest 初始化AlibabaLstVendingTradeflowSaveAPIRequest对象

func (AlibabaLstVendingTradeflowSaveAPIRequest) GetApiMethodName

func (r AlibabaLstVendingTradeflowSaveAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaLstVendingTradeflowSaveAPIRequest) GetApiParams

func (r AlibabaLstVendingTradeflowSaveAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaLstVendingTradeflowSaveAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaLstVendingTradeflowSaveAPIRequest) GetTradeFlowDTOList

GetTradeFlowDTOList TradeFlowDTOList Getter

func (*AlibabaLstVendingTradeflowSaveAPIRequest) SetTradeFlowDTOList

func (r *AlibabaLstVendingTradeflowSaveAPIRequest) SetTradeFlowDTOList(_tradeFlowDTOList []VendingTradeFlowDto) error

SetTradeFlowDTOList is TradeFlowDTOList Setter 交易流水信息

type AlibabaLstVendingTradeflowSaveAPIResponse

type AlibabaLstVendingTradeflowSaveAPIResponse struct {
	model.CommonResponse
	AlibabaLstVendingTradeflowSaveAPIResponseModel
}

AlibabaLstVendingTradeflowSaveAPIResponse 自动售卖机交易信息回流 API返回值 alibaba.lst.vending.tradeflow.save

自动售货机交易信息同步接口,ISV通过此接口上传售货机交易信息。

type AlibabaLstVendingTradeflowSaveAPIResponseModel

type AlibabaLstVendingTradeflowSaveAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_lst_vending_tradeflow_save_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果集
	Result *MultiResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaLstVendingTradeflowSaveAPIResponseModel is 自动售卖机交易信息回流 成功返回结果

type AlibabaLstVendingTradeflowSaveResultDto

type AlibabaLstVendingTradeflowSaveResultDto struct {
	// 错误信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 执行失败记录ID
	Key string `json:"key,omitempty" xml:"key,omitempty"`
}

AlibabaLstVendingTradeflowSaveResultDto 结构体

type AlibabaLstVendngImageUploadAPIRequest

type AlibabaLstVendngImageUploadAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaLstVendngImageUploadAPIRequest 售货机商品图片上传 API请求 alibaba.lst.vendng.image.upload

零售通自动售货机商品图片上传接口,主要为ISV厂商提供图片同步的通道,从而建立统一的商品图片库。

func NewAlibabaLstVendngImageUploadRequest

func NewAlibabaLstVendngImageUploadRequest() *AlibabaLstVendngImageUploadAPIRequest

NewAlibabaLstVendngImageUploadRequest 初始化AlibabaLstVendngImageUploadAPIRequest对象

func (AlibabaLstVendngImageUploadAPIRequest) GetApiMethodName

func (r AlibabaLstVendngImageUploadAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaLstVendngImageUploadAPIRequest) GetApiParams

func (r AlibabaLstVendngImageUploadAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaLstVendngImageUploadAPIRequest) GetImgBytes

GetImgBytes ImgBytes Getter

func (AlibabaLstVendngImageUploadAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaLstVendngImageUploadAPIRequest) SetImgBytes

func (r *AlibabaLstVendngImageUploadAPIRequest) SetImgBytes(_imgBytes *model.File) error

SetImgBytes is ImgBytes Setter 图片文件字节数组

type AlibabaLstVendngImageUploadAPIResponse

type AlibabaLstVendngImageUploadAPIResponse struct {
	model.CommonResponse
	AlibabaLstVendngImageUploadAPIResponseModel
}

AlibabaLstVendngImageUploadAPIResponse 售货机商品图片上传 API返回值 alibaba.lst.vendng.image.upload

零售通自动售货机商品图片上传接口,主要为ISV厂商提供图片同步的通道,从而建立统一的商品图片库。

type AlibabaLstVendngImageUploadAPIResponseModel

type AlibabaLstVendngImageUploadAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_lst_vendng_image_upload_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果集
	Result *AlibabaLstVendngImageUploadResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaLstVendngImageUploadAPIResponseModel is 售货机商品图片上传 成功返回结果

type AlibabaLstVendngImageUploadResultDto

type AlibabaLstVendngImageUploadResultDto struct {
	// 错误信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 图片上传信息
	Module *VendingImageDto `json:"module,omitempty" xml:"module,omitempty"`
	// 是否处理成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaLstVendngImageUploadResultDto 结构体

type MultiResultDto

type MultiResultDto struct {
	// 执行成功结果集
	ModuleList []VendingCargoSpaceDto `json:"module_list,omitempty" xml:"module_list>vending_cargo_space_dto,omitempty"`
	// 执行失败结果集
	ErrorList []AlibabaLstVendingCargospaceSaveResultDto `json:"error_list,omitempty" xml:"error_list>alibaba_lst_vending_cargospace_save_result_dto,omitempty"`
	// 错误信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 执行是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

MultiResultDto 结构体

type OpenEquipmentDto

type OpenEquipmentDto struct {
	// 省份代码
	ProvinceCode string `json:"province_code,omitempty" xml:"province_code,omitempty"`
	// 省份
	Province string `json:"province,omitempty" xml:"province,omitempty"`
	// 城市代码
	CityCode string `json:"city_code,omitempty" xml:"city_code,omitempty"`
	// 城市
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 地区代码
	AreaCode string `json:"area_code,omitempty" xml:"area_code,omitempty"`
	// 地区
	Area string `json:"area,omitempty" xml:"area,omitempty"`
	// 供应商代码
	SupplierCode string `json:"supplier_code,omitempty" xml:"supplier_code,omitempty"`
	// 型号名称
	ModelName string `json:"model_name,omitempty" xml:"model_name,omitempty"`
	// 设备代码
	EquipmentCode string `json:"equipment_code,omitempty" xml:"equipment_code,omitempty"`
	// 设备激活时间
	EnabledTime string `json:"enabled_time,omitempty" xml:"enabled_time,omitempty"`
	// 修改时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 设备回收(转租)时间
	RecoveredTime string `json:"recovered_time,omitempty" xml:"recovered_time,omitempty"`
	// 设备ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 创建时间
	GmtCreate int64 `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 设备状态:1未激活,2已激活,3已回收(转租)
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
}

OpenEquipmentDto 结构体

type OpenEquipmentQuery

type OpenEquipmentQuery struct {
	// 排序条件
	SortParamList []SortParam `json:"sort_param_list,omitempty" xml:"sort_param_list>sort_param,omitempty"`
	// 修改时间
	GmtModifiedRange *Range `json:"gmt_modified_range,omitempty" xml:"gmt_modified_range,omitempty"`
	// 每页记录数
	PageRows int64 `json:"page_rows,omitempty" xml:"page_rows,omitempty"`
	// 页数
	PageNum int64 `json:"page_num,omitempty" xml:"page_num,omitempty"`
	// 创建时间
	GmtCreateRange *Range `json:"gmt_create_range,omitempty" xml:"gmt_create_range,omitempty"`
}

OpenEquipmentQuery 结构体

type OpenTradeFlowQuery

type OpenTradeFlowQuery struct {
	// 排序条件
	SortParamList []SortParam `json:"sort_param_list,omitempty" xml:"sort_param_list>sort_param,omitempty"`
	// 修改时间
	GmtModifiedRange *Range `json:"gmt_modified_range,omitempty" xml:"gmt_modified_range,omitempty"`
	// 每页记录数
	PageRows int64 `json:"page_rows,omitempty" xml:"page_rows,omitempty"`
	// 设备ID
	EquipmentId int64 `json:"equipment_id,omitempty" xml:"equipment_id,omitempty"`
	// 创建时间
	GmtCreateRange *Range `json:"gmt_create_range,omitempty" xml:"gmt_create_range,omitempty"`
	// 页码
	PageNum int64 `json:"page_num,omitempty" xml:"page_num,omitempty"`
}

OpenTradeFlowQuery 结构体

type Range

type Range struct {
	// 结束时间
	End string `json:"end,omitempty" xml:"end,omitempty"`
	// 开始时间
	Begin string `json:"begin,omitempty" xml:"begin,omitempty"`
}

Range 结构体

type SortParam

type SortParam struct {
	// 排序字段名称:gmt_create创建时间、gmt_modified修改时间、id主键
	SortFieldName string `json:"sort_field_name,omitempty" xml:"sort_field_name,omitempty"`
	// 排序方式:asc、desc
	SortOrder string `json:"sort_order,omitempty" xml:"sort_order,omitempty"`
}

SortParam 结构体

type VendingCargoSpaceDto

type VendingCargoSpaceDto struct {
	// 外部商品ID
	ExternalGoodsId string `json:"external_goods_id,omitempty" xml:"external_goods_id,omitempty"`
	// 厂商设备唯一编码
	EquipmentCode string `json:"equipment_code,omitempty" xml:"equipment_code,omitempty"`
	// 厂商货道ID
	ExternalId string `json:"external_id,omitempty" xml:"external_id,omitempty"`
	// 供应商编码
	SupplierCode string `json:"supplier_code,omitempty" xml:"supplier_code,omitempty"`
	// 修改时间
	GmtModified int64 `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 货道商品数量
	Count int64 `json:"count,omitempty" xml:"count,omitempty"`
	// 创建时间
	GmtCreate int64 `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 商品折扣价
	DiscountPrice int64 `json:"discount_price,omitempty" xml:"discount_price,omitempty"`
	// 货道编号,从1开始
	CargoRoadNo int64 `json:"cargo_road_no,omitempty" xml:"cargo_road_no,omitempty"`
	// 货道类型:1普通货道,2VIP货道
	BizType int64 `json:"biz_type,omitempty" xml:"biz_type,omitempty"`
	// 货架编号,从1开始
	ShelfNo int64 `json:"shelf_no,omitempty" xml:"shelf_no,omitempty"`
	// 商品单价,单位:分
	Price int64 `json:"price,omitempty" xml:"price,omitempty"`
	// 货道状态:1正常,2故障
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 商品ID
	GoodsId int64 `json:"goods_id,omitempty" xml:"goods_id,omitempty"`
	// 货道ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

VendingCargoSpaceDto 结构体

type VendingGoodsDto

type VendingGoodsDto struct {
	// 商品图片内容字节数组
	ImgData []*model.File `json:"img_data,omitempty" xml:"img_data>*model.File,omitempty"`
	// 建议摆放的货架层数
	ShelfNoList []int64 `json:"shelf_no_list,omitempty" xml:"shelf_no_list>int64,omitempty"`
	// 商品条码
	Barcode string `json:"barcode,omitempty" xml:"barcode,omitempty"`
	// 121212133
	ExternalId string `json:"external_id,omitempty" xml:"external_id,omitempty"`
	// 计量单位,如:个、件、包
	Unit string `json:"unit,omitempty" xml:"unit,omitempty"`
	// 商品标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 商品分类
	Category string `json:"category,omitempty" xml:"category,omitempty"`
	// 厂商设备唯一编码
	EquipmentCode string `json:"equipment_code,omitempty" xml:"equipment_code,omitempty"`
	// 商品图片ID
	ImgPathId string `json:"img_path_id,omitempty" xml:"img_path_id,omitempty"`
	// 供应商编码
	SupplierCode string `json:"supplier_code,omitempty" xml:"supplier_code,omitempty"`
	// 商品图片访问地址
	ImgUrl string `json:"img_url,omitempty" xml:"img_url,omitempty"`
	// 修改时间
	GmtModified int64 `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 创建时间
	GmtCreate int64 `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 状态:1上架,2下架,3删除
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 商品建议零售价
	Price int64 `json:"price,omitempty" xml:"price,omitempty"`
	// 商品ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

VendingGoodsDto 结构体

type VendingImageDto

type VendingImageDto struct {
	// 图片唯一标识
	ImgPathId string `json:"img_path_id,omitempty" xml:"img_path_id,omitempty"`
	// 图片访问地址
	Url string `json:"url,omitempty" xml:"url,omitempty"`
}

VendingImageDto 结构体

type VendingOrderDto

type VendingOrderDto struct {
	// 发货清单
	ShippedEquipmentList []VendingShippedEquipmentDto `json:"shipped_equipment_list,omitempty" xml:"shipped_equipment_list>vending_shipped_equipment_dto,omitempty"`
	// 快递单号
	TrackingNo string `json:"tracking_no,omitempty" xml:"tracking_no,omitempty"`
	// 快递联系人
	ShippingContact string `json:"shipping_contact,omitempty" xml:"shipping_contact,omitempty"`
	// 供应商订单号
	IsvOrderNo string `json:"isv_order_no,omitempty" xml:"isv_order_no,omitempty"`
	// 快递联系电话
	ShippingContactTel string `json:"shipping_contact_tel,omitempty" xml:"shipping_contact_tel,omitempty"`
	// 修改时间
	GmtModified int64 `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 零售通订单号
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 创建时间
	GmtCreate int64 `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 发货时间
	DeliveryTime int64 `json:"delivery_time,omitempty" xml:"delivery_time,omitempty"`
}

VendingOrderDto 结构体

type VendingShippedEquipmentDto

type VendingShippedEquipmentDto struct {
	// 供应商设备唯一编码
	EquipmentCode string `json:"equipment_code,omitempty" xml:"equipment_code,omitempty"`
	// 设备型号清单ID
	OrderItemId int64 `json:"order_item_id,omitempty" xml:"order_item_id,omitempty"`
}

VendingShippedEquipmentDto 结构体

type VendingTradeFlowDto

type VendingTradeFlowDto struct {
	// 商品清单
	GoodsDetailDTOList []VendingTradeGoodsDetailDto `json:"goods_detail_d_t_o_list,omitempty" xml:"goods_detail_d_t_o_list>vending_trade_goods_detail_dto,omitempty"`
	// 支付明细
	PaymentDTOList []VendingTradePaymentDto `json:"payment_d_t_o_list,omitempty" xml:"payment_d_t_o_list>vending_trade_payment_dto,omitempty"`
	// 设备厂商编码
	SupplierCode string `json:"supplier_code,omitempty" xml:"supplier_code,omitempty"`
	// 外部系统交易流水号
	TradeFlowNo string `json:"trade_flow_no,omitempty" xml:"trade_flow_no,omitempty"`
	// 外部系统正向交易流水号
	PaymentTradeFlowNo string `json:"payment_trade_flow_no,omitempty" xml:"payment_trade_flow_no,omitempty"`
	// 设备编码
	EquipmentCode string `json:"equipment_code,omitempty" xml:"equipment_code,omitempty"`
	// 扩展信息
	ExtFields string `json:"ext_fields,omitempty" xml:"ext_fields,omitempty"`
	// 修改时间
	GmtModified int64 `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 交易类型:1购买,2退款
	TradeType int64 `json:"trade_type,omitempty" xml:"trade_type,omitempty"`
	// 创建时间
	GmtCreate int64 `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 折扣
	Discount int64 `json:"discount,omitempty" xml:"discount,omitempty"`
	// 交易总金额
	TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"`
	// 设备ID
	EquipmentId int64 `json:"equipment_id,omitempty" xml:"equipment_id,omitempty"`
	// 佣金金额
	Commission int64 `json:"commission,omitempty" xml:"commission,omitempty"`
	// 实际总金额
	ActualAmount int64 `json:"actual_amount,omitempty" xml:"actual_amount,omitempty"`
}

VendingTradeFlowDto 结构体

type VendingTradeGoodsDetailDto

type VendingTradeGoodsDetailDto struct {
	// 外部系统交易流水号
	TradeFlowNo string `json:"trade_flow_no,omitempty" xml:"trade_flow_no,omitempty"`
	// 商品分类
	Category string `json:"category,omitempty" xml:"category,omitempty"`
	// 商品标题
	GoodsTitle string `json:"goods_title,omitempty" xml:"goods_title,omitempty"`
	// 商品条码
	Barcode string `json:"barcode,omitempty" xml:"barcode,omitempty"`
	// 外部系统商品ID
	ExternalGoodsId string `json:"external_goods_id,omitempty" xml:"external_goods_id,omitempty"`
	// 商品最小销售单位,如:包、盒、袋
	Unit string `json:"unit,omitempty" xml:"unit,omitempty"`
	// 修改时间
	GmtModified int64 `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 数量
	Count int64 `json:"count,omitempty" xml:"count,omitempty"`
	// 创建时间
	GmtCreate int64 `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 货道编码
	CargoRoadNo int64 `json:"cargo_road_no,omitempty" xml:"cargo_road_no,omitempty"`
	// 商品总金额
	TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"`
	// 商品实际金额
	ActualAmount int64 `json:"actual_amount,omitempty" xml:"actual_amount,omitempty"`
	// 货架编码
	ShelfNo int64 `json:"shelf_no,omitempty" xml:"shelf_no,omitempty"`
	// 商品单价
	Price int64 `json:"price,omitempty" xml:"price,omitempty"`
	// 货道业务类型:1普通;2推广
	BizType int64 `json:"biz_type,omitempty" xml:"biz_type,omitempty"`
	// 货道剩余商品数量
	RemainingQuantity int64 `json:"remaining_quantity,omitempty" xml:"remaining_quantity,omitempty"`
	// 商品ID
	GoodsId int64 `json:"goods_id,omitempty" xml:"goods_id,omitempty"`
	// 货道ID
	CargoSpaceId int64 `json:"cargo_space_id,omitempty" xml:"cargo_space_id,omitempty"`
	// 商品清单记录ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

VendingTradeGoodsDetailDto 结构体

type VendingTradePaymentDto

type VendingTradePaymentDto struct {
	// 外部系统交易流水号
	TradeFlowNo string `json:"trade_flow_no,omitempty" xml:"trade_flow_no,omitempty"`
	// 外部系统支付用户ID,比如:支付宝PID
	PaymentUserId string `json:"payment_user_id,omitempty" xml:"payment_user_id,omitempty"`
	// 外部系统支付流水号
	PaymentFlowNo string `json:"payment_flow_no,omitempty" xml:"payment_flow_no,omitempty"`
	// 支付金额
	PayAmount int64 `json:"pay_amount,omitempty" xml:"pay_amount,omitempty"`
	// 修改时间
	GmtModified int64 `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 创建时间
	GmtCreate int64 `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 支付状态:1待付款,2已付款
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 支付类型:1扣款,2退款
	PayType int64 `json:"pay_type,omitempty" xml:"pay_type,omitempty"`
	// 分佣佣金
	Commission int64 `json:"commission,omitempty" xml:"commission,omitempty"`
	// 支付通道:1现金,2支付宝,3微信,255其他
	PayChannel int64 `json:"pay_channel,omitempty" xml:"pay_channel,omitempty"`
	// 支付记录ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

VendingTradePaymentDto 结构体

Jump to

Keyboard shortcuts

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