icbuproduct

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package icbuproduct 包含ICBU商品api相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseAlibabaIcbuProductIdEncryptAPIRequest added in v1.3.4

func ReleaseAlibabaIcbuProductIdEncryptAPIRequest(v *AlibabaIcbuProductIdEncryptAPIRequest)

ReleaseAlibabaIcbuProductIdEncryptAPIRequest 将 AlibabaIcbuProductIdEncryptAPIRequest 放入 sync.Pool

func ReleaseAlibabaIcbuProductIdEncryptAPIResponse added in v1.3.4

func ReleaseAlibabaIcbuProductIdEncryptAPIResponse(v *AlibabaIcbuProductIdEncryptAPIResponse)

ReleaseAlibabaIcbuProductIdEncryptAPIResponse 将 AlibabaIcbuProductIdEncryptAPIResponse 保存到 sync.Pool

func ReleaseAlibabaIcbuProductInventoryUpdateAPIRequest added in v1.3.4

func ReleaseAlibabaIcbuProductInventoryUpdateAPIRequest(v *AlibabaIcbuProductInventoryUpdateAPIRequest)

ReleaseAlibabaIcbuProductInventoryUpdateAPIRequest 将 AlibabaIcbuProductInventoryUpdateAPIRequest 放入 sync.Pool

func ReleaseAlibabaIcbuProductInventoryUpdateAPIResponse added in v1.3.4

func ReleaseAlibabaIcbuProductInventoryUpdateAPIResponse(v *AlibabaIcbuProductInventoryUpdateAPIResponse)

ReleaseAlibabaIcbuProductInventoryUpdateAPIResponse 将 AlibabaIcbuProductInventoryUpdateAPIResponse 保存到 sync.Pool

func ReleaseAlibabaIcbuProductTypeAvailableGetAPIRequest added in v1.3.4

func ReleaseAlibabaIcbuProductTypeAvailableGetAPIRequest(v *AlibabaIcbuProductTypeAvailableGetAPIRequest)

ReleaseAlibabaIcbuProductTypeAvailableGetAPIRequest 将 AlibabaIcbuProductTypeAvailableGetAPIRequest 放入 sync.Pool

func ReleaseAlibabaIcbuProductTypeAvailableGetAPIResponse added in v1.3.4

func ReleaseAlibabaIcbuProductTypeAvailableGetAPIResponse(v *AlibabaIcbuProductTypeAvailableGetAPIResponse)

ReleaseAlibabaIcbuProductTypeAvailableGetAPIResponse 将 AlibabaIcbuProductTypeAvailableGetAPIResponse 保存到 sync.Pool

func ReleaseInventoryDto added in v1.3.4

func ReleaseInventoryDto(v *InventoryDto)

ReleaseInventoryDto 释放InventoryDto

func ReleaseProductInventoryRequest added in v1.3.4

func ReleaseProductInventoryRequest(v *ProductInventoryRequest)

ReleaseProductInventoryRequest 释放ProductInventoryRequest

func ReleaseProductSupportTypeDto added in v1.3.4

func ReleaseProductSupportTypeDto(v *ProductSupportTypeDto)

ReleaseProductSupportTypeDto 释放ProductSupportTypeDto

func ReleaseProductTopRequest added in v1.3.4

func ReleaseProductTopRequest(v *ProductTopRequest)

ReleaseProductTopRequest 释放ProductTopRequest

func ReleaseTopResultDo added in v1.3.4

func ReleaseTopResultDo(v *TopResultDo)

ReleaseTopResultDo 释放TopResultDo

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 GetAlibabaIcbuProductIdEncryptAPIRequest added in v1.3.4

func GetAlibabaIcbuProductIdEncryptAPIRequest() *AlibabaIcbuProductIdEncryptAPIRequest

GetAlibabaIcbuProductIdEncryptRequest 从 sync.Pool 获取 AlibabaIcbuProductIdEncryptAPIRequest

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(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaIcbuProductIdEncryptAPIRequest) GetLanguage added in v1.2.0

GetLanguage Language Getter

func (AlibabaIcbuProductIdEncryptAPIRequest) GetProductId added in v1.2.0

GetProductId ProductId Getter

func (AlibabaIcbuProductIdEncryptAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaIcbuProductIdEncryptAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

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加密。

func GetAlibabaIcbuProductIdEncryptAPIResponse added in v1.3.4

func GetAlibabaIcbuProductIdEncryptAPIResponse() *AlibabaIcbuProductIdEncryptAPIResponse

GetAlibabaIcbuProductIdEncryptAPIResponse 从 sync.Pool 获取 AlibabaIcbuProductIdEncryptAPIResponse

func (*AlibabaIcbuProductIdEncryptAPIResponse) Reset added in v1.3.4

Reset 清空结构体

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国际站商品加密接口 成功返回结果

func (*AlibabaIcbuProductIdEncryptAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

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 GetAlibabaIcbuProductInventoryUpdateAPIRequest added in v1.3.4

func GetAlibabaIcbuProductInventoryUpdateAPIRequest() *AlibabaIcbuProductInventoryUpdateAPIRequest

GetAlibabaIcbuProductInventoryUpdateRequest 从 sync.Pool 获取 AlibabaIcbuProductInventoryUpdateAPIRequest

func NewAlibabaIcbuProductInventoryUpdateRequest

func NewAlibabaIcbuProductInventoryUpdateRequest() *AlibabaIcbuProductInventoryUpdateAPIRequest

NewAlibabaIcbuProductInventoryUpdateRequest 初始化AlibabaIcbuProductInventoryUpdateAPIRequest对象

func (AlibabaIcbuProductInventoryUpdateAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaIcbuProductInventoryUpdateAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaIcbuProductInventoryUpdateAPIRequest) GetRawParams added in v1.2.8

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

func (AlibabaIcbuProductInventoryUpdateAPIRequest) GetRequestParam added in v1.2.0

GetRequestParam RequestParam Getter

func (*AlibabaIcbuProductInventoryUpdateAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaIcbuProductInventoryUpdateAPIRequest) SetRequestParam added in v1.2.0

SetRequestParam is RequestParam Setter 更新请求

type AlibabaIcbuProductInventoryUpdateAPIResponse

type AlibabaIcbuProductInventoryUpdateAPIResponse struct {
	model.CommonResponse
	AlibabaIcbuProductInventoryUpdateAPIResponseModel
}

AlibabaIcbuProductInventoryUpdateAPIResponse icbu商品库存更新 API返回值 alibaba.icbu.product.inventory.update

更新库存信息

func GetAlibabaIcbuProductInventoryUpdateAPIResponse added in v1.3.4

func GetAlibabaIcbuProductInventoryUpdateAPIResponse() *AlibabaIcbuProductInventoryUpdateAPIResponse

GetAlibabaIcbuProductInventoryUpdateAPIResponse 从 sync.Pool 获取 AlibabaIcbuProductInventoryUpdateAPIResponse

func (*AlibabaIcbuProductInventoryUpdateAPIResponse) Reset added in v1.3.4

Reset 清空结构体

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商品库存更新 成功返回结果

func (*AlibabaIcbuProductInventoryUpdateAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaIcbuProductTypeAvailableGetAPIRequest added in v1.2.5

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

AlibabaIcbuProductTypeAvailableGetAPIRequest 商家发品类型查询 API请求 alibaba.icbu.product.type.available.get

查询商家发品权限

func GetAlibabaIcbuProductTypeAvailableGetAPIRequest added in v1.3.4

func GetAlibabaIcbuProductTypeAvailableGetAPIRequest() *AlibabaIcbuProductTypeAvailableGetAPIRequest

GetAlibabaIcbuProductTypeAvailableGetRequest 从 sync.Pool 获取 AlibabaIcbuProductTypeAvailableGetAPIRequest

func NewAlibabaIcbuProductTypeAvailableGetRequest added in v1.2.5

func NewAlibabaIcbuProductTypeAvailableGetRequest() *AlibabaIcbuProductTypeAvailableGetAPIRequest

NewAlibabaIcbuProductTypeAvailableGetRequest 初始化AlibabaIcbuProductTypeAvailableGetAPIRequest对象

func (AlibabaIcbuProductTypeAvailableGetAPIRequest) GetApiMethodName added in v1.2.5

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaIcbuProductTypeAvailableGetAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaIcbuProductTypeAvailableGetAPIRequest) GetRawParams added in v1.2.8

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

func (AlibabaIcbuProductTypeAvailableGetAPIRequest) GetTypeRequest added in v1.2.5

GetTypeRequest TypeRequest Getter

func (*AlibabaIcbuProductTypeAvailableGetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaIcbuProductTypeAvailableGetAPIRequest) SetTypeRequest added in v1.2.5

func (r *AlibabaIcbuProductTypeAvailableGetAPIRequest) SetTypeRequest(_typeRequest *ProductTopRequest) error

SetTypeRequest is TypeRequest Setter -

type AlibabaIcbuProductTypeAvailableGetAPIResponse added in v1.2.5

type AlibabaIcbuProductTypeAvailableGetAPIResponse struct {
	model.CommonResponse
	AlibabaIcbuProductTypeAvailableGetAPIResponseModel
}

AlibabaIcbuProductTypeAvailableGetAPIResponse 商家发品类型查询 API返回值 alibaba.icbu.product.type.available.get

查询商家发品权限

func GetAlibabaIcbuProductTypeAvailableGetAPIResponse added in v1.3.4

func GetAlibabaIcbuProductTypeAvailableGetAPIResponse() *AlibabaIcbuProductTypeAvailableGetAPIResponse

GetAlibabaIcbuProductTypeAvailableGetAPIResponse 从 sync.Pool 获取 AlibabaIcbuProductTypeAvailableGetAPIResponse

func (*AlibabaIcbuProductTypeAvailableGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaIcbuProductTypeAvailableGetAPIResponseModel added in v1.2.5

type AlibabaIcbuProductTypeAvailableGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_icbu_product_type_available_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误追踪码,请务必打印在日志中,后续排查问题请提交此错误追踪码
	TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"`
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 返回的错误码,数组形式的字符串,用;分割
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// 返回结果数据
	Data *ProductSupportTypeDto `json:"data,omitempty" xml:"data,omitempty"`
	// 调用是否成功
	BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"`
}

AlibabaIcbuProductTypeAvailableGetAPIResponseModel is 商家发品类型查询 成功返回结果

func (*AlibabaIcbuProductTypeAvailableGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

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 结构体

func GetInventoryDto added in v1.3.4

func GetInventoryDto() *InventoryDto

GetInventoryDto() 从对象池中获取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 结构体

func GetProductInventoryRequest added in v1.3.4

func GetProductInventoryRequest() *ProductInventoryRequest

GetProductInventoryRequest() 从对象池中获取ProductInventoryRequest

type ProductSupportTypeDto added in v1.2.5

type ProductSupportTypeDto struct {
	// 是否支持下单品
	SupportPostWholeSale bool `json:"support_post_whole_sale,omitempty" xml:"support_post_whole_sale,omitempty"`
	// 是否支持询盘品
	SupportPostSourcing bool `json:"support_post_sourcing,omitempty" xml:"support_post_sourcing,omitempty"`
}

ProductSupportTypeDto 结构体

func GetProductSupportTypeDto added in v1.3.4

func GetProductSupportTypeDto() *ProductSupportTypeDto

GetProductSupportTypeDto() 从对象池中获取ProductSupportTypeDto

type ProductTopRequest added in v1.2.5

type ProductTopRequest struct {
	// 返回结果语种
	Language string `json:"language,omitempty" xml:"language,omitempty"`
	// 类目id
	CatId int64 `json:"cat_id,omitempty" xml:"cat_id,omitempty"`
}

ProductTopRequest 结构体

func GetProductTopRequest added in v1.3.4

func GetProductTopRequest() *ProductTopRequest

GetProductTopRequest() 从对象池中获取ProductTopRequest

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 结构体

func GetTopResultDo added in v1.3.4

func GetTopResultDo() *TopResultDo

GetTopResultDo() 从对象池中获取TopResultDo

Jump to

Keyboard shortcuts

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