Documentation ¶
Overview ¶
Package icbuproduct 包含ICBU商品api相关结构体
Index ¶
- type AlibabaIcbuProductIdEncryptAPIRequest
- func (r AlibabaIcbuProductIdEncryptAPIRequest) GetApiMethodName() string
- func (r AlibabaIcbuProductIdEncryptAPIRequest) GetApiParams() url.Values
- func (r AlibabaIcbuProductIdEncryptAPIRequest) GetLanguage() string
- func (r AlibabaIcbuProductIdEncryptAPIRequest) GetProductId() int64
- func (r *AlibabaIcbuProductIdEncryptAPIRequest) SetLanguage(_language string) error
- func (r *AlibabaIcbuProductIdEncryptAPIRequest) SetProductId(_productId int64) error
- type AlibabaIcbuProductIdEncryptAPIResponse
- type AlibabaIcbuProductIdEncryptAPIResponseModel
- type AlibabaIcbuProductInventoryUpdateAPIRequest
- func (r AlibabaIcbuProductInventoryUpdateAPIRequest) GetApiMethodName() string
- func (r AlibabaIcbuProductInventoryUpdateAPIRequest) GetApiParams() url.Values
- func (r AlibabaIcbuProductInventoryUpdateAPIRequest) GetRequestParam() *ProductInventoryRequest
- func (r *AlibabaIcbuProductInventoryUpdateAPIRequest) SetRequestParam(_requestParam *ProductInventoryRequest) error
- type AlibabaIcbuProductInventoryUpdateAPIResponse
- type AlibabaIcbuProductInventoryUpdateAPIResponseModel
- type InventoryDto
- type ProductInventoryRequest
- type TopResultDo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlibabaIcbuProductIdEncryptAPIRequest ¶ added in v1.2.0
type AlibabaIcbuProductIdEncryptAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaIcbuProductIdEncryptAPIRequest ICBU国际站商品加密接口 API请求 alibaba.icbu.product.id.encrypt
ICBU国际站,对混淆的产品ID加密。
func NewAlibabaIcbuProductIdEncryptRequest ¶
func NewAlibabaIcbuProductIdEncryptRequest() *AlibabaIcbuProductIdEncryptAPIRequest
NewAlibabaIcbuProductIdEncryptRequest 初始化AlibabaIcbuProductIdEncryptAPIRequest对象
func (AlibabaIcbuProductIdEncryptAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaIcbuProductIdEncryptAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaIcbuProductIdEncryptAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaIcbuProductIdEncryptAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaIcbuProductIdEncryptAPIRequest) GetLanguage ¶ added in v1.2.0
func (r AlibabaIcbuProductIdEncryptAPIRequest) GetLanguage() string
GetLanguage Language Getter
func (AlibabaIcbuProductIdEncryptAPIRequest) GetProductId ¶ added in v1.2.0
func (r AlibabaIcbuProductIdEncryptAPIRequest) GetProductId() int64
GetProductId ProductId Getter
func (*AlibabaIcbuProductIdEncryptAPIRequest) SetLanguage ¶ added in v1.2.0
func (r *AlibabaIcbuProductIdEncryptAPIRequest) SetLanguage(_language string) error
SetLanguage is Language Setter 语种
func (*AlibabaIcbuProductIdEncryptAPIRequest) SetProductId ¶ added in v1.2.0
func (r *AlibabaIcbuProductIdEncryptAPIRequest) SetProductId(_productId int64) error
SetProductId is ProductId Setter 明文id
type AlibabaIcbuProductIdEncryptAPIResponse ¶
type AlibabaIcbuProductIdEncryptAPIResponse struct { model.CommonResponse AlibabaIcbuProductIdEncryptAPIResponseModel }
AlibabaIcbuProductIdEncryptAPIResponse ICBU国际站商品加密接口 API返回值 alibaba.icbu.product.id.encrypt
ICBU国际站,对混淆的产品ID加密。
type AlibabaIcbuProductIdEncryptAPIResponseModel ¶ added in v1.2.0
type AlibabaIcbuProductIdEncryptAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_icbu_product_id_encrypt_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 加密id SecretId string `json:"secret_id,omitempty" xml:"secret_id,omitempty"` }
AlibabaIcbuProductIdEncryptAPIResponseModel is ICBU国际站商品加密接口 成功返回结果
type AlibabaIcbuProductInventoryUpdateAPIRequest ¶ added in v1.2.0
type AlibabaIcbuProductInventoryUpdateAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaIcbuProductInventoryUpdateAPIRequest icbu商品库存更新 API请求 alibaba.icbu.product.inventory.update
更新库存信息
func NewAlibabaIcbuProductInventoryUpdateRequest ¶
func NewAlibabaIcbuProductInventoryUpdateRequest() *AlibabaIcbuProductInventoryUpdateAPIRequest
NewAlibabaIcbuProductInventoryUpdateRequest 初始化AlibabaIcbuProductInventoryUpdateAPIRequest对象
func (AlibabaIcbuProductInventoryUpdateAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaIcbuProductInventoryUpdateAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaIcbuProductInventoryUpdateAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaIcbuProductInventoryUpdateAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaIcbuProductInventoryUpdateAPIRequest) GetRequestParam ¶ added in v1.2.0
func (r AlibabaIcbuProductInventoryUpdateAPIRequest) GetRequestParam() *ProductInventoryRequest
GetRequestParam RequestParam Getter
func (*AlibabaIcbuProductInventoryUpdateAPIRequest) SetRequestParam ¶ added in v1.2.0
func (r *AlibabaIcbuProductInventoryUpdateAPIRequest) SetRequestParam(_requestParam *ProductInventoryRequest) error
SetRequestParam is RequestParam Setter 更新请求
type AlibabaIcbuProductInventoryUpdateAPIResponse ¶
type AlibabaIcbuProductInventoryUpdateAPIResponse struct { model.CommonResponse AlibabaIcbuProductInventoryUpdateAPIResponseModel }
AlibabaIcbuProductInventoryUpdateAPIResponse icbu商品库存更新 API返回值 alibaba.icbu.product.inventory.update
更新库存信息
type AlibabaIcbuProductInventoryUpdateAPIResponseModel ¶ added in v1.2.0
type AlibabaIcbuProductInventoryUpdateAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_icbu_product_inventory_update_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // Top返回对象 Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` }
AlibabaIcbuProductInventoryUpdateAPIResponseModel is icbu商品库存更新 成功返回结果
type InventoryDto ¶
type InventoryDto struct { // 库存的仓编码,根据商品查询返回的仓编码进行设置,不同的客户类型,仓编码会不一样 InventoryCode string `json:"inventory_code,omitempty" xml:"inventory_code,omitempty"` // 操作类型,加库存或者减库存,加库存:plus,减库存:sub Operate string `json:"operate,omitempty" xml:"operate,omitempty"` // 待更新库存的SKUid,如果没有skuId,设置成-1 SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"` // 库存变动值 Inventory int64 `json:"inventory,omitempty" xml:"inventory,omitempty"` }
InventoryDto 结构体
type ProductInventoryRequest ¶
type ProductInventoryRequest struct { // 待更新的库存列表 InventoryList []InventoryDto `json:"inventory_list,omitempty" xml:"inventory_list>inventory_dto,omitempty"` // 商品id ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"` }
ProductInventoryRequest 结构体
type TopResultDo ¶
type TopResultDo struct { // 库存更新是否成功 Data string `json:"data,omitempty" xml:"data,omitempty"` // 接口更新失败时错误信息 Message string `json:"message,omitempty" xml:"message,omitempty"` // 失败错误码 MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` // 接口失败时的追踪id TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` // 调用是否成功 Success bool `json:"success,omitempty" xml:"success,omitempty"` }
TopResultDo 结构体