tbitem

package
v1.3.2 Latest Latest
Warning

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

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

Documentation

Overview

Package tbitem 包含淘宝商品API,相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaitemeditfastupdateAPIRequest added in v1.3.1

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

AlibabaitemeditfastupdateAPIRequest 商品编辑增量更新 API请求 alibaba.item.edit.fastupdate

商品编辑增量更新; <br/>该接口编辑sku,只能更新价格、库存等信息,不能新增sku; <br/>新增sku用全量接口alibaba.item.edit.submit,先设置销售属性;

func NewAlibabaitemeditfastupdateRequest added in v1.3.1

func NewAlibabaitemeditfastupdateRequest() *AlibabaitemeditfastupdateAPIRequest

NewAlibabaitemeditfastupdateRequest 初始化AlibabaitemeditfastupdateAPIRequest对象

func (AlibabaitemeditfastupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaitemeditfastupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaitemeditfastupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaitemeditfastupdateAPIRequest) GetCatId added in v1.3.1

GetCatId CatId Getter

func (AlibabaitemeditfastupdateAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (AlibabaitemeditfastupdateAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaitemeditfastupdateAPIRequest) GetSchema added in v1.3.1

GetSchema Schema Getter

func (AlibabaitemeditfastupdateAPIRequest) GetSpuId added in v1.3.1

GetSpuId SpuId Getter

func (*AlibabaitemeditfastupdateAPIRequest) SetCatId added in v1.3.1

func (r *AlibabaitemeditfastupdateAPIRequest) SetCatId(_catId int64) error

SetCatId is CatId Setter 商品类目ID。若不需要修改商品类目,则不用填写

func (*AlibabaitemeditfastupdateAPIRequest) SetItemId added in v1.3.1

func (r *AlibabaitemeditfastupdateAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品ID

func (*AlibabaitemeditfastupdateAPIRequest) SetSchema added in v1.3.1

func (r *AlibabaitemeditfastupdateAPIRequest) SetSchema(_schema string) error

SetSchema is Schema Setter 编辑后的schema信息(增量更新,只填写需要更新的字段)

func (*AlibabaitemeditfastupdateAPIRequest) SetSpuId added in v1.3.1

func (r *AlibabaitemeditfastupdateAPIRequest) SetSpuId(_spuId int64) error

SetSpuId is SpuId Setter 产品ID,若不需要修改关联的产品信息,则不需要填写

type AlibabaitemeditfastupdateAPIResponse added in v1.3.1

type AlibabaitemeditfastupdateAPIResponse struct {
	model.CommonResponse
	AlibabaitemeditfastupdateAPIResponseModel
}

AlibabaitemeditfastupdateAPIResponse 商品编辑增量更新 API返回值 alibaba.item.edit.fastupdate

商品编辑增量更新; <br/>该接口编辑sku,只能更新价格、库存等信息,不能新增sku; <br/>新增sku用全量接口alibaba.item.edit.submit,先设置销售属性;

type AlibabaitemeditfastupdateAPIResponseModel added in v1.3.1

type AlibabaitemeditfastupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_item_edit_fastupdate_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品更新时间
	UpdateTime string `json:"update_time,omitempty" xml:"update_time,omitempty"`
	// 商品所属市场
	Market string `json:"market,omitempty" xml:"market,omitempty"`
	// 商品ID
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
}

AlibabaitemeditfastupdateAPIResponseModel is 商品编辑增量更新 成功返回结果

type AlibabaitemeditschemagetAPIRequest added in v1.3.1

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

AlibabaitemeditschemagetAPIRequest 商品编辑获取schema信息 API请求 alibaba.item.edit.schema.get

商品编辑时,获取商品规则信息

func NewAlibabaitemeditschemagetRequest added in v1.3.1

func NewAlibabaitemeditschemagetRequest() *AlibabaitemeditschemagetAPIRequest

NewAlibabaitemeditschemagetRequest 初始化AlibabaitemeditschemagetAPIRequest对象

func (AlibabaitemeditschemagetAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaitemeditschemagetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaitemeditschemagetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaitemeditschemagetAPIRequest) GetBizType added in v1.3.1

GetBizType BizType Getter

func (AlibabaitemeditschemagetAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (AlibabaitemeditschemagetAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (AlibabaitemeditschemagetAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaitemeditschemagetAPIRequest) SetBizType added in v1.3.1

func (r *AlibabaitemeditschemagetAPIRequest) SetBizType(_bizType string) error

SetBizType is BizType Setter 业务扩展参数,需与平台约定好

func (*AlibabaitemeditschemagetAPIRequest) SetFields added in v1.3.1

func (r *AlibabaitemeditschemagetAPIRequest) SetFields(_fields []string) error

SetFields is Fields Setter 制定返回schema中field字段列表,可用于裁剪返回的schema信息。不填则为全部field

func (*AlibabaitemeditschemagetAPIRequest) SetItemId added in v1.3.1

func (r *AlibabaitemeditschemagetAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品ID

type AlibabaitemeditschemagetAPIResponse added in v1.3.1

type AlibabaitemeditschemagetAPIResponse struct {
	model.CommonResponse
	AlibabaitemeditschemagetAPIResponseModel
}

AlibabaitemeditschemagetAPIResponse 商品编辑获取schema信息 API返回值 alibaba.item.edit.schema.get

商品编辑时,获取商品规则信息

type AlibabaitemeditschemagetAPIResponseModel added in v1.3.1

type AlibabaitemeditschemagetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_item_edit_schema_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品已有规则信息,XML格式.
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaitemeditschemagetAPIResponseModel is 商品编辑获取schema信息 成功返回结果

type AlibabaitemeditsubmitAPIRequest added in v1.3.1

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

AlibabaitemeditsubmitAPIRequest 商品编辑提交schema信息 API请求 alibaba.item.edit.submit

商品编辑提交schema信息

func NewAlibabaitemeditsubmitRequest added in v1.3.1

func NewAlibabaitemeditsubmitRequest() *AlibabaitemeditsubmitAPIRequest

NewAlibabaitemeditsubmitRequest 初始化AlibabaitemeditsubmitAPIRequest对象

func (AlibabaitemeditsubmitAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaitemeditsubmitAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaitemeditsubmitAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaitemeditsubmitAPIRequest) GetBizType added in v1.3.1

func (r AlibabaitemeditsubmitAPIRequest) GetBizType() string

GetBizType BizType Getter

func (AlibabaitemeditsubmitAPIRequest) GetCatId added in v1.3.1

GetCatId CatId Getter

func (AlibabaitemeditsubmitAPIRequest) GetItemId added in v1.3.1

func (r AlibabaitemeditsubmitAPIRequest) GetItemId() int64

GetItemId ItemId Getter

func (AlibabaitemeditsubmitAPIRequest) GetRawParams added in v1.3.1

func (r AlibabaitemeditsubmitAPIRequest) GetRawParams() model.Params

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

func (AlibabaitemeditsubmitAPIRequest) GetSchema added in v1.3.1

GetSchema Schema Getter

func (AlibabaitemeditsubmitAPIRequest) GetSpuId added in v1.3.1

GetSpuId SpuId Getter

func (*AlibabaitemeditsubmitAPIRequest) SetBizType added in v1.3.1

func (r *AlibabaitemeditsubmitAPIRequest) SetBizType(_bizType string) error

SetBizType is BizType Setter 业务扩展参数,需与平台约定好

func (*AlibabaitemeditsubmitAPIRequest) SetCatId added in v1.3.1

func (r *AlibabaitemeditsubmitAPIRequest) SetCatId(_catId int64) error

SetCatId is CatId Setter 商品类目ID。若不需要修改商品类目,则不用填写

func (*AlibabaitemeditsubmitAPIRequest) SetItemId added in v1.3.1

func (r *AlibabaitemeditsubmitAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品ID

func (*AlibabaitemeditsubmitAPIRequest) SetSchema added in v1.3.1

func (r *AlibabaitemeditsubmitAPIRequest) SetSchema(_schema string) error

SetSchema is Schema Setter 编辑后的schema信息,通过alibaba.item.edit.schema.get获取

func (*AlibabaitemeditsubmitAPIRequest) SetSpuId added in v1.3.1

func (r *AlibabaitemeditsubmitAPIRequest) SetSpuId(_spuId int64) error

SetSpuId is SpuId Setter 产品ID,若不需要修改关联的产品信息,则不需要填写

type AlibabaitemeditsubmitAPIResponse added in v1.3.1

type AlibabaitemeditsubmitAPIResponse struct {
	model.CommonResponse
	AlibabaitemeditsubmitAPIResponseModel
}

AlibabaitemeditsubmitAPIResponse 商品编辑提交schema信息 API返回值 alibaba.item.edit.submit

商品编辑提交schema信息

type AlibabaitemeditsubmitAPIResponseModel added in v1.3.1

type AlibabaitemeditsubmitAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_item_edit_submit_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品更新时间
	UpdateTime string `json:"update_time,omitempty" xml:"update_time,omitempty"`
	// 商品所属市场
	Market string `json:"market,omitempty" xml:"market,omitempty"`
	// 商品ID
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
}

AlibabaitemeditsubmitAPIResponseModel is 商品编辑提交schema信息 成功返回结果

type AlibabaitemoperatedeleteAPIRequest added in v1.3.1

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

AlibabaitemoperatedeleteAPIRequest 商品删除 API请求 alibaba.item.operate.delete

商品删除

func NewAlibabaitemoperatedeleteRequest added in v1.3.1

func NewAlibabaitemoperatedeleteRequest() *AlibabaitemoperatedeleteAPIRequest

NewAlibabaitemoperatedeleteRequest 初始化AlibabaitemoperatedeleteAPIRequest对象

func (AlibabaitemoperatedeleteAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaitemoperatedeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaitemoperatedeleteAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaitemoperatedeleteAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (AlibabaitemoperatedeleteAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaitemoperatedeleteAPIRequest) SetItemId added in v1.3.1

func (r *AlibabaitemoperatedeleteAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品ID

type AlibabaitemoperatedeleteAPIResponse added in v1.3.1

type AlibabaitemoperatedeleteAPIResponse struct {
	model.CommonResponse
	AlibabaitemoperatedeleteAPIResponseModel
}

AlibabaitemoperatedeleteAPIResponse 商品删除 API返回值 alibaba.item.operate.delete

商品删除

type AlibabaitemoperatedeleteAPIResponseModel added in v1.3.1

type AlibabaitemoperatedeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_item_operate_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品删除是否成功
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaitemoperatedeleteAPIResponseModel is 商品删除 成功返回结果

type AlibabaitemoperatedownshelfAPIRequest added in v1.3.1

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

AlibabaitemoperatedownshelfAPIRequest 商品下架 API请求 alibaba.item.operate.downshelf

商品下架

func NewAlibabaitemoperatedownshelfRequest added in v1.3.1

func NewAlibabaitemoperatedownshelfRequest() *AlibabaitemoperatedownshelfAPIRequest

NewAlibabaitemoperatedownshelfRequest 初始化AlibabaitemoperatedownshelfAPIRequest对象

func (AlibabaitemoperatedownshelfAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaitemoperatedownshelfAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaitemoperatedownshelfAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaitemoperatedownshelfAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (AlibabaitemoperatedownshelfAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaitemoperatedownshelfAPIRequest) SetItemId added in v1.3.1

func (r *AlibabaitemoperatedownshelfAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品ID

type AlibabaitemoperatedownshelfAPIResponse added in v1.3.1

type AlibabaitemoperatedownshelfAPIResponse struct {
	model.CommonResponse
	AlibabaitemoperatedownshelfAPIResponseModel
}

AlibabaitemoperatedownshelfAPIResponse 商品下架 API返回值 alibaba.item.operate.downshelf

商品下架

type AlibabaitemoperatedownshelfAPIResponseModel added in v1.3.1

type AlibabaitemoperatedownshelfAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_item_operate_downshelf_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品下架是否成功
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaitemoperatedownshelfAPIResponseModel is 商品下架 成功返回结果

type AlibabaitemoperateupshelfAPIRequest added in v1.3.1

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

AlibabaitemoperateupshelfAPIRequest 商品上架 API请求 alibaba.item.operate.upshelf

商品上架

func NewAlibabaitemoperateupshelfRequest added in v1.3.1

func NewAlibabaitemoperateupshelfRequest() *AlibabaitemoperateupshelfAPIRequest

NewAlibabaitemoperateupshelfRequest 初始化AlibabaitemoperateupshelfAPIRequest对象

func (AlibabaitemoperateupshelfAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaitemoperateupshelfAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaitemoperateupshelfAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaitemoperateupshelfAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (AlibabaitemoperateupshelfAPIRequest) GetQuantity added in v1.3.1

GetQuantity Quantity Getter

func (AlibabaitemoperateupshelfAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaitemoperateupshelfAPIRequest) SetItemId added in v1.3.1

func (r *AlibabaitemoperateupshelfAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品ID

func (*AlibabaitemoperateupshelfAPIRequest) SetQuantity added in v1.3.1

func (r *AlibabaitemoperateupshelfAPIRequest) SetQuantity(_quantity int64) error

SetQuantity is Quantity Setter 商品库存

type AlibabaitemoperateupshelfAPIResponse added in v1.3.1

type AlibabaitemoperateupshelfAPIResponse struct {
	model.CommonResponse
	AlibabaitemoperateupshelfAPIResponseModel
}

AlibabaitemoperateupshelfAPIResponse 商品上架 API返回值 alibaba.item.operate.upshelf

商品上架

type AlibabaitemoperateupshelfAPIResponseModel added in v1.3.1

type AlibabaitemoperateupshelfAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_item_operate_upshelf_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品上架是否成功
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaitemoperateupshelfAPIResponseModel is 商品上架 成功返回结果

type AlibabaitempublishmarketgetAPIRequest added in v1.3.1

type AlibabaitempublishmarketgetAPIRequest struct {
	model.Params
}

AlibabaitempublishmarketgetAPIRequest 获取商家可发布商品的市场信息 API请求 alibaba.item.publish.market.get

获取商家可发布商品的市场信息

func NewAlibabaitempublishmarketgetRequest added in v1.3.1

func NewAlibabaitempublishmarketgetRequest() *AlibabaitempublishmarketgetAPIRequest

NewAlibabaitempublishmarketgetRequest 初始化AlibabaitempublishmarketgetAPIRequest对象

func (AlibabaitempublishmarketgetAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaitempublishmarketgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaitempublishmarketgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaitempublishmarketgetAPIRequest) GetRawParams added in v1.3.1

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

type AlibabaitempublishmarketgetAPIResponse added in v1.3.1

type AlibabaitempublishmarketgetAPIResponse struct {
	model.CommonResponse
	AlibabaitempublishmarketgetAPIResponseModel
}

AlibabaitempublishmarketgetAPIResponse 获取商家可发布商品的市场信息 API返回值 alibaba.item.publish.market.get

获取商家可发布商品的市场信息

type AlibabaitempublishmarketgetAPIResponseModel added in v1.3.1

type AlibabaitempublishmarketgetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_item_publish_market_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商家可发布的市场列表,多个以逗号(,)分隔
	Markets string `json:"markets,omitempty" xml:"markets,omitempty"`
}

AlibabaitempublishmarketgetAPIResponseModel is 获取商家可发布商品的市场信息 成功返回结果

type AlibabaitempublishpropsgetAPIRequest added in v1.3.1

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

AlibabaitempublishpropsgetAPIRequest 商品级联属性信息获取 API请求 alibaba.item.publish.props.get

新商品发布,商品级联属性信息获取

func NewAlibabaitempublishpropsgetRequest added in v1.3.1

func NewAlibabaitempublishpropsgetRequest() *AlibabaitempublishpropsgetAPIRequest

NewAlibabaitempublishpropsgetRequest 初始化AlibabaitempublishpropsgetAPIRequest对象

func (AlibabaitempublishpropsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaitempublishpropsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaitempublishpropsgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaitempublishpropsgetAPIRequest) GetBarcode added in v1.3.1

GetBarcode Barcode Getter

func (AlibabaitempublishpropsgetAPIRequest) GetCatId added in v1.3.1

GetCatId CatId Getter

func (AlibabaitempublishpropsgetAPIRequest) GetMarket added in v1.3.1

GetMarket Market Getter

func (AlibabaitempublishpropsgetAPIRequest) GetPropId added in v1.3.1

GetPropId PropId Getter

func (AlibabaitempublishpropsgetAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaitempublishpropsgetAPIRequest) GetSchema added in v1.3.1

GetSchema Schema Getter

func (*AlibabaitempublishpropsgetAPIRequest) SetBarcode added in v1.3.1

func (r *AlibabaitempublishpropsgetAPIRequest) SetBarcode(_barcode string) error

SetBarcode is Barcode Setter 商品条码

func (*AlibabaitempublishpropsgetAPIRequest) SetCatId added in v1.3.1

func (r *AlibabaitempublishpropsgetAPIRequest) SetCatId(_catId int64) error

SetCatId is CatId Setter 商品类目ID

func (*AlibabaitempublishpropsgetAPIRequest) SetMarket added in v1.3.1

func (r *AlibabaitempublishpropsgetAPIRequest) SetMarket(_market string) error

SetMarket is Market Setter 商品发布的市场。taobao:淘宝,tmall:天猫,litetao:淘宝特价版

func (*AlibabaitempublishpropsgetAPIRequest) SetPropId added in v1.3.1

func (r *AlibabaitempublishpropsgetAPIRequest) SetPropId(_propId int64) error

SetPropId is PropId Setter 属性ID

func (*AlibabaitempublishpropsgetAPIRequest) SetSchema added in v1.3.1

func (r *AlibabaitempublishpropsgetAPIRequest) SetSchema(_schema string) error

SetSchema is Schema Setter 类目属性渲染schema

type AlibabaitempublishpropsgetAPIResponse added in v1.3.1

type AlibabaitempublishpropsgetAPIResponse struct {
	model.CommonResponse
	AlibabaitempublishpropsgetAPIResponseModel
}

AlibabaitempublishpropsgetAPIResponse 商品级联属性信息获取 API返回值 alibaba.item.publish.props.get

新商品发布,商品级联属性信息获取

type AlibabaitempublishpropsgetAPIResponseModel added in v1.3.1

type AlibabaitempublishpropsgetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_item_publish_props_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品发布规则信息,XML格式.
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaitempublishpropsgetAPIResponseModel is 商品级联属性信息获取 成功返回结果

type AlibabaitempublishschemagetAPIRequest added in v1.3.1

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

AlibabaitempublishschemagetAPIRequest 获取商品发布规则信息 API请求 alibaba.item.publish.schema.get

新商品发布,获取商品发布规则信息

func NewAlibabaitempublishschemagetRequest added in v1.3.1

func NewAlibabaitempublishschemagetRequest() *AlibabaitempublishschemagetAPIRequest

NewAlibabaitempublishschemagetRequest 初始化AlibabaitempublishschemagetAPIRequest对象

func (AlibabaitempublishschemagetAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaitempublishschemagetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaitempublishschemagetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaitempublishschemagetAPIRequest) GetBarcode added in v1.3.1

GetBarcode Barcode Getter

func (AlibabaitempublishschemagetAPIRequest) GetBizType added in v1.3.1

GetBizType BizType Getter

func (AlibabaitempublishschemagetAPIRequest) GetCatId added in v1.3.1

GetCatId CatId Getter

func (AlibabaitempublishschemagetAPIRequest) GetImages added in v1.3.1

GetImages Images Getter

func (AlibabaitempublishschemagetAPIRequest) GetItemType added in v1.3.1

GetItemType ItemType Getter

func (AlibabaitempublishschemagetAPIRequest) GetMarket added in v1.3.1

GetMarket Market Getter

func (AlibabaitempublishschemagetAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaitempublishschemagetAPIRequest) GetSpuId added in v1.3.1

GetSpuId SpuId Getter

func (*AlibabaitempublishschemagetAPIRequest) SetBarcode added in v1.3.1

func (r *AlibabaitempublishschemagetAPIRequest) SetBarcode(_barcode string) error

SetBarcode is Barcode Setter 商品条码

func (*AlibabaitempublishschemagetAPIRequest) SetBizType added in v1.3.1

func (r *AlibabaitempublishschemagetAPIRequest) SetBizType(_bizType string) error

SetBizType is BizType Setter 业务扩展参数,需与平台约定好

func (*AlibabaitempublishschemagetAPIRequest) SetCatId added in v1.3.1

SetCatId is CatId Setter 商品类目ID

func (*AlibabaitempublishschemagetAPIRequest) SetImages added in v1.3.1

func (r *AlibabaitempublishschemagetAPIRequest) SetImages(_images []string) error

SetImages is Images Setter 商品主图链接,最多5张,传入完整URL

func (*AlibabaitempublishschemagetAPIRequest) SetItemType added in v1.3.1

func (r *AlibabaitempublishschemagetAPIRequest) SetItemType(_itemType string) error

SetItemType is ItemType Setter 商品类型。b:一口价 a:拍卖 默认值b一口价

func (*AlibabaitempublishschemagetAPIRequest) SetMarket added in v1.3.1

func (r *AlibabaitempublishschemagetAPIRequest) SetMarket(_market string) error

SetMarket is Market Setter 商品发布的市场。taobao:淘宝,tmall:天猫,litetao:淘宝特价版

func (*AlibabaitempublishschemagetAPIRequest) SetSpuId added in v1.3.1

SetSpuId is SpuId Setter 产品ID,天猫市场(market=tmall)时必填

type AlibabaitempublishschemagetAPIResponse added in v1.3.1

type AlibabaitempublishschemagetAPIResponse struct {
	model.CommonResponse
	AlibabaitempublishschemagetAPIResponseModel
}

AlibabaitempublishschemagetAPIResponse 获取商品发布规则信息 API返回值 alibaba.item.publish.schema.get

新商品发布,获取商品发布规则信息

type AlibabaitempublishschemagetAPIResponseModel added in v1.3.1

type AlibabaitempublishschemagetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_item_publish_schema_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品发布规则信息,XML格式.
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaitempublishschemagetAPIResponseModel is 获取商品发布规则信息 成功返回结果

type AlibabaitempublishsubmitAPIRequest added in v1.3.1

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

AlibabaitempublishsubmitAPIRequest 商品发布 API请求 alibaba.item.publish.submit

新商品发布,提交商品发布信息

func NewAlibabaitempublishsubmitRequest added in v1.3.1

func NewAlibabaitempublishsubmitRequest() *AlibabaitempublishsubmitAPIRequest

NewAlibabaitempublishsubmitRequest 初始化AlibabaitempublishsubmitAPIRequest对象

func (AlibabaitempublishsubmitAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaitempublishsubmitAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaitempublishsubmitAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaitempublishsubmitAPIRequest) GetBarcode added in v1.3.1

GetBarcode Barcode Getter

func (AlibabaitempublishsubmitAPIRequest) GetBizType added in v1.3.1

GetBizType BizType Getter

func (AlibabaitempublishsubmitAPIRequest) GetCatId added in v1.3.1

GetCatId CatId Getter

func (AlibabaitempublishsubmitAPIRequest) GetMarket added in v1.3.1

GetMarket Market Getter

func (AlibabaitempublishsubmitAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaitempublishsubmitAPIRequest) GetSchema added in v1.3.1

GetSchema Schema Getter

func (AlibabaitempublishsubmitAPIRequest) GetSpuId added in v1.3.1

GetSpuId SpuId Getter

func (*AlibabaitempublishsubmitAPIRequest) SetBarcode added in v1.3.1

func (r *AlibabaitempublishsubmitAPIRequest) SetBarcode(_barcode string) error

SetBarcode is Barcode Setter 商品条码

func (*AlibabaitempublishsubmitAPIRequest) SetBizType added in v1.3.1

func (r *AlibabaitempublishsubmitAPIRequest) SetBizType(_bizType string) error

SetBizType is BizType Setter 业务扩展参数,需与平台约定好

func (*AlibabaitempublishsubmitAPIRequest) SetCatId added in v1.3.1

func (r *AlibabaitempublishsubmitAPIRequest) SetCatId(_catId int64) error

SetCatId is CatId Setter 商品类目ID

func (*AlibabaitempublishsubmitAPIRequest) SetMarket added in v1.3.1

func (r *AlibabaitempublishsubmitAPIRequest) SetMarket(_market string) error

SetMarket is Market Setter 商品发布的市场。taobao:淘宝,tmall:天猫,litetao:淘宝特价版

func (*AlibabaitempublishsubmitAPIRequest) SetSchema added in v1.3.1

func (r *AlibabaitempublishsubmitAPIRequest) SetSchema(_schema string) error

SetSchema is Schema Setter 商品schema信息,通过alibaba.item.publish.props.get获取并补全后提交

func (*AlibabaitempublishsubmitAPIRequest) SetSpuId added in v1.3.1

func (r *AlibabaitempublishsubmitAPIRequest) SetSpuId(_spuId int64) error

SetSpuId is SpuId Setter 产品ID,天猫市场(market=tmall)时必填

type AlibabaitempublishsubmitAPIResponse added in v1.3.1

type AlibabaitempublishsubmitAPIResponse struct {
	model.CommonResponse
	AlibabaitempublishsubmitAPIResponseModel
}

AlibabaitempublishsubmitAPIResponse 商品发布 API返回值 alibaba.item.publish.submit

新商品发布,提交商品发布信息

type AlibabaitempublishsubmitAPIResponseModel added in v1.3.1

type AlibabaitempublishsubmitAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_item_publish_submit_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品创建时间
	CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"`
	// 商品所属市场
	Market string `json:"market,omitempty" xml:"market,omitempty"`
	// 商品ID
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
}

AlibabaitempublishsubmitAPIResponseModel is 商品发布 成功返回结果

type CuntaoItemSpecific

type CuntaoItemSpecific struct {
	// 村淘商品级佣金率
	KickBackRate string `json:"kick_back_rate,omitempty" xml:"kick_back_rate,omitempty"`
}

CuntaoItemSpecific 结构体

type DescModuleInfo

type DescModuleInfo struct {
	// 代表宝贝描述中规范化打标使用到的模块id列表,以逗号分隔。
	AnchorModuleIds string `json:"anchor_module_ids,omitempty" xml:"anchor_module_ids,omitempty"`
	// 类型代表规范化打标的类型:人工或自动化
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
}

DescModuleInfo 结构体

type FoodSecurity

type FoodSecurity struct {
	// 厂家联系方式
	Contact string `json:"contact,omitempty" xml:"contact,omitempty"`
	// 产品标准号
	DesignCode string `json:"design_code,omitempty" xml:"design_code,omitempty"`
	// 厂名
	Factory string `json:"factory,omitempty" xml:"factory,omitempty"`
	// 厂址
	FactorySite string `json:"factory_site,omitempty" xml:"factory_site,omitempty"`
	// 食品添加剂
	FoodAdditive string `json:"food_additive,omitempty" xml:"food_additive,omitempty"`
	// 健字号,保健品/膳食营养补充剂 这个类目下特有的信息,此类目下无需填写生产许可证编号(QS),如果填写了生产许可证编号(QS)将被忽略不保存;保存宝贝时,标题前会自动加上健字号产品名称一起作为宝贝标题;
	HealthProductNo string `json:"health_product_no,omitempty" xml:"health_product_no,omitempty"`
	// 配料表
	Mix string `json:"mix,omitempty" xml:"mix,omitempty"`
	// 保质期
	Period string `json:"period,omitempty" xml:"period,omitempty"`
	// 储藏方法
	PlanStorage string `json:"plan_storage,omitempty" xml:"plan_storage,omitempty"`
	// 生产许可证号
	PrdLicenseNo string `json:"prd_license_no,omitempty" xml:"prd_license_no,omitempty"`
	// 生产结束日期
	ProductDateEnd string `json:"product_date_end,omitempty" xml:"product_date_end,omitempty"`
	// 生产开始日期
	ProductDateStart string `json:"product_date_start,omitempty" xml:"product_date_start,omitempty"`
	// 进货结束日期,要在生产日期之后
	StockDateEnd string `json:"stock_date_end,omitempty" xml:"stock_date_end,omitempty"`
	// 进货开始日期,要在生产日期之后
	StockDateStart string `json:"stock_date_start,omitempty" xml:"stock_date_start,omitempty"`
	// 供货商
	Supplier string `json:"supplier,omitempty" xml:"supplier,omitempty"`
}

FoodSecurity 结构体

type HscodeAuditInfo

type HscodeAuditInfo struct {
	// hscode信息当前审核状态的具体说明
	Reason string `json:"reason,omitempty" xml:"reason,omitempty"`
	// 商品或SKU使用的HS海关代码
	Hscode string `json:"hscode,omitempty" xml:"hscode,omitempty"`
	// hscode信息当前审核状态,HISTORY_ITEM:历史已上架商品,REJECT:审核未通过,AUDITING:审核中,PASS:审核通过,ERROR:获取审核状态异常
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 商品ID
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// SKU的ID
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

HscodeAuditInfo 结构体

type IdsModule

type IdsModule struct {
	// 宝贝描述规范化模块名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 宝贝描述规范化模块id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 0为自动打标;<br/>1为人工打标;
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
}

IdsModule 结构体

type Item

type Item struct {
	// Sku列表。fields中只设置sku可以返回Sku结构体中所有字段,如果设置为sku.sku_id、sku.properties、sku.quantity等形式就只会返回相应的字段
	Skus []Sku `json:"skus,omitempty" xml:"skus>sku,omitempty"`
	// 商品图片列表(包括主图)。fields中只设置item_img可以返回ItemImg结构体中所有字段,如果设置为item_img.id、item_img.url、item_img.position等形式就只会返回相应的字段
	ItemImgs []ItemImg `json:"item_imgs,omitempty" xml:"item_imgs>item_img,omitempty"`
	// 商品属性图片列表。fields中只设置prop_img可以返回PropImg结构体中所有字段,如果设置为prop_img.id、prop_img.url、prop_img.properties、prop_img.position等形式就只会返回相应的字段
	PropImgs []PropImg `json:"prop_imgs,omitempty" xml:"prop_imgs>prop_img,omitempty"`
	// 商品视频列表(目前只支持单个视频关联)。fields中只设置video可以返回Video结构体中所有字段,如果设置为video.id、video.video_id、video.url等形式就只会返回相应的字段
	Videos []Video `json:"videos,omitempty" xml:"videos>video,omitempty"`
	// 3:4主图
	ItemRectangleImgs []ItemImg `json:"item_rectangle_imgs,omitempty" xml:"item_rectangle_imgs>item_img,omitempty"`
	// 商品修改时间(格式:yyyy-MM-dd HH:mm:ss)
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 商品id(注意:iid近期即将废弃,请用num_iid参数)
	Iid string `json:"iid,omitempty" xml:"iid,omitempty"`
	// Item的发布时间,目前仅供taobao.item.add和taobao.item.get可用
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 商品上传后的状态。onsale出售中,instock库中
	ApproveStatus string `json:"approve_status,omitempty" xml:"approve_status,omitempty"`
	// 代充商品类型。在代充商品的类目下,不传表示不标记商品类型(交易搜索中就不能通过标记搜到相关的交易了)。可选类型: no_mark(不做类型标记) time_card(点卡软件代充) fee_card(话费软件代充)
	AutoFill string `json:"auto_fill,omitempty" xml:"auto_fill,omitempty"`
	// 商品级别的条形码
	Barcode string `json:"barcode,omitempty" xml:"barcode,omitempty"`
	// 定制工具Id
	CustomMadeTypeId string `json:"custom_made_type_id,omitempty" xml:"custom_made_type_id,omitempty"`
	// 下架时间(格式:yyyy-MM-dd HH:mm:ss)
	DelistTime string `json:"delist_time,omitempty" xml:"delist_time,omitempty"`
	// 商品描述, 字数要大于5个字符,小于25000个字符
	Desc string `json:"desc,omitempty" xml:"desc,omitempty"`
	// 商品url
	DetailUrl string `json:"detail_url,omitempty" xml:"detail_url,omitempty"`
	// ems费用,格式:5.00;单位:元;精确到:分
	EmsFee string `json:"ems_fee,omitempty" xml:"ems_fee,omitempty"`
	// 快递费用,格式:5.00;单位:元;精确到:分
	ExpressFee string `json:"express_fee,omitempty" xml:"express_fee,omitempty"`
	// 宝贝特征值,只有在Top支持的特征值才能保存到宝贝上
	Features string `json:"features,omitempty" xml:"features,omitempty"`
	// 运费承担方式,seller(卖家承担),buyer(买家承担)
	FreightPayer string `json:"freight_payer,omitempty" xml:"freight_payer,omitempty"`
	// 全球购商品采购地信息(地区/国家),代表全球购商品的产地信息。
	GlobalStockCountry string `json:"global_stock_country,omitempty" xml:"global_stock_country,omitempty"`
	// 全球购商品采购地信息(库存类型),有两种库存类型:现货和代购;参数值为1时代表现货,值为2时代表代购
	GlobalStockType string `json:"global_stock_type,omitempty" xml:"global_stock_type,omitempty"`
	// 加价幅度。如果为0,代表系统代理幅度。在竞拍中,为了超越上一个出价,会员需要在当前出价上增加金额,这个金额就是加价幅度。卖家在发布宝贝的时候可以自定义加价幅度,也可以让系统自动代理加价。系统自动代理加价的加价幅度随着当前出价金额的增加而增加,我们建议会员使用系统自动代理加价,并请买家在出价前看清楚加价幅度的具体金额。另外需要注意是,此功能只适用于拍卖的商品。以下是系统自动代理加价幅度表:当前价(加价幅度 )1-40( 1 )、41-100( 2 )、101-200(5 )、201-500 (10)、501-1001(15)、001-2000(25)、2001-5000(50)、5001-10000(100)10001以上         200
	Increment string `json:"increment,omitempty" xml:"increment,omitempty"`
	// 用户自行输入的类目属性ID串。结构:"pid1,pid2,pid3",如:"20000"(表示品牌) 注:通常一个类目下用户可输入的关键属性不超过1个。
	InputPids string `json:"input_pids,omitempty" xml:"input_pids,omitempty"`
	// 用户自行输入的子属性名和属性值,结构:"父属性值;一级子属性名;一级子属性值;二级子属性名;自定义输入值,....",如:“耐克;耐克系列;科比系列;科比系列;2K5”,input_str需要与input_pids一一对应,注:通常一个类目下用户可输入的关键属性不超过1个。所有属性别名加起来不能超过 3999字节。
	InputStr string `json:"input_str,omitempty" xml:"input_str,omitempty"`
	// 表示商品的体积,用于按体积计费的运费模板。该值的单位为立方米(m3)。该值支持两种格式的设置:格式1:bulk:3,单位为立方米(m3),表示直接设置为商品的体积。格式2:weight:10;breadth:10;height:10,单位为米(m)
	ItemSize string `json:"item_size,omitempty" xml:"item_size,omitempty"`
	// 商品的重量,用于按重量计费的运费模板。注意:单位为kg
	ItemWeight string `json:"item_weight,omitempty" xml:"item_weight,omitempty"`
	// 上架时间(格式:yyyy-MM-dd HH:mm:ss)
	ListTime string `json:"list_time,omitempty" xml:"list_time,omitempty"`
	// 是否为新消保法中的7天无理由退货
	Newprepay string `json:"newprepay,omitempty" xml:"newprepay,omitempty"`
	// 卖家昵称
	Nick string `json:"nick,omitempty" xml:"nick,omitempty"`
	// 商家外部编码(可与商家外部系统对接)。需要授权才能获取。
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// 商品主图片地址
	PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"`
	// 平邮费用,格式:5.00;单位:元;精确到:分
	PostFee string `json:"post_fee,omitempty" xml:"post_fee,omitempty"`
	// 商品价格,格式:5.00;单位:元;精确到:分
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 消保类型,多个类型以,分割。可取以下值:2:假一赔三;4:7天无理由退换货;taobao.items.search和taobao.items.vip.search专用
	PromotedService string `json:"promoted_service,omitempty" xml:"promoted_service,omitempty"`
	// 属性值别名,比如颜色的自定义名称
	PropertyAlias string `json:"property_alias,omitempty" xml:"property_alias,omitempty"`
	// 商品属性 格式:pid:vid;pid:vid
	Props string `json:"props,omitempty" xml:"props,omitempty"`
	// 商品属性名称。标识着props内容里面的pid和vid所对应的名称。格式为:pid1:vid1:pid_name1:vid_name1;pid2:vid2:pid_name2:vid_name2……(<strong>注:</strong><font color="red">属性名称中的冒号":"被转换为:"#cln#";  分号";"被转换为:"#scln#"</font>)
	PropsName string `json:"props_name,omitempty" xml:"props_name,omitempty"`
	// 秒杀商品类型。打上秒杀标记的商品,用户只能下架并不能再上架,其他任何编辑或删除操作都不能进行。如果用户想取消秒杀标记,需要联系小二进行操作。如果秒杀结束需要自由编辑请联系活动负责人(小二)去掉秒杀标记。可选类型web_only(只能通过web网络秒杀)wap_only(只能通过wap网络秒杀)web_and_wap(既能通过web秒杀也能通过wap秒杀)
	SecondKill string `json:"second_kill,omitempty" xml:"second_kill,omitempty"`
	// 商品卖点信息,天猫商家使用字段,最长150个字符。
	SellPoint string `json:"sell_point,omitempty" xml:"sell_point,omitempty"`
	// 商品所属的店铺内卖家自定义类目列表
	SellerCids string `json:"seller_cids,omitempty" xml:"seller_cids,omitempty"`
	// 商品新旧程度(全新:new,闲置:unused,二手:second)
	StuffStatus string `json:"stuff_status,omitempty" xml:"stuff_status,omitempty"`
	// 页面模板id
	TemplateId string `json:"template_id,omitempty" xml:"template_id,omitempty"`
	// 商品标题,不能超过60字节
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 商品类型(fixed:一口价;auction:拍卖)注:取消团购
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 不带html标签的desc文本信息,该字段只在taobao.item.get接口中返回
	WapDesc string `json:"wap_desc,omitempty" xml:"wap_desc,omitempty"`
	// 适合wap应用的商品详情url ,该字段只在taobao.item.get接口中返回
	WapDetailUrl string `json:"wap_detail_url,omitempty" xml:"wap_detail_url,omitempty"`
	// 无线的宝贝描述
	WirelessDesc string `json:"wireless_desc,omitempty" xml:"wireless_desc,omitempty"`
	// 商品描述模块化,模块列表,由List转化成jsonArray存入,后端逻辑验证通过,拼装成模块内容+锚点导航后存入desc中。数据结构具体参见Item_Desc_Module
	DescModules string `json:"desc_modules,omitempty" xml:"desc_modules,omitempty"`
	// 门店大屏图
	LargeScreenImageUrl string `json:"large_screen_image_url,omitempty" xml:"large_screen_image_url,omitempty"`
	// 属性值的备注.格式:pid:vid:备注信息1;pid2:vid2:备注信息2;
	CpvMemo string `json:"cpv_memo,omitempty" xml:"cpv_memo,omitempty"`
	// 商品首次上架时间
	FirstStartsTime string `json:"first_starts_time,omitempty" xml:"first_starts_time,omitempty"`
	// 发货时间信息
	DeliveryTime string `json:"delivery_time,omitempty" xml:"delivery_time,omitempty"`
	// 商品资质的信息,用URLEncoder做过转换,使用时,需要URLDecoder转换回来,默认字符集为:UTF-8
	Qualification string `json:"qualification,omitempty" xml:"qualification,omitempty"`
	// 全球购商品发货地,发货地现在有两种类型:“国内”和“海外及港澳台”,参数值为1时代表“国内”,值为2时代表“海外及港澳台”
	GlobalStockDeliveryPlace string `json:"global_stock_delivery_place,omitempty" xml:"global_stock_delivery_place,omitempty"`
	// 商品数字id
	NumIid int64 `json:"num_iid,omitempty" xml:"num_iid,omitempty"`
	// 商品数量
	Num int64 `json:"num,omitempty" xml:"num,omitempty"`
	// 售后服务ID,该字段仅在taobao.item.get接口中返回
	AfterSaleId int64 `json:"after_sale_id,omitempty" xml:"after_sale_id,omitempty"`
	// 商品的积分返点比例。如:5,表示:返点比例0.5%
	AuctionPoint int64 `json:"auction_point,omitempty" xml:"auction_point,omitempty"`
	// 商品所属的叶子类目 id
	Cid int64 `json:"cid,omitempty" xml:"cid,omitempty"`
	// 货到付款运费模板ID
	CodPostageId int64 `json:"cod_postage_id,omitempty" xml:"cod_postage_id,omitempty"`
	// 宝贝描述规范化模块锚点信息
	DescModuleInfo *DescModuleInfo `json:"desc_module_info,omitempty" xml:"desc_module_info,omitempty"`
	// 食品安全信息,包括:生产许可证编号、产品标准号、厂名、厂址等
	FoodSecurity *FoodSecurity `json:"food_security,omitempty" xml:"food_security,omitempty"`
	// 用户内店宝贝装修模板id
	InnerShopAuctionTemplateId int64 `json:"inner_shop_auction_template_id,omitempty" xml:"inner_shop_auction_template_id,omitempty"`
	// 普通商品:0;代销商品:1;经销商品:2;供销产品:3
	IsFenxiao int64 `json:"is_fenxiao,omitempty" xml:"is_fenxiao,omitempty"`
	// 本地生活电子交易凭证业务,目前此字段只涉及到的信息为有效期:如果有效期为起止日期类型,此值为2012-08-06,2012-08-16如果有效期为【购买成功日 至】类型则格式为2012-08-16如果有效期为天数类型则格式为3
	LocalityLife *LocalityLife `json:"locality_life,omitempty" xml:"locality_life,omitempty"`
	// 商品所在地
	Location *Location `json:"location,omitempty" xml:"location,omitempty"`
	// 宝贝主图视频的数据信息,包括:视频ID,视频缩略图URL,视频时长,视频状态等信息。
	MpicVideo *MpicVideo `json:"mpic_video,omitempty" xml:"mpic_video,omitempty"`
	// 用户外店装修模板id
	OuterShopAuctionTemplateId int64 `json:"outer_shop_auction_template_id,omitempty" xml:"outer_shop_auction_template_id,omitempty"`
	// 用于保存拍卖有关的信息
	PaimaiInfo *PaimaiInfo `json:"paimai_info,omitempty" xml:"paimai_info,omitempty"`
	// 周期销售库存
	PeriodSoldQuantity int64 `json:"period_sold_quantity,omitempty" xml:"period_sold_quantity,omitempty"`
	// 宝贝所属的运费模板ID,如果没有返回则说明没有使用运费模板
	PostageId int64 `json:"postage_id,omitempty" xml:"postage_id,omitempty"`
	// 宝贝所属产品的id(可能为空). 该字段可以通过taobao.products.search 得到
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// 商品所属卖家的信用等级数,1表示1心,2表示2心……,只有调用商品搜索:taobao.items.get和taobao.items.search的时候才能返回
	Score int64 `json:"score,omitempty" xml:"score,omitempty"`
	// 商品销量
	SoldQuantity int64 `json:"sold_quantity,omitempty" xml:"sold_quantity,omitempty"`
	// 商品是否支持拍下减库存:1支持;2取消支持(付款减库存);0(默认)不更改 集市卖家默认拍下减库存; 商城卖家默认付款减库存
	SubStock int64 `json:"sub_stock,omitempty" xml:"sub_stock,omitempty"`
	// 有效期,7或者14(默认是7天)
	ValidThru int64 `json:"valid_thru,omitempty" xml:"valid_thru,omitempty"`
	// 该字段废弃,请勿使用。
	VideoId int64 `json:"video_id,omitempty" xml:"video_id,omitempty"`
	// 对应搜索商品列表页的最近成交量,只有调用商品搜索:taobao.items.get和taobao.items.search的时候才能返回
	Volume int64 `json:"volume,omitempty" xml:"volume,omitempty"`
	// 预扣库存,即付款减库存的商品现在有多少处于未付款状态的订单
	WithHoldQuantity int64 `json:"with_hold_quantity,omitempty" xml:"with_hold_quantity,omitempty"`
	// 村淘特有商品级数据结构
	CuntaoItemSpecific *CuntaoItemSpecific `json:"cuntao_item_specific,omitempty" xml:"cuntao_item_specific,omitempty"`
	// 自动重发,true/false
	AutoRepost bool `json:"auto_repost,omitempty" xml:"auto_repost,omitempty"`
	// 支持会员打折,true/false
	HasDiscount bool `json:"has_discount,omitempty" xml:"has_discount,omitempty"`
	// 是否有发票,true/false
	HasInvoice bool `json:"has_invoice,omitempty" xml:"has_invoice,omitempty"`
	// 橱窗推荐,true/false
	HasShowcase bool `json:"has_showcase,omitempty" xml:"has_showcase,omitempty"`
	// 是否有保修,true/false
	HasWarranty bool `json:"has_warranty,omitempty" xml:"has_warranty,omitempty"`
	// 是否是3D淘宝的商品
	Is3d bool `json:"is_3D,omitempty" xml:"is_3D,omitempty"`
	// 是否在外部网店显示
	IsEx bool `json:"is_ex,omitempty" xml:"is_ex,omitempty"`
	// 是否24小时闪电发货
	IsLightningConsignment bool `json:"is_lightning_consignment,omitempty" xml:"is_lightning_consignment,omitempty"`
	// 商品是否为先行赔付taobao.items.search和taobao.items.vip.search专用
	IsPrepay bool `json:"is_prepay,omitempty" xml:"is_prepay,omitempty"`
	// 是否在淘宝显示
	IsTaobao bool `json:"is_taobao,omitempty" xml:"is_taobao,omitempty"`
	// 是否定时上架商品
	IsTiming bool `json:"is_timing,omitempty" xml:"is_timing,omitempty"`
	// 虚拟商品的状态字段
	IsVirtual bool `json:"is_virtual,omitempty" xml:"is_virtual,omitempty"`
	// 标示商品是否为新品。值含义:true-是,false-否。
	IsXinpin bool `json:"is_xinpin,omitempty" xml:"is_xinpin,omitempty"`
	// 是否淘1站商品
	OneStation bool `json:"one_station,omitempty" xml:"one_station,omitempty"`
	// 是否承诺退换货服务!
	SellPromise bool `json:"sell_promise,omitempty" xml:"sell_promise,omitempty"`
	// 商品是否违规,违规:true , 不违规:false
	Violation bool `json:"violation,omitempty" xml:"violation,omitempty"`
	// 商品所属的商家的旺旺在线状况,taobao.items.search和taobao.items.vip.search专用
	WwStatus bool `json:"ww_status,omitempty" xml:"ww_status,omitempty"`
	// true:商品是区域限售商品;false:商品不是区域限售商品。
	IsAreaSale bool `json:"is_area_sale,omitempty" xml:"is_area_sale,omitempty"`
	// 是否为达尔文挂接成功了的商品
	IsCspu bool `json:"is_cspu,omitempty" xml:"is_cspu,omitempty"`
	// 全球购商品卖家包税承诺,当值为true时,代表卖家承诺包税。
	GlobalStockTaxFreePromise bool `json:"global_stock_tax_free_promise,omitempty" xml:"global_stock_tax_free_promise,omitempty"`
}

Item 结构体

type ItemDescModule

type ItemDescModule struct {
	// 一个List<String>的Json串,里面是模块引导提示,不超过3条(isv提交时可忽略不传)
	Intros string `json:"intros,omitempty" xml:"intros,omitempty"`
	// 淘宝图片空间的地址链接,示例模板,最多不超过三个(isv提交时可忽略不传)
	TplUrls string `json:"tpl_urls,omitempty" xml:"tpl_urls,omitempty"`
	// 模块名称
	ModuleName string `json:"module_name,omitempty" xml:"module_name,omitempty"`
	// cat_mod:表示是运营设置的类目维度模块,usr_mod表示的是商家自定义模块。
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 描述具体内容
	Content string `json:"content,omitempty" xml:"content,omitempty"`
	// 模块id ,(注意:用户自定义模块不用填此项。)
	ModuleId int64 `json:"module_id,omitempty" xml:"module_id,omitempty"`
	// 是否必填 (isv提交时可忽略不传)
	Required bool `json:"required,omitempty" xml:"required,omitempty"`
}

ItemDescModule 结构体

type ItemImg

type ItemImg struct {
	// 图片创建时间 时间格式:yyyy-MM-dd HH:mm:ss
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 图片链接地址
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 商品图片的id,和商品相对应(主图id默认为0)
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 图片放在第几张(多图时可设置)
	Position int64 `json:"position,omitempty" xml:"position,omitempty"`
}

ItemImg 结构体

type ItemPromotionRule

type ItemPromotionRule struct {
	// 规则名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 规则描叙信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 规则生效开始时间
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 规则生效结束时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 规则类型,常见有SKU锁定规则,下架锁定规则,库存减少锁定规则,库存禁止修改规则,一口价禁止修改规则
	Type string `json:"type,omitempty" xml:"type,omitempty"`
}

ItemPromotionRule 结构体

type ItemTemplate

type ItemTemplate struct {
	// 宝贝详情模板的名称
	TemplateName string `json:"template_name,omitempty" xml:"template_name,omitempty"`
	// 宝贝模板的id
	TemplateId int64 `json:"template_id,omitempty" xml:"template_id,omitempty"`
	// 用于区分宝贝模板属于内店和外店
	ShopType int64 `json:"shop_type,omitempty" xml:"shop_type,omitempty"`
}

ItemTemplate 结构体

type LocalityLife

type LocalityLife struct {
	// 表示是否使用邮寄 0: 代表不使用邮寄; 1:代表使用邮寄;如果不设置这个值,代表不使用邮寄
	ChooseLogis string `json:"choose_logis,omitempty" xml:"choose_logis,omitempty"`
	// 电子凭证业务属性
	Eticket string `json:"eticket,omitempty" xml:"eticket,omitempty"`
	// 电子交易凭证有效期,有三种格式:如果有效期为起止日期类型,此值为2012-08-06,2012-08-16 如果有效期为【购买成功日 至】类型则格式为2012-08-16如果有效期为天数类型则格式为15
	Expirydate string `json:"expirydate,omitempty" xml:"expirydate,omitempty"`
	// 格式为 码商id:nick
	Merchant string `json:"merchant,omitempty" xml:"merchant,omitempty"`
	// 网点ID,在参数empty_fields里设置locality_life.network_id可删除网点ID
	NetworkId string `json:"network_id,omitempty" xml:"network_id,omitempty"`
	// 退款码费承担方。发布电子凭证宝贝的时候会增加“退款码费承担方”配置项,可选填:(1)s(卖家承担) (2)b(买家承担)
	Refundmafee string `json:"refundmafee,omitempty" xml:"refundmafee,omitempty"`
	// 核销打款:1代表核销打款,0代表非核销打款;在参数empty_fields里设置locality_life.verification可删除核销打款
	Verification string `json:"verification,omitempty" xml:"verification,omitempty"`
	// 电子凭证售中自动退款比例
	OnsaleAutoRefundRatio int64 `json:"onsale_auto_refund_ratio,omitempty" xml:"onsale_auto_refund_ratio,omitempty"`
	// 退款比例,百分比%前的数字,1-100的正整数值;在参数empty_fields里设置locality_life.refund_ratio可删除退款比例
	RefundRatio int64 `json:"refund_ratio,omitempty" xml:"refund_ratio,omitempty"`
}

LocalityLife 结构体

type Location

type Location struct {
	// 所在城市(中文名称)
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 所在省份(中文名称)
	State string `json:"state,omitempty" xml:"state,omitempty"`
}

Location 结构体

type ModularDescInfo

type ModularDescInfo struct {
	// 运营定义的该商品所属类目的类目级别模块信息列表,列表顺序即为模块顺序。
	ItmDscModules []ItemDescModule `json:"itm_dsc_modules,omitempty" xml:"itm_dsc_modules>item_desc_module,omitempty"`
	// 旧描述与新描述共存时间(切换时间)。
	DeadLine string `json:"dead_line,omitempty" xml:"dead_line,omitempty"`
	// 用户自定义模块数量最大值限制。类目级别模块+用户级别模块必须小于<20
	UsrDefMaxNum int64 `json:"usr_def_max_num,omitempty" xml:"usr_def_max_num,omitempty"`
	// 默认值为false,如果此字段为true,则卖家上传的模块化的描述信息可以自定义排序。
	UserOrder bool `json:"user_order,omitempty" xml:"user_order,omitempty"`
}

ModularDescInfo 结构体

type MpicVideo

type MpicVideo struct {
	// 主图视频的缩略图URL
	VideoPic string `json:"video_pic,omitempty" xml:"video_pic,omitempty"`
	// 主图视频记录所关联的商品的数字id
	NumIid int64 `json:"num_iid,omitempty" xml:"num_iid,omitempty"`
	// 主图视频的时长,单位:秒
	VideoDuaration int64 `json:"video_duaration,omitempty" xml:"video_duaration,omitempty"`
	// 主图视频的在淘视频中的ID
	VideoId int64 `json:"video_id,omitempty" xml:"video_id,omitempty"`
	// 主图视频的状态
	VideoStatus int64 `json:"video_status,omitempty" xml:"video_status,omitempty"`
}

MpicVideo 结构体

type PaimaiInfo

type PaimaiInfo struct {
	// 增价幅度或降价幅度
	Increment string `json:"increment,omitempty" xml:"increment,omitempty"`
	// 降价拍的保留价
	Reserve string `json:"reserve,omitempty" xml:"reserve,omitempty"`
	// 拍品开始时间
	Start string `json:"start,omitempty" xml:"start,omitempty"`
	// 拍品结束时间
	End string `json:"end,omitempty" xml:"end,omitempty"`
	// 用户自定义的固定保证金。如果用户未传则说明用户选择使用淘宝默认的保证金模式10%,此时deposit等于0.
	Deposit int64 `json:"deposit,omitempty" xml:"deposit,omitempty"`
	// 降价拍中的降价间隔
	Interval int64 `json:"interval,omitempty" xml:"interval,omitempty"`
	// 拍卖类型,目前包括增加拍,荷兰拍和降价拍。
	Mode int64 `json:"mode,omitempty" xml:"mode,omitempty"`
	// 对于拍卖来说可以设定有效期,这里是有效期的小时数。
	ValidHour int64 `json:"valid_hour,omitempty" xml:"valid_hour,omitempty"`
	// 对于拍卖来说可以设定有效期,这里是有效期的分钟数。
	ValidMinute int64 `json:"valid_minute,omitempty" xml:"valid_minute,omitempty"`
	// 重复上拍总次数,如果不是重复上拍的,则为0
	Repeat int64 `json:"repeat,omitempty" xml:"repeat,omitempty"`
	// 拍品起拍价
	StartPrice int64 `json:"start_price,omitempty" xml:"start_price,omitempty"`
	// 拍品封顶价(分)
	CeilPrice int64 `json:"ceil_price,omitempty" xml:"ceil_price,omitempty"`
	// 增加拍延迟周期(分钟)
	DelayInMinute int64 `json:"delay_in_minute,omitempty" xml:"delay_in_minute,omitempty"`
	// 拍卖周期(秒钟),非重复上架为(开始时间-结束时间),当为重复上拍时为一次重复上架的时间
	Period int64 `json:"period,omitempty" xml:"period,omitempty"`
	// 降价时间周期(分钟)
	Frequency int64 `json:"frequency,omitempty" xml:"frequency,omitempty"`
}

PaimaiInfo 结构体

type PropImg

type PropImg struct {
	// 图片链接地址
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 图片创建时间 时间格式:yyyy-MM-dd HH:mm:ss
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 图片所对应的属性组合的字符串
	Properties string `json:"properties,omitempty" xml:"properties,omitempty"`
	// 属性图片的id,和商品相对应
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 图片放在第几张(多图时可设置)
	Position int64 `json:"position,omitempty" xml:"position,omitempty"`
}

PropImg 结构体

type Sku

type Sku struct {
	// sku最后修改日期 时间格式:yyyy-MM-dd HH:mm:ss
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 商品级别的条形码
	Barcode string `json:"barcode,omitempty" xml:"barcode,omitempty"`
	// sku创建日期 时间格式:yyyy-MM-dd HH:mm:ss
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 商家设置的外部id。天猫和集市的卖家,需要登录才能获取到自己的商家编码,不能获取到他人的商家编码。
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// 属于这个sku的商品的价格 取值范围:0-100000000;精确到2位小数;单位:元。如:200.07,表示:200元7分。
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// sku的销售属性组合字符串(颜色,大小,等等,可通过类目API获取某类目下的销售属性),格式是p1:v1;p2:v2
	Properties string `json:"properties,omitempty" xml:"properties,omitempty"`
	// sku所对应的销售属性的中文名字串,格式如:pid1:vid1:pid_name1:vid_name1;pid2:vid2:pid_name2:vid_name2……
	PropertiesName string `json:"properties_name,omitempty" xml:"properties_name,omitempty"`
	// sku所属商品id(注意:iid近期即将废弃,请用num_iid参数)
	Iid string `json:"iid,omitempty" xml:"iid,omitempty"`
	// sku状态。 normal:正常 ;delete:删除
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// sku的id
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 属于这个sku的商品的数量,
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// sku所属商品数字id
	NumIid int64 `json:"num_iid,omitempty" xml:"num_iid,omitempty"`
	// 表示SKu上的产品规格信息
	SkuSpecId int64 `json:"sku_spec_id,omitempty" xml:"sku_spec_id,omitempty"`
	// 商品在付款减库存的状态下,该sku上未付款的订单数量
	WithHoldQuantity int64 `json:"with_hold_quantity,omitempty" xml:"with_hold_quantity,omitempty"`
	// skuFeature
	SkuFeature *SkuFeature `json:"sku_feature,omitempty" xml:"sku_feature,omitempty"`
}

Sku 结构体

type SkuFeature

type SkuFeature struct {
	// colorHotNew
	ColorHotNew string `json:"color_hot_new,omitempty" xml:"color_hot_new,omitempty"`
	// colorMaterialImg
	ColorMaterialImg string `json:"color_material_img,omitempty" xml:"color_material_img,omitempty"`
	// colorValue
	ColorValue string `json:"color_value,omitempty" xml:"color_value,omitempty"`
	// colorMaterial
	ColorMaterial string `json:"color_material,omitempty" xml:"color_material,omitempty"`
	// colorSeries
	ColorSeries string `json:"color_series,omitempty" xml:"color_series,omitempty"`
}

SkuFeature 结构体

type TaobaoitemanchorgetAPIRequest added in v1.3.1

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

TaobaoitemanchorgetAPIRequest 获取可用宝贝描述规范化模块 API请求 taobao.item.anchor.get

根据类目id和宝贝描述规范化打标类型获取该类目可用的宝贝描述模块中的锚点

func NewTaobaoitemanchorgetRequest added in v1.3.1

func NewTaobaoitemanchorgetRequest() *TaobaoitemanchorgetAPIRequest

NewTaobaoitemanchorgetRequest 初始化TaobaoitemanchorgetAPIRequest对象

func (TaobaoitemanchorgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemanchorgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemanchorgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemanchorgetAPIRequest) GetCatId added in v1.3.1

func (r TaobaoitemanchorgetAPIRequest) GetCatId() int64

GetCatId CatId Getter

func (TaobaoitemanchorgetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoitemanchorgetAPIRequest) GetRawParams() model.Params

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

func (TaobaoitemanchorgetAPIRequest) GetType added in v1.3.1

GetType Type Getter

func (*TaobaoitemanchorgetAPIRequest) SetCatId added in v1.3.1

func (r *TaobaoitemanchorgetAPIRequest) SetCatId(_catId int64) error

SetCatId is CatId Setter 对应类目编号

func (*TaobaoitemanchorgetAPIRequest) SetType added in v1.3.1

func (r *TaobaoitemanchorgetAPIRequest) SetType(_type int64) error

SetType is Type Setter 宝贝模板类型是人工打标还是自动打标:人工打标为1,自动打标为0.人工和自动打标为-1.(最小值:-1,最大值:1)

type TaobaoitemanchorgetAPIResponse added in v1.3.1

type TaobaoitemanchorgetAPIResponse struct {
	model.CommonResponse
	TaobaoitemanchorgetAPIResponseModel
}

TaobaoitemanchorgetAPIResponse 获取可用宝贝描述规范化模块 API返回值 taobao.item.anchor.get

根据类目id和宝贝描述规范化打标类型获取该类目可用的宝贝描述模块中的锚点

type TaobaoitemanchorgetAPIResponseModel added in v1.3.1

type TaobaoitemanchorgetAPIResponseModel struct {
	XMLName xml.Name `xml:"item_anchor_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 宝贝描述规范化可使用打标模块的锚点信息
	AnchorModules []IdsModule `json:"anchor_modules,omitempty" xml:"anchor_modules>ids_module,omitempty"`
	// 返回的宝贝描述模板结果数目
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaoitemanchorgetAPIResponseModel is 获取可用宝贝描述规范化模块 成功返回结果

type TaobaoitembarcodeupdateAPIRequest added in v1.3.1

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

TaobaoitembarcodeupdateAPIRequest 更新商品条形码信息 API请求 taobao.item.barcode.update

通过该接口,将商品以及SKU上得条形码信息补全

func NewTaobaoitembarcodeupdateRequest added in v1.3.1

func NewTaobaoitembarcodeupdateRequest() *TaobaoitembarcodeupdateAPIRequest

NewTaobaoitembarcodeupdateRequest 初始化TaobaoitembarcodeupdateAPIRequest对象

func (TaobaoitembarcodeupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitembarcodeupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitembarcodeupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitembarcodeupdateAPIRequest) GetIsforce added in v1.3.1

func (r TaobaoitembarcodeupdateAPIRequest) GetIsforce() bool

GetIsforce Isforce Getter

func (TaobaoitembarcodeupdateAPIRequest) GetItemBarcode added in v1.3.1

func (r TaobaoitembarcodeupdateAPIRequest) GetItemBarcode() string

GetItemBarcode ItemBarcode Getter

func (TaobaoitembarcodeupdateAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (TaobaoitembarcodeupdateAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoitembarcodeupdateAPIRequest) GetSkuBarcodes added in v1.3.1

func (r TaobaoitembarcodeupdateAPIRequest) GetSkuBarcodes() string

GetSkuBarcodes SkuBarcodes Getter

func (TaobaoitembarcodeupdateAPIRequest) GetSkuIds added in v1.3.1

GetSkuIds SkuIds Getter

func (TaobaoitembarcodeupdateAPIRequest) GetSrc added in v1.3.1

GetSrc Src Getter

func (*TaobaoitembarcodeupdateAPIRequest) SetIsforce added in v1.3.1

func (r *TaobaoitembarcodeupdateAPIRequest) SetIsforce(_isforce bool) error

SetIsforce is Isforce Setter 是否强制保存商品条码。true:强制保存false :需要执行条码库校验

func (*TaobaoitembarcodeupdateAPIRequest) SetItemBarcode added in v1.3.1

func (r *TaobaoitembarcodeupdateAPIRequest) SetItemBarcode(_itemBarcode string) error

SetItemBarcode is ItemBarcode Setter 商品条形码,如果不用更新,可选择不填

func (*TaobaoitembarcodeupdateAPIRequest) SetItemId added in v1.3.1

func (r *TaobaoitembarcodeupdateAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 被更新商品的ID

func (*TaobaoitembarcodeupdateAPIRequest) SetSkuBarcodes added in v1.3.1

func (r *TaobaoitembarcodeupdateAPIRequest) SetSkuBarcodes(_skuBarcodes string) error

SetSkuBarcodes is SkuBarcodes Setter SKU维度的条形码,和sku_ids字段一一对应,中间以英文逗号分隔

func (*TaobaoitembarcodeupdateAPIRequest) SetSkuIds added in v1.3.1

func (r *TaobaoitembarcodeupdateAPIRequest) SetSkuIds(_skuIds string) error

SetSkuIds is SkuIds Setter 被更新SKU的ID列表,中间以英文逗号进行分隔。如果没有SKU或者不需要更新SKU的条形码,不需要设置

func (*TaobaoitembarcodeupdateAPIRequest) SetSrc added in v1.3.1

SetSrc is Src Setter 访问来源,这字段提供给千牛扫码枪用,其他调用方,不需要填写

type TaobaoitembarcodeupdateAPIResponse added in v1.3.1

type TaobaoitembarcodeupdateAPIResponse struct {
	model.CommonResponse
	TaobaoitembarcodeupdateAPIResponseModel
}

TaobaoitembarcodeupdateAPIResponse 更新商品条形码信息 API返回值 taobao.item.barcode.update

通过该接口,将商品以及SKU上得条形码信息补全

type TaobaoitembarcodeupdateAPIResponseModel added in v1.3.1

type TaobaoitembarcodeupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"item_barcode_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品结构里的num_iid,modified
	Item *Item `json:"item,omitempty" xml:"item,omitempty"`
}

TaobaoitembarcodeupdateAPIResponseModel is 更新商品条形码信息 成功返回结果

type TaobaoitemdeleteAPIRequest added in v1.3.1

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

TaobaoitemdeleteAPIRequest 删除单条商品 API请求 taobao.item.delete

删除单条商品

func NewTaobaoitemdeleteRequest added in v1.3.1

func NewTaobaoitemdeleteRequest() *TaobaoitemdeleteAPIRequest

NewTaobaoitemdeleteRequest 初始化TaobaoitemdeleteAPIRequest对象

func (TaobaoitemdeleteAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemdeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemdeleteAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemdeleteAPIRequest) GetNumIid added in v1.3.1

func (r TaobaoitemdeleteAPIRequest) GetNumIid() int64

GetNumIid NumIid Getter

func (TaobaoitemdeleteAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoitemdeleteAPIRequest) GetRawParams() model.Params

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

func (*TaobaoitemdeleteAPIRequest) SetNumIid added in v1.3.1

func (r *TaobaoitemdeleteAPIRequest) SetNumIid(_numIid int64) error

SetNumIid is NumIid Setter 商品数字ID,该参数必须

type TaobaoitemdeleteAPIResponse added in v1.3.1

type TaobaoitemdeleteAPIResponse struct {
	model.CommonResponse
	TaobaoitemdeleteAPIResponseModel
}

TaobaoitemdeleteAPIResponse 删除单条商品 API返回值 taobao.item.delete

删除单条商品

type TaobaoitemdeleteAPIResponseModel added in v1.3.1

type TaobaoitemdeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"item_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 被删除商品的相关信息
	Item *Item `json:"item,omitempty" xml:"item,omitempty"`
}

TaobaoitemdeleteAPIResponseModel is 删除单条商品 成功返回结果

type TaobaoitemimgdeleteAPIRequest added in v1.3.1

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

TaobaoitemimgdeleteAPIRequest 删除商品图片 API请求 taobao.item.img.delete

删除商品图片

func NewTaobaoitemimgdeleteRequest added in v1.3.1

func NewTaobaoitemimgdeleteRequest() *TaobaoitemimgdeleteAPIRequest

NewTaobaoitemimgdeleteRequest 初始化TaobaoitemimgdeleteAPIRequest对象

func (TaobaoitemimgdeleteAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemimgdeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemimgdeleteAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemimgdeleteAPIRequest) GetId added in v1.3.1

GetId Id Getter

func (TaobaoitemimgdeleteAPIRequest) GetIsSixthPic added in v1.3.1

func (r TaobaoitemimgdeleteAPIRequest) GetIsSixthPic() bool

GetIsSixthPic IsSixthPic Getter

func (TaobaoitemimgdeleteAPIRequest) GetNumIid added in v1.3.1

func (r TaobaoitemimgdeleteAPIRequest) GetNumIid() int64

GetNumIid NumIid Getter

func (TaobaoitemimgdeleteAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoitemimgdeleteAPIRequest) GetRawParams() model.Params

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

func (*TaobaoitemimgdeleteAPIRequest) SetId added in v1.3.1

SetId is Id Setter 商品图片ID;如果是竖图,请将id的值设置为1

func (*TaobaoitemimgdeleteAPIRequest) SetIsSixthPic added in v1.3.1

func (r *TaobaoitemimgdeleteAPIRequest) SetIsSixthPic(_isSixthPic bool) error

SetIsSixthPic is IsSixthPic Setter 标记是否要删除第6张图,因为第6张图与普通商品图片不是存储在同一个位置的无图片ID,所以要通过一个标记来判断是否为第6张图,目前第6张图业务主要用在女装业务下

func (*TaobaoitemimgdeleteAPIRequest) SetNumIid added in v1.3.1

func (r *TaobaoitemimgdeleteAPIRequest) SetNumIid(_numIid int64) error

SetNumIid is NumIid Setter 商品数字ID

type TaobaoitemimgdeleteAPIResponse added in v1.3.1

type TaobaoitemimgdeleteAPIResponse struct {
	model.CommonResponse
	TaobaoitemimgdeleteAPIResponseModel
}

TaobaoitemimgdeleteAPIResponse 删除商品图片 API返回值 taobao.item.img.delete

删除商品图片

type TaobaoitemimgdeleteAPIResponseModel added in v1.3.1

type TaobaoitemimgdeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"item_img_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品图片结构
	ItemImg *ItemImg `json:"item_img,omitempty" xml:"item_img,omitempty"`
}

TaobaoitemimgdeleteAPIResponseModel is 删除商品图片 成功返回结果

type TaobaoitemimguploadAPIRequest added in v1.3.1

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

TaobaoitemimguploadAPIRequest 添加商品图片 API请求 taobao.item.img.upload

添加一张商品图片到num_iid指定的商品中 传入的num_iid所对应的商品必须属于当前会话的用户 如果更新图片需要设置itemimg_id,且该itemimg_id的图片记录需要属于传入的num_iid对应的商品。如果新增图片则不用设置 。 使用taobao.item.seller.get中返回的item_imgs字段获取图片id。 商品图片有数量和大小上的限制,根据卖家享有的服务(如:卖家订购了多图服务等),商品图片数量限制不同。

func NewTaobaoitemimguploadRequest added in v1.3.1

func NewTaobaoitemimguploadRequest() *TaobaoitemimguploadAPIRequest

NewTaobaoitemimguploadRequest 初始化TaobaoitemimguploadAPIRequest对象

func (TaobaoitemimguploadAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemimguploadAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemimguploadAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemimguploadAPIRequest) GetId added in v1.3.1

GetId Id Getter

func (TaobaoitemimguploadAPIRequest) GetImage added in v1.3.1

GetImage Image Getter

func (TaobaoitemimguploadAPIRequest) GetIsMajor added in v1.3.1

func (r TaobaoitemimguploadAPIRequest) GetIsMajor() bool

GetIsMajor IsMajor Getter

func (TaobaoitemimguploadAPIRequest) GetIsRectangle added in v1.3.1

func (r TaobaoitemimguploadAPIRequest) GetIsRectangle() bool

GetIsRectangle IsRectangle Getter

func (TaobaoitemimguploadAPIRequest) GetNumIid added in v1.3.1

func (r TaobaoitemimguploadAPIRequest) GetNumIid() int64

GetNumIid NumIid Getter

func (TaobaoitemimguploadAPIRequest) GetPosition added in v1.3.1

func (r TaobaoitemimguploadAPIRequest) GetPosition() int64

GetPosition Position Getter

func (TaobaoitemimguploadAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoitemimguploadAPIRequest) GetRawParams() model.Params

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

func (*TaobaoitemimguploadAPIRequest) SetId added in v1.3.1

SetId is Id Setter 商品图片id(如果是更新图片,则需要传该参数)

func (*TaobaoitemimguploadAPIRequest) SetImage added in v1.3.1

func (r *TaobaoitemimguploadAPIRequest) SetImage(_image *model.File) error

SetImage is Image Setter 商品图片内容类型:JPG;最大:3M 。支持的文件类型:jpg,jpeg,png

func (*TaobaoitemimguploadAPIRequest) SetIsMajor added in v1.3.1

func (r *TaobaoitemimguploadAPIRequest) SetIsMajor(_isMajor bool) error

SetIsMajor is IsMajor Setter 是否将该图片设为主图,可选值:true,false;默认值:false(非主图)

func (*TaobaoitemimguploadAPIRequest) SetIsRectangle added in v1.3.1

func (r *TaobaoitemimguploadAPIRequest) SetIsRectangle(_isRectangle bool) error

SetIsRectangle is IsRectangle Setter 是否3:4长方形图片,绑定3:4主图视频时用于上传3:4商品主图

func (*TaobaoitemimguploadAPIRequest) SetNumIid added in v1.3.1

func (r *TaobaoitemimguploadAPIRequest) SetNumIid(_numIid int64) error

SetNumIid is NumIid Setter 商品数字ID,该参数必须

func (*TaobaoitemimguploadAPIRequest) SetPosition added in v1.3.1

func (r *TaobaoitemimguploadAPIRequest) SetPosition(_position int64) error

SetPosition is Position Setter 图片序号

type TaobaoitemimguploadAPIResponse added in v1.3.1

type TaobaoitemimguploadAPIResponse struct {
	model.CommonResponse
	TaobaoitemimguploadAPIResponseModel
}

TaobaoitemimguploadAPIResponse 添加商品图片 API返回值 taobao.item.img.upload

添加一张商品图片到num_iid指定的商品中 传入的num_iid所对应的商品必须属于当前会话的用户 如果更新图片需要设置itemimg_id,且该itemimg_id的图片记录需要属于传入的num_iid对应的商品。如果新增图片则不用设置 。 使用taobao.item.seller.get中返回的item_imgs字段获取图片id。 商品图片有数量和大小上的限制,根据卖家享有的服务(如:卖家订购了多图服务等),商品图片数量限制不同。

type TaobaoitemimguploadAPIResponseModel added in v1.3.1

type TaobaoitemimguploadAPIResponseModel struct {
	XMLName xml.Name `xml:"item_img_upload_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品图片结构
	ItemImg *ItemImg `json:"item_img,omitempty" xml:"item_img,omitempty"`
}

TaobaoitemimguploadAPIResponseModel is 添加商品图片 成功返回结果

type TaobaoitemjointimgAPIRequest added in v1.3.1

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

TaobaoitemjointimgAPIRequest 商品关联子图 API请求 taobao.item.joint.img

* 关联一张商品图片到num_iid指定的商品中<br/> * 传入的num_iid所对应的商品必须属于当前会话的用户<br/> * 商品图片关联在卖家身份和图片来源上的限制,卖家要是B卖家或订购了多图服务才能关联图片,并且图片要来自于卖家自己的图片空间才行<br/> * 商品图片数量有限制。不管是上传的图片还是关联的图片,他们的总数不能超过一定限额

func NewTaobaoitemjointimgRequest added in v1.3.1

func NewTaobaoitemjointimgRequest() *TaobaoitemjointimgAPIRequest

NewTaobaoitemjointimgRequest 初始化TaobaoitemjointimgAPIRequest对象

func (TaobaoitemjointimgAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemjointimgAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemjointimgAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemjointimgAPIRequest) GetId added in v1.3.1

GetId Id Getter

func (TaobaoitemjointimgAPIRequest) GetIsMajor added in v1.3.1

func (r TaobaoitemjointimgAPIRequest) GetIsMajor() bool

GetIsMajor IsMajor Getter

func (TaobaoitemjointimgAPIRequest) GetIsRectangle added in v1.3.1

func (r TaobaoitemjointimgAPIRequest) GetIsRectangle() bool

GetIsRectangle IsRectangle Getter

func (TaobaoitemjointimgAPIRequest) GetNumIid added in v1.3.1

func (r TaobaoitemjointimgAPIRequest) GetNumIid() int64

GetNumIid NumIid Getter

func (TaobaoitemjointimgAPIRequest) GetPicPath added in v1.3.1

func (r TaobaoitemjointimgAPIRequest) GetPicPath() string

GetPicPath PicPath Getter

func (TaobaoitemjointimgAPIRequest) GetPosition added in v1.3.1

func (r TaobaoitemjointimgAPIRequest) GetPosition() int64

GetPosition Position Getter

func (TaobaoitemjointimgAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoitemjointimgAPIRequest) GetRawParams() model.Params

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

func (*TaobaoitemjointimgAPIRequest) SetId added in v1.3.1

SetId is Id Setter 商品图片id(如果是更新图片,则需要传该参数)

func (*TaobaoitemjointimgAPIRequest) SetIsMajor added in v1.3.1

func (r *TaobaoitemjointimgAPIRequest) SetIsMajor(_isMajor bool) error

SetIsMajor is IsMajor Setter 上传的图片是否关联为商品主图

func (*TaobaoitemjointimgAPIRequest) SetIsRectangle added in v1.3.1

func (r *TaobaoitemjointimgAPIRequest) SetIsRectangle(_isRectangle bool) error

SetIsRectangle is IsRectangle Setter 是否3:4长方形图片,绑定3:4主图视频时用于上传3:4商品主图

func (*TaobaoitemjointimgAPIRequest) SetNumIid added in v1.3.1

func (r *TaobaoitemjointimgAPIRequest) SetNumIid(_numIid int64) error

SetNumIid is NumIid Setter 商品数字ID,必选

func (*TaobaoitemjointimgAPIRequest) SetPicPath added in v1.3.1

func (r *TaobaoitemjointimgAPIRequest) SetPicPath(_picPath string) error

SetPicPath is PicPath Setter 图片URL,图片空间图片的相对地址,支持的文件类型:jpg,jpeg,png

func (*TaobaoitemjointimgAPIRequest) SetPosition added in v1.3.1

func (r *TaobaoitemjointimgAPIRequest) SetPosition(_position int64) error

SetPosition is Position Setter 图片序号

type TaobaoitemjointimgAPIResponse added in v1.3.1

type TaobaoitemjointimgAPIResponse struct {
	model.CommonResponse
	TaobaoitemjointimgAPIResponseModel
}

TaobaoitemjointimgAPIResponse 商品关联子图 API返回值 taobao.item.joint.img

* 关联一张商品图片到num_iid指定的商品中<br/> * 传入的num_iid所对应的商品必须属于当前会话的用户<br/> * 商品图片关联在卖家身份和图片来源上的限制,卖家要是B卖家或订购了多图服务才能关联图片,并且图片要来自于卖家自己的图片空间才行<br/> * 商品图片数量有限制。不管是上传的图片还是关联的图片,他们的总数不能超过一定限额

type TaobaoitemjointimgAPIResponseModel added in v1.3.1

type TaobaoitemjointimgAPIResponseModel struct {
	XMLName xml.Name `xml:"item_joint_img_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品图片信息
	ItemImg *ItemImg `json:"item_img,omitempty" xml:"item_img,omitempty"`
}

TaobaoitemjointimgAPIResponseModel is 商品关联子图 成功返回结果

type TaobaoitemjointpropimgAPIRequest added in v1.3.1

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

TaobaoitemjointpropimgAPIRequest 商品关联属性图 API请求 taobao.item.joint.propimg

* 关联一张商品属性图片到num_iid指定的商品中<br/> * 传入的num_iid所对应的商品必须属于当前会话的用户<br/> * 图片的属性必须要是颜色的属性,这个在前台显示的时候需要和sku进行关联的<br/> * 商品图片关联在卖家身份和图片来源上的限制,卖家要是B卖家或订购了多图服务才能关联图片,并且图片要来自于卖家自己的图片空间才行<br/> * 商品图片数量有限制。不管是上传的图片还是关联的图片,他们的总数不能超过一定限额,最多不能超过24张(每个颜色属性都有一张)

func NewTaobaoitemjointpropimgRequest added in v1.3.1

func NewTaobaoitemjointpropimgRequest() *TaobaoitemjointpropimgAPIRequest

NewTaobaoitemjointpropimgRequest 初始化TaobaoitemjointpropimgAPIRequest对象

func (TaobaoitemjointpropimgAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemjointpropimgAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemjointpropimgAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemjointpropimgAPIRequest) GetId added in v1.3.1

GetId Id Getter

func (TaobaoitemjointpropimgAPIRequest) GetNumIid added in v1.3.1

GetNumIid NumIid Getter

func (TaobaoitemjointpropimgAPIRequest) GetPicPath added in v1.3.1

GetPicPath PicPath Getter

func (TaobaoitemjointpropimgAPIRequest) GetPosition added in v1.3.1

func (r TaobaoitemjointpropimgAPIRequest) GetPosition() int64

GetPosition Position Getter

func (TaobaoitemjointpropimgAPIRequest) GetProperties added in v1.3.1

func (r TaobaoitemjointpropimgAPIRequest) GetProperties() string

GetProperties Properties Getter

func (TaobaoitemjointpropimgAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoitemjointpropimgAPIRequest) SetId added in v1.3.1

SetId is Id Setter 属性图片ID。如果是新增不需要填写

func (*TaobaoitemjointpropimgAPIRequest) SetNumIid added in v1.3.1

func (r *TaobaoitemjointpropimgAPIRequest) SetNumIid(_numIid int64) error

SetNumIid is NumIid Setter 商品数字ID,必选

func (*TaobaoitemjointpropimgAPIRequest) SetPicPath added in v1.3.1

func (r *TaobaoitemjointpropimgAPIRequest) SetPicPath(_picPath string) error

SetPicPath is PicPath Setter 图片地址(传入图片相对地址即可,即不需包含 http://img02.taobao.net/bao/uploaded )

func (*TaobaoitemjointpropimgAPIRequest) SetPosition added in v1.3.1

func (r *TaobaoitemjointpropimgAPIRequest) SetPosition(_position int64) error

SetPosition is Position Setter 图片序号

func (*TaobaoitemjointpropimgAPIRequest) SetProperties added in v1.3.1

func (r *TaobaoitemjointpropimgAPIRequest) SetProperties(_properties string) error

SetProperties is Properties Setter 属性列表。调用taobao.itemprops.get获取,属性必须是颜色属性,格式:pid:vid。

type TaobaoitemjointpropimgAPIResponse added in v1.3.1

type TaobaoitemjointpropimgAPIResponse struct {
	model.CommonResponse
	TaobaoitemjointpropimgAPIResponseModel
}

TaobaoitemjointpropimgAPIResponse 商品关联属性图 API返回值 taobao.item.joint.propimg

* 关联一张商品属性图片到num_iid指定的商品中<br/> * 传入的num_iid所对应的商品必须属于当前会话的用户<br/> * 图片的属性必须要是颜色的属性,这个在前台显示的时候需要和sku进行关联的<br/> * 商品图片关联在卖家身份和图片来源上的限制,卖家要是B卖家或订购了多图服务才能关联图片,并且图片要来自于卖家自己的图片空间才行<br/> * 商品图片数量有限制。不管是上传的图片还是关联的图片,他们的总数不能超过一定限额,最多不能超过24张(每个颜色属性都有一张)

type TaobaoitemjointpropimgAPIResponseModel added in v1.3.1

type TaobaoitemjointpropimgAPIResponseModel struct {
	XMLName xml.Name `xml:"item_joint_propimg_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 属性图片对象信息
	PropImg *PropImg `json:"prop_img,omitempty" xml:"prop_img,omitempty"`
}

TaobaoitemjointpropimgAPIResponseModel is 商品关联属性图 成功返回结果

type TaobaoitempromotionrulegetAPIRequest added in v1.3.1

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

TaobaoitempromotionrulegetAPIRequest 获取商品已生效营销活动更新规则 API请求 taobao.item.promotion.rule.get

获取商品已生效的更新规则信息,主要包含库存禁止修改,商品一口价禁止修改,库存减少锁定等规则生效信息

func NewTaobaoitempromotionrulegetRequest added in v1.3.1

func NewTaobaoitempromotionrulegetRequest() *TaobaoitempromotionrulegetAPIRequest

NewTaobaoitempromotionrulegetRequest 初始化TaobaoitempromotionrulegetAPIRequest对象

func (TaobaoitempromotionrulegetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitempromotionrulegetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitempromotionrulegetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitempromotionrulegetAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (TaobaoitempromotionrulegetAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoitempromotionrulegetAPIRequest) SetItemId added in v1.3.1

func (r *TaobaoitempromotionrulegetAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品ID

type TaobaoitempromotionrulegetAPIResponse added in v1.3.1

type TaobaoitempromotionrulegetAPIResponse struct {
	model.CommonResponse
	TaobaoitempromotionrulegetAPIResponseModel
}

TaobaoitempromotionrulegetAPIResponse 获取商品已生效营销活动更新规则 API返回值 taobao.item.promotion.rule.get

获取商品已生效的更新规则信息,主要包含库存禁止修改,商品一口价禁止修改,库存减少锁定等规则生效信息

type TaobaoitempromotionrulegetAPIResponseModel added in v1.3.1

type TaobaoitempromotionrulegetAPIResponseModel struct {
	XMLName xml.Name `xml:"item_promotion_rule_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品规则信息
	Rules []ItemPromotionRule `json:"rules,omitempty" xml:"rules>item_promotion_rule,omitempty"`
	// 商品是否命中更新规则
	Effec bool `json:"effec,omitempty" xml:"effec,omitempty"`
}

TaobaoitempromotionrulegetAPIResponseModel is 获取商品已生效营销活动更新规则 成功返回结果

type TaobaoitempropimgdeleteAPIRequest added in v1.3.1

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

TaobaoitempropimgdeleteAPIRequest 删除属性图片 API请求 taobao.item.propimg.delete

删除propimg_id 所指定的商品属性图片 <br/>传入的num_iid所对应的商品必须属于当前会话的用户 <br/>propimg_id对应的属性图片需要属于num_iid对应的商品

func NewTaobaoitempropimgdeleteRequest added in v1.3.1

func NewTaobaoitempropimgdeleteRequest() *TaobaoitempropimgdeleteAPIRequest

NewTaobaoitempropimgdeleteRequest 初始化TaobaoitempropimgdeleteAPIRequest对象

func (TaobaoitempropimgdeleteAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitempropimgdeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitempropimgdeleteAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitempropimgdeleteAPIRequest) GetId added in v1.3.1

GetId Id Getter

func (TaobaoitempropimgdeleteAPIRequest) GetNumIid added in v1.3.1

GetNumIid NumIid Getter

func (TaobaoitempropimgdeleteAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoitempropimgdeleteAPIRequest) SetId added in v1.3.1

SetId is Id Setter 商品属性图片ID

func (*TaobaoitempropimgdeleteAPIRequest) SetNumIid added in v1.3.1

func (r *TaobaoitempropimgdeleteAPIRequest) SetNumIid(_numIid int64) error

SetNumIid is NumIid Setter 商品数字ID,必选

type TaobaoitempropimgdeleteAPIResponse added in v1.3.1

type TaobaoitempropimgdeleteAPIResponse struct {
	model.CommonResponse
	TaobaoitempropimgdeleteAPIResponseModel
}

TaobaoitempropimgdeleteAPIResponse 删除属性图片 API返回值 taobao.item.propimg.delete

删除propimg_id 所指定的商品属性图片 <br/>传入的num_iid所对应的商品必须属于当前会话的用户 <br/>propimg_id对应的属性图片需要属于num_iid对应的商品

type TaobaoitempropimgdeleteAPIResponseModel added in v1.3.1

type TaobaoitempropimgdeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"item_propimg_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 属性图片结构
	PropImg *PropImg `json:"prop_img,omitempty" xml:"prop_img,omitempty"`
}

TaobaoitempropimgdeleteAPIResponseModel is 删除属性图片 成功返回结果

type TaobaoitempropimguploadAPIRequest added in v1.3.1

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

TaobaoitempropimguploadAPIRequest 添加或修改属性图片 API请求 taobao.item.propimg.upload

添加一张商品属性图片到num_iid指定的商品中 <br/>传入的num_iid所对应的商品必须属于当前会话的用户 <br/>图片的属性必须要是颜色的属性,这个在前台显示的时候需要和sku进行关联的 <br/>商品属性图片只有享有服务的卖家(如:淘宝大卖家、订购了淘宝多图服务的卖家)才能上传 <br/>商品属性图片有数量和大小上的限制,最多不能超过24张(每个颜色属性都有一张)。

func NewTaobaoitempropimguploadRequest added in v1.3.1

func NewTaobaoitempropimguploadRequest() *TaobaoitempropimguploadAPIRequest

NewTaobaoitempropimguploadRequest 初始化TaobaoitempropimguploadAPIRequest对象

func (TaobaoitempropimguploadAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitempropimguploadAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitempropimguploadAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitempropimguploadAPIRequest) GetId added in v1.3.1

GetId Id Getter

func (TaobaoitempropimguploadAPIRequest) GetImage added in v1.3.1

GetImage Image Getter

func (TaobaoitempropimguploadAPIRequest) GetNumIid added in v1.3.1

GetNumIid NumIid Getter

func (TaobaoitempropimguploadAPIRequest) GetPosition added in v1.3.1

func (r TaobaoitempropimguploadAPIRequest) GetPosition() int64

GetPosition Position Getter

func (TaobaoitempropimguploadAPIRequest) GetProperties added in v1.3.1

func (r TaobaoitempropimguploadAPIRequest) GetProperties() string

GetProperties Properties Getter

func (TaobaoitempropimguploadAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoitempropimguploadAPIRequest) SetId added in v1.3.1

SetId is Id Setter 属性图片ID。如果是新增不需要填写

func (*TaobaoitempropimguploadAPIRequest) SetImage added in v1.3.1

func (r *TaobaoitempropimguploadAPIRequest) SetImage(_image *model.File) error

SetImage is Image Setter 属性图片内容。类型:JPG,GIF;图片大小不超过:3M

func (*TaobaoitempropimguploadAPIRequest) SetNumIid added in v1.3.1

func (r *TaobaoitempropimguploadAPIRequest) SetNumIid(_numIid int64) error

SetNumIid is NumIid Setter 商品数字ID,必选

func (*TaobaoitempropimguploadAPIRequest) SetPosition added in v1.3.1

func (r *TaobaoitempropimguploadAPIRequest) SetPosition(_position int64) error

SetPosition is Position Setter 图片位置

func (*TaobaoitempropimguploadAPIRequest) SetProperties added in v1.3.1

func (r *TaobaoitempropimguploadAPIRequest) SetProperties(_properties string) error

SetProperties is Properties Setter 属性列表。调用taobao.itemprops.get获取类目属性,属性必须是颜色属性,再用taobao.itempropvalues.get取得vid。格式:pid:vid。

type TaobaoitempropimguploadAPIResponse added in v1.3.1

type TaobaoitempropimguploadAPIResponse struct {
	model.CommonResponse
	TaobaoitempropimguploadAPIResponseModel
}

TaobaoitempropimguploadAPIResponse 添加或修改属性图片 API返回值 taobao.item.propimg.upload

添加一张商品属性图片到num_iid指定的商品中 <br/>传入的num_iid所对应的商品必须属于当前会话的用户 <br/>图片的属性必须要是颜色的属性,这个在前台显示的时候需要和sku进行关联的 <br/>商品属性图片只有享有服务的卖家(如:淘宝大卖家、订购了淘宝多图服务的卖家)才能上传 <br/>商品属性图片有数量和大小上的限制,最多不能超过24张(每个颜色属性都有一张)。

type TaobaoitempropimguploadAPIResponseModel added in v1.3.1

type TaobaoitempropimguploadAPIResponseModel struct {
	XMLName xml.Name `xml:"item_propimg_upload_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// PropImg属性图片结构
	PropImg *PropImg `json:"prop_img,omitempty" xml:"prop_img,omitempty"`
}

TaobaoitempropimguploadAPIResponseModel is 添加或修改属性图片 成功返回结果

type TaobaoitemquantityupdateAPIRequest added in v1.3.1

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

TaobaoitemquantityupdateAPIRequest 宝贝/SKU库存修改 API请求 taobao.item.quantity.update

提供按照全量或增量形式修改宝贝/SKU库存的功能

func NewTaobaoitemquantityupdateRequest added in v1.3.1

func NewTaobaoitemquantityupdateRequest() *TaobaoitemquantityupdateAPIRequest

NewTaobaoitemquantityupdateRequest 初始化TaobaoitemquantityupdateAPIRequest对象

func (TaobaoitemquantityupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemquantityupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemquantityupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemquantityupdateAPIRequest) GetNumIid added in v1.3.1

GetNumIid NumIid Getter

func (TaobaoitemquantityupdateAPIRequest) GetOuterId added in v1.3.1

GetOuterId OuterId Getter

func (TaobaoitemquantityupdateAPIRequest) GetQuantity added in v1.3.1

func (r TaobaoitemquantityupdateAPIRequest) GetQuantity() int64

GetQuantity Quantity Getter

func (TaobaoitemquantityupdateAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoitemquantityupdateAPIRequest) GetSkuId added in v1.3.1

GetSkuId SkuId Getter

func (TaobaoitemquantityupdateAPIRequest) GetType added in v1.3.1

GetType Type Getter

func (*TaobaoitemquantityupdateAPIRequest) SetNumIid added in v1.3.1

func (r *TaobaoitemquantityupdateAPIRequest) SetNumIid(_numIid int64) error

SetNumIid is NumIid Setter 商品数字ID,必填参数

func (*TaobaoitemquantityupdateAPIRequest) SetOuterId added in v1.3.1

func (r *TaobaoitemquantityupdateAPIRequest) SetOuterId(_outerId string) error

SetOuterId is OuterId Setter SKU的商家编码,可选参数。如果不填则默认修改宝贝的库存,如果填了则按照商家编码搜索出对应的SKU并修改库存。当sku_id和本字段都填写时以sku_id为准搜索对应SKU

func (*TaobaoitemquantityupdateAPIRequest) SetQuantity added in v1.3.1

func (r *TaobaoitemquantityupdateAPIRequest) SetQuantity(_quantity int64) error

SetQuantity is Quantity Setter 库存修改值,必选。当全量更新库存时,quantity必须为大于等于0的正整数;当增量更新库存时,quantity为整数,可小于等于0。若增量更新时传入的库存为负数,则负数与实际库存之和不能小于0。比如当前实际库存为1,传入增量更新quantity=-1,库存改为0

func (*TaobaoitemquantityupdateAPIRequest) SetSkuId added in v1.3.1

func (r *TaobaoitemquantityupdateAPIRequest) SetSkuId(_skuId int64) error

SetSkuId is SkuId Setter 要操作的SKU的数字ID,可选。如果不填默认修改宝贝的库存,如果填上则修改该SKU的库存

func (*TaobaoitemquantityupdateAPIRequest) SetType added in v1.3.1

SetType is Type Setter 库存更新方式,可选。1为全量更新,2为增量更新。如果不填,默认为全量更新

type TaobaoitemquantityupdateAPIResponse added in v1.3.1

type TaobaoitemquantityupdateAPIResponse struct {
	model.CommonResponse
	TaobaoitemquantityupdateAPIResponseModel
}

TaobaoitemquantityupdateAPIResponse 宝贝/SKU库存修改 API返回值 taobao.item.quantity.update

提供按照全量或增量形式修改宝贝/SKU库存的功能

type TaobaoitemquantityupdateAPIResponseModel added in v1.3.1

type TaobaoitemquantityupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"item_quantity_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// iid、numIid、num和modified,skus中每个sku的skuId、quantity和modified
	Item *Item `json:"item,omitempty" xml:"item,omitempty"`
}

TaobaoitemquantityupdateAPIResponseModel is 宝贝/SKU库存修改 成功返回结果

type TaobaoitemscustomgetAPIRequest added in v1.3.1

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

TaobaoitemscustomgetAPIRequest 根据外部ID取商品 API请求 taobao.items.custom.get

跟据卖家设定的商品外部id获取商品,只能获取授权卖家的商品 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=itemapi" target="_blank">点击查看更多商品API说明</a></strong>

func NewTaobaoitemscustomgetRequest added in v1.3.1

func NewTaobaoitemscustomgetRequest() *TaobaoitemscustomgetAPIRequest

NewTaobaoitemscustomgetRequest 初始化TaobaoitemscustomgetAPIRequest对象

func (TaobaoitemscustomgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemscustomgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemscustomgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemscustomgetAPIRequest) GetFields added in v1.3.1

func (r TaobaoitemscustomgetAPIRequest) GetFields() string

GetFields Fields Getter

func (TaobaoitemscustomgetAPIRequest) GetOuterId added in v1.3.1

func (r TaobaoitemscustomgetAPIRequest) GetOuterId() string

GetOuterId OuterId Getter

func (TaobaoitemscustomgetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoitemscustomgetAPIRequest) GetRawParams() model.Params

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

func (*TaobaoitemscustomgetAPIRequest) SetFields added in v1.3.1

func (r *TaobaoitemscustomgetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 需返回的字段列表,参考:Item商品结构体说明,其中barcode、sku.barcode等条形码字段暂不支持;多个字段之间用“,”分隔。

func (*TaobaoitemscustomgetAPIRequest) SetOuterId added in v1.3.1

func (r *TaobaoitemscustomgetAPIRequest) SetOuterId(_outerId string) error

SetOuterId is OuterId Setter 商品的外部商品ID,支持批量,最多不超过40个。

type TaobaoitemscustomgetAPIResponse added in v1.3.1

type TaobaoitemscustomgetAPIResponse struct {
	model.CommonResponse
	TaobaoitemscustomgetAPIResponseModel
}

TaobaoitemscustomgetAPIResponse 根据外部ID取商品 API返回值 taobao.items.custom.get

跟据卖家设定的商品外部id获取商品,只能获取授权卖家的商品 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=itemapi" target="_blank">点击查看更多商品API说明</a></strong>

type TaobaoitemscustomgetAPIResponseModel added in v1.3.1

type TaobaoitemscustomgetAPIResponseModel struct {
	XMLName xml.Name `xml:"items_custom_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品列表,具体返回字段以fields决定
	Items []Item `json:"items,omitempty" xml:"items>item,omitempty"`
}

TaobaoitemscustomgetAPIResponseModel is 根据外部ID取商品 成功返回结果

type TaobaoitemsellergetAPIRequest added in v1.3.1

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

TaobaoitemsellergetAPIRequest 获取单个商品详细信息 API请求 taobao.item.seller.get

获取单个商品的全部信息 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=itemapi" target="_blank">点击查看更多商品API说明</a></strong>

func NewTaobaoitemsellergetRequest added in v1.3.1

func NewTaobaoitemsellergetRequest() *TaobaoitemsellergetAPIRequest

NewTaobaoitemsellergetRequest 初始化TaobaoitemsellergetAPIRequest对象

func (TaobaoitemsellergetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemsellergetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemsellergetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemsellergetAPIRequest) GetFields added in v1.3.1

func (r TaobaoitemsellergetAPIRequest) GetFields() string

GetFields Fields Getter

func (TaobaoitemsellergetAPIRequest) GetNumIid added in v1.3.1

func (r TaobaoitemsellergetAPIRequest) GetNumIid() int64

GetNumIid NumIid Getter

func (TaobaoitemsellergetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoitemsellergetAPIRequest) GetRawParams() model.Params

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

func (*TaobaoitemsellergetAPIRequest) SetFields added in v1.3.1

func (r *TaobaoitemsellergetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 需要返回的商品字段列表。可选值:Item商品结构体中所有字段均可返回,多个字段用“,”分隔。

func (*TaobaoitemsellergetAPIRequest) SetNumIid added in v1.3.1

func (r *TaobaoitemsellergetAPIRequest) SetNumIid(_numIid int64) error

SetNumIid is NumIid Setter 商品数字ID

type TaobaoitemsellergetAPIResponse added in v1.3.1

type TaobaoitemsellergetAPIResponse struct {
	model.CommonResponse
	TaobaoitemsellergetAPIResponseModel
}

TaobaoitemsellergetAPIResponse 获取单个商品详细信息 API返回值 taobao.item.seller.get

获取单个商品的全部信息 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=itemapi" target="_blank">点击查看更多商品API说明</a></strong>

type TaobaoitemsellergetAPIResponseModel added in v1.3.1

type TaobaoitemsellergetAPIResponseModel struct {
	XMLName xml.Name `xml:"item_seller_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品详细信息
	Item *Item `json:"item,omitempty" xml:"item,omitempty"`
}

TaobaoitemsellergetAPIResponseModel is 获取单个商品详细信息 成功返回结果

type TaobaoitemsinventorygetAPIRequest added in v1.3.1

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

TaobaoitemsinventorygetAPIRequest 得到当前会话用户库存中的商品列表 API请求 taobao.items.inventory.get

获取当前用户作为卖家的仓库中的商品列表,并能根据传入的搜索条件对仓库中的商品列表进行过滤 只能获得商品的部分信息,商品的详细信息请通过taobao.item.seller.get获取<br/> <strong><a href="https://console.open.taobao.com/dingWeb.htm?from=itemapi" target="_blank">点击查看更多商品API说明</a></strong>

func NewTaobaoitemsinventorygetRequest added in v1.3.1

func NewTaobaoitemsinventorygetRequest() *TaobaoitemsinventorygetAPIRequest

NewTaobaoitemsinventorygetRequest 初始化TaobaoitemsinventorygetAPIRequest对象

func (TaobaoitemsinventorygetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemsinventorygetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemsinventorygetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemsinventorygetAPIRequest) GetAuctionType added in v1.3.1

func (r TaobaoitemsinventorygetAPIRequest) GetAuctionType() string

GetAuctionType AuctionType Getter

func (TaobaoitemsinventorygetAPIRequest) GetBanner added in v1.3.1

GetBanner Banner Getter

func (TaobaoitemsinventorygetAPIRequest) GetCid added in v1.3.1

GetCid Cid Getter

func (TaobaoitemsinventorygetAPIRequest) GetEndModified added in v1.3.1

func (r TaobaoitemsinventorygetAPIRequest) GetEndModified() string

GetEndModified EndModified Getter

func (TaobaoitemsinventorygetAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (TaobaoitemsinventorygetAPIRequest) GetHasDiscount added in v1.3.1

func (r TaobaoitemsinventorygetAPIRequest) GetHasDiscount() bool

GetHasDiscount HasDiscount Getter

func (TaobaoitemsinventorygetAPIRequest) GetIsEx added in v1.3.1

GetIsEx IsEx Getter

func (TaobaoitemsinventorygetAPIRequest) GetIsTaobao added in v1.3.1

func (r TaobaoitemsinventorygetAPIRequest) GetIsTaobao() bool

GetIsTaobao IsTaobao Getter

func (TaobaoitemsinventorygetAPIRequest) GetOrderBy added in v1.3.1

GetOrderBy OrderBy Getter

func (TaobaoitemsinventorygetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaoitemsinventorygetAPIRequest) GetPageSize added in v1.3.1

func (r TaobaoitemsinventorygetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaoitemsinventorygetAPIRequest) GetQ added in v1.3.1

GetQ Q Getter

func (TaobaoitemsinventorygetAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoitemsinventorygetAPIRequest) GetSellerCids added in v1.3.1

func (r TaobaoitemsinventorygetAPIRequest) GetSellerCids() string

GetSellerCids SellerCids Getter

func (TaobaoitemsinventorygetAPIRequest) GetStartModified added in v1.3.1

func (r TaobaoitemsinventorygetAPIRequest) GetStartModified() string

GetStartModified StartModified Getter

func (*TaobaoitemsinventorygetAPIRequest) SetAuctionType added in v1.3.1

func (r *TaobaoitemsinventorygetAPIRequest) SetAuctionType(_auctionType string) error

SetAuctionType is AuctionType Setter 商品类型:a-拍卖,b-一口价

func (*TaobaoitemsinventorygetAPIRequest) SetBanner added in v1.3.1

func (r *TaobaoitemsinventorygetAPIRequest) SetBanner(_banner string) error

SetBanner is Banner Setter 分类字段。可选值:<br>regular_shelved(定时上架)<br>never_on_shelf(从未上架)<br>off_shelf(我下架的)<br><font color='red'>for_shelved(等待所有上架)<br>sold_out(全部卖完)<br>violation_off_shelf(违规下架的)<br>默认查询for_shelved(等待所有上架)这个状态的商品<br></font>注:for_shelved(等待所有上架)=regular_shelved(定时上架)+never_on_shelf(从未上架)+off_shelf(我下架的)

func (*TaobaoitemsinventorygetAPIRequest) SetCid added in v1.3.1

SetCid is Cid Setter 商品类目ID。ItemCat中的cid字段。可以通过taobao.itemcats.get取到

func (*TaobaoitemsinventorygetAPIRequest) SetEndModified added in v1.3.1

func (r *TaobaoitemsinventorygetAPIRequest) SetEndModified(_endModified string) error

SetEndModified is EndModified Setter 商品结束修改时间

func (*TaobaoitemsinventorygetAPIRequest) SetFields added in v1.3.1

func (r *TaobaoitemsinventorygetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 需返回的字段列表。可选值为 Item 商品结构体中的以下字段: approve_status,num_iid,title,nick,type,cid,pic_url,num,props,valid_thru, list_time,price,has_discount,has_invoice,has_warranty,has_showcase, modified,delist_time,postage_id,seller_cids,outer_id;字段之间用“,”分隔。<br> 不支持其他字段,如果需要获取其他字段数据,调用taobao.item.seller.get。

func (*TaobaoitemsinventorygetAPIRequest) SetHasDiscount added in v1.3.1

func (r *TaobaoitemsinventorygetAPIRequest) SetHasDiscount(_hasDiscount bool) error

SetHasDiscount is HasDiscount Setter 是否参与会员折扣。可选值:true,false。默认不过滤该条件

func (*TaobaoitemsinventorygetAPIRequest) SetIsEx added in v1.3.1

func (r *TaobaoitemsinventorygetAPIRequest) SetIsEx(_isEx bool) error

SetIsEx is IsEx Setter 商品是否在外部网店显示

func (*TaobaoitemsinventorygetAPIRequest) SetIsTaobao added in v1.3.1

func (r *TaobaoitemsinventorygetAPIRequest) SetIsTaobao(_isTaobao bool) error

SetIsTaobao is IsTaobao Setter 商品是否在淘宝显示

func (*TaobaoitemsinventorygetAPIRequest) SetOrderBy added in v1.3.1

func (r *TaobaoitemsinventorygetAPIRequest) SetOrderBy(_orderBy string) error

SetOrderBy is OrderBy Setter 排序方式。格式为column:asc/desc ,column可选值:list_time(上架时间),delist_time(下架时间),num(商品数量),modified(最近修改时间);默认上架时间降序(即最新上架排在前面)。如按照上架时间降序排序方式为list_time:desc

func (*TaobaoitemsinventorygetAPIRequest) SetPageNo added in v1.3.1

func (r *TaobaoitemsinventorygetAPIRequest) SetPageNo(_pageNo int64) error

SetPageNo is PageNo Setter 页码。取值范围:大于零小于等于101的整数;默认值为1,即返回第一页数据。当页码超过101页时系统就会报错,故请大家在用此接口获取数据时尽可能的细化自己的搜索条件,例如根据修改时间分段获取商品。

func (*TaobaoitemsinventorygetAPIRequest) SetPageSize added in v1.3.1

func (r *TaobaoitemsinventorygetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页条数。取值范围:大于零的整数;最大值:200;默认值:40。

func (*TaobaoitemsinventorygetAPIRequest) SetQ added in v1.3.1

SetQ is Q Setter 搜索字段。搜索商品的title。

func (*TaobaoitemsinventorygetAPIRequest) SetSellerCids added in v1.3.1

func (r *TaobaoitemsinventorygetAPIRequest) SetSellerCids(_sellerCids string) error

SetSellerCids is SellerCids Setter 卖家店铺内自定义类目ID。多个之间用“,”分隔。可以根据taobao.sellercats.list.get获得.(<font color="red">注:目前最多支持32个ID号传入</font>)

func (*TaobaoitemsinventorygetAPIRequest) SetStartModified added in v1.3.1

func (r *TaobaoitemsinventorygetAPIRequest) SetStartModified(_startModified string) error

SetStartModified is StartModified Setter 商品起始修改时间

type TaobaoitemsinventorygetAPIResponse added in v1.3.1

type TaobaoitemsinventorygetAPIResponse struct {
	model.CommonResponse
	TaobaoitemsinventorygetAPIResponseModel
}

TaobaoitemsinventorygetAPIResponse 得到当前会话用户库存中的商品列表 API返回值 taobao.items.inventory.get

获取当前用户作为卖家的仓库中的商品列表,并能根据传入的搜索条件对仓库中的商品列表进行过滤 只能获得商品的部分信息,商品的详细信息请通过taobao.item.seller.get获取<br/> <strong><a href="https://console.open.taobao.com/dingWeb.htm?from=itemapi" target="_blank">点击查看更多商品API说明</a></strong>

type TaobaoitemsinventorygetAPIResponseModel added in v1.3.1

type TaobaoitemsinventorygetAPIResponseModel struct {
	XMLName xml.Name `xml:"items_inventory_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 搜索到底商品列表,具体字段根据设定的fields决定,不包括desc,stuff_status字段
	Items []Item `json:"items,omitempty" xml:"items>item,omitempty"`
	// 搜索到符合条件的结果总数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaoitemsinventorygetAPIResponseModel is 得到当前会话用户库存中的商品列表 成功返回结果

type TaobaoitemskuaddAPIRequest added in v1.3.1

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

TaobaoitemskuaddAPIRequest 添加SKU API请求 taobao.item.sku.add

新增一个sku到num_iid指定的商品中 <br/>传入的iid所对应的商品必须属于当前会话的用户

func NewTaobaoitemskuaddRequest added in v1.3.1

func NewTaobaoitemskuaddRequest() *TaobaoitemskuaddAPIRequest

NewTaobaoitemskuaddRequest 初始化TaobaoitemskuaddAPIRequest对象

func (TaobaoitemskuaddAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemskuaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemskuaddAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemskuaddAPIRequest) GetIgnorewarning added in v1.3.1

func (r TaobaoitemskuaddAPIRequest) GetIgnorewarning() string

GetIgnorewarning Ignorewarning Getter

func (TaobaoitemskuaddAPIRequest) GetItemPrice added in v1.3.1

func (r TaobaoitemskuaddAPIRequest) GetItemPrice() float64

GetItemPrice ItemPrice Getter

func (TaobaoitemskuaddAPIRequest) GetLang added in v1.3.1

func (r TaobaoitemskuaddAPIRequest) GetLang() string

GetLang Lang Getter

func (TaobaoitemskuaddAPIRequest) GetNumIid added in v1.3.1

func (r TaobaoitemskuaddAPIRequest) GetNumIid() int64

GetNumIid NumIid Getter

func (TaobaoitemskuaddAPIRequest) GetOuterId added in v1.3.1

func (r TaobaoitemskuaddAPIRequest) GetOuterId() string

GetOuterId OuterId Getter

func (TaobaoitemskuaddAPIRequest) GetPrice added in v1.3.1

func (r TaobaoitemskuaddAPIRequest) GetPrice() float64

GetPrice Price Getter

func (TaobaoitemskuaddAPIRequest) GetProperties added in v1.3.1

func (r TaobaoitemskuaddAPIRequest) GetProperties() string

GetProperties Properties Getter

func (TaobaoitemskuaddAPIRequest) GetQuantity added in v1.3.1

func (r TaobaoitemskuaddAPIRequest) GetQuantity() int64

GetQuantity Quantity Getter

func (TaobaoitemskuaddAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoitemskuaddAPIRequest) GetRawParams() model.Params

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

func (*TaobaoitemskuaddAPIRequest) SetIgnorewarning added in v1.3.1

func (r *TaobaoitemskuaddAPIRequest) SetIgnorewarning(_ignorewarning string) error

SetIgnorewarning is Ignorewarning Setter 忽略警告提示.

func (*TaobaoitemskuaddAPIRequest) SetItemPrice added in v1.3.1

func (r *TaobaoitemskuaddAPIRequest) SetItemPrice(_itemPrice float64) error

SetItemPrice is ItemPrice Setter sku所属商品的价格。当用户新增sku,使商品价格不属于sku价格之间的时候,用于修改商品的价格,使sku能够添加成功

func (*TaobaoitemskuaddAPIRequest) SetLang added in v1.3.1

func (r *TaobaoitemskuaddAPIRequest) SetLang(_lang string) error

SetLang is Lang Setter Sku文字的版本。可选值:zh_HK(繁体),zh_CN(简体);默认值:zh_CN

func (*TaobaoitemskuaddAPIRequest) SetNumIid added in v1.3.1

func (r *TaobaoitemskuaddAPIRequest) SetNumIid(_numIid int64) error

SetNumIid is NumIid Setter Sku所属商品数字id。必选

func (*TaobaoitemskuaddAPIRequest) SetOuterId added in v1.3.1

func (r *TaobaoitemskuaddAPIRequest) SetOuterId(_outerId string) error

SetOuterId is OuterId Setter Sku的商家外部id

func (*TaobaoitemskuaddAPIRequest) SetPrice added in v1.3.1

func (r *TaobaoitemskuaddAPIRequest) SetPrice(_price float64) error

SetPrice is Price Setter Sku的销售价格。商品的价格要在商品所有的sku的价格之间。精确到2位小数;单位:元。如:200.07,表示:200元7分

func (*TaobaoitemskuaddAPIRequest) SetProperties added in v1.3.1

func (r *TaobaoitemskuaddAPIRequest) SetProperties(_properties string) error

SetProperties is Properties Setter Sku属性串。格式:pid:vid;pid:vid,如:1627207:3232483;1630696:3284570,表示:机身颜色:军绿色;手机套餐:一电一充。

func (*TaobaoitemskuaddAPIRequest) SetQuantity added in v1.3.1

func (r *TaobaoitemskuaddAPIRequest) SetQuantity(_quantity int64) error

SetQuantity is Quantity Setter Sku的库存数量。sku的总数量应该小于等于商品总数量(Item的NUM)。取值范围:大于零的整数

type TaobaoitemskuaddAPIResponse added in v1.3.1

type TaobaoitemskuaddAPIResponse struct {
	model.CommonResponse
	TaobaoitemskuaddAPIResponseModel
}

TaobaoitemskuaddAPIResponse 添加SKU API返回值 taobao.item.sku.add

新增一个sku到num_iid指定的商品中 <br/>传入的iid所对应的商品必须属于当前会话的用户

type TaobaoitemskuaddAPIResponseModel added in v1.3.1

type TaobaoitemskuaddAPIResponseModel struct {
	XMLName xml.Name `xml:"item_sku_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// sku
	Sku *Sku `json:"sku,omitempty" xml:"sku,omitempty"`
}

TaobaoitemskuaddAPIResponseModel is 添加SKU 成功返回结果

type TaobaoitemskudeleteAPIRequest added in v1.3.1

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

TaobaoitemskudeleteAPIRequest 删除SKU API请求 taobao.item.sku.delete

删除一个sku的数据<br/>需要删除的sku通过属性properties进行匹配查找

func NewTaobaoitemskudeleteRequest added in v1.3.1

func NewTaobaoitemskudeleteRequest() *TaobaoitemskudeleteAPIRequest

NewTaobaoitemskudeleteRequest 初始化TaobaoitemskudeleteAPIRequest对象

func (TaobaoitemskudeleteAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemskudeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemskudeleteAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemskudeleteAPIRequest) GetIgnorewarning added in v1.3.1

func (r TaobaoitemskudeleteAPIRequest) GetIgnorewarning() string

GetIgnorewarning Ignorewarning Getter

func (TaobaoitemskudeleteAPIRequest) GetItemNum added in v1.3.1

func (r TaobaoitemskudeleteAPIRequest) GetItemNum() int64

GetItemNum ItemNum Getter

func (TaobaoitemskudeleteAPIRequest) GetItemPrice added in v1.3.1

func (r TaobaoitemskudeleteAPIRequest) GetItemPrice() float64

GetItemPrice ItemPrice Getter

func (TaobaoitemskudeleteAPIRequest) GetLang added in v1.3.1

GetLang Lang Getter

func (TaobaoitemskudeleteAPIRequest) GetNumIid added in v1.3.1

func (r TaobaoitemskudeleteAPIRequest) GetNumIid() int64

GetNumIid NumIid Getter

func (TaobaoitemskudeleteAPIRequest) GetProperties added in v1.3.1

func (r TaobaoitemskudeleteAPIRequest) GetProperties() string

GetProperties Properties Getter

func (TaobaoitemskudeleteAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoitemskudeleteAPIRequest) GetRawParams() model.Params

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

func (*TaobaoitemskudeleteAPIRequest) SetIgnorewarning added in v1.3.1

func (r *TaobaoitemskudeleteAPIRequest) SetIgnorewarning(_ignorewarning string) error

SetIgnorewarning is Ignorewarning Setter 忽略警告提示.

func (*TaobaoitemskudeleteAPIRequest) SetItemNum added in v1.3.1

func (r *TaobaoitemskudeleteAPIRequest) SetItemNum(_itemNum int64) error

SetItemNum is ItemNum Setter sku所属商品的数量,大于0的整数。当用户删除sku,使商品数量不等于sku数量之和时候,用于修改商品的数量,使sku能够删除成功。特别是删除最后一个sku的时候,一定要设置商品数量到正常的值,否则删除失败

func (*TaobaoitemskudeleteAPIRequest) SetItemPrice added in v1.3.1

func (r *TaobaoitemskudeleteAPIRequest) SetItemPrice(_itemPrice float64) error

SetItemPrice is ItemPrice Setter sku所属商品的价格。当用户删除sku,使商品价格不属于sku价格之间的时候,用于修改商品的价格,使sku能够删除成功

func (*TaobaoitemskudeleteAPIRequest) SetLang added in v1.3.1

func (r *TaobaoitemskudeleteAPIRequest) SetLang(_lang string) error

SetLang is Lang Setter Sku文字的版本。可选值:zh_HK(繁体),zh_CN(简体);默认值:zh_CN

func (*TaobaoitemskudeleteAPIRequest) SetNumIid added in v1.3.1

func (r *TaobaoitemskudeleteAPIRequest) SetNumIid(_numIid int64) error

SetNumIid is NumIid Setter Sku所属商品数字id,可通过 taobao.item.get 获取。必选

func (*TaobaoitemskudeleteAPIRequest) SetProperties added in v1.3.1

func (r *TaobaoitemskudeleteAPIRequest) SetProperties(_properties string) error

SetProperties is Properties Setter Sku属性串。格式:pid:vid;pid:vid,如: 1627207:3232483;1630696:3284570,表示机身颜色:军绿色;手机套餐:一电一充

type TaobaoitemskudeleteAPIResponse added in v1.3.1

type TaobaoitemskudeleteAPIResponse struct {
	model.CommonResponse
	TaobaoitemskudeleteAPIResponseModel
}

TaobaoitemskudeleteAPIResponse 删除SKU API返回值 taobao.item.sku.delete

删除一个sku的数据<br/>需要删除的sku通过属性properties进行匹配查找

type TaobaoitemskudeleteAPIResponseModel added in v1.3.1

type TaobaoitemskudeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"item_sku_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// Sku结构
	Sku *Sku `json:"sku,omitempty" xml:"sku,omitempty"`
}

TaobaoitemskudeleteAPIResponseModel is 删除SKU 成功返回结果

type TaobaoitemskugetAPIRequest added in v1.3.1

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

TaobaoitemskugetAPIRequest 获取SKU API请求 taobao.item.sku.get

获取sku_id所对应的sku数据 sku_id对应的sku要属于传入的nick对应的卖家 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=itemapi" target="_blank">点击查看更多商品API说明</a></strong>

func NewTaobaoitemskugetRequest added in v1.3.1

func NewTaobaoitemskugetRequest() *TaobaoitemskugetAPIRequest

NewTaobaoitemskugetRequest 初始化TaobaoitemskugetAPIRequest对象

func (TaobaoitemskugetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemskugetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemskugetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemskugetAPIRequest) GetFields added in v1.3.1

func (r TaobaoitemskugetAPIRequest) GetFields() string

GetFields Fields Getter

func (TaobaoitemskugetAPIRequest) GetNumIid added in v1.3.1

func (r TaobaoitemskugetAPIRequest) GetNumIid() int64

GetNumIid NumIid Getter

func (TaobaoitemskugetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoitemskugetAPIRequest) GetRawParams() model.Params

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

func (TaobaoitemskugetAPIRequest) GetSkuId added in v1.3.1

func (r TaobaoitemskugetAPIRequest) GetSkuId() int64

GetSkuId SkuId Getter

func (*TaobaoitemskugetAPIRequest) SetFields added in v1.3.1

func (r *TaobaoitemskugetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 需返回的字段列表。可选值:Sku结构体中的所有字段;字段之间用“,”分隔。

func (*TaobaoitemskugetAPIRequest) SetNumIid added in v1.3.1

func (r *TaobaoitemskugetAPIRequest) SetNumIid(_numIid int64) error

SetNumIid is NumIid Setter 商品的数字IID(num_iid和nick必传一个,推荐用num_iid),传商品的数字id返回的结果里包含cspu(SKu上的产品规格信息)。

func (*TaobaoitemskugetAPIRequest) SetSkuId added in v1.3.1

func (r *TaobaoitemskugetAPIRequest) SetSkuId(_skuId int64) error

SetSkuId is SkuId Setter Sku的id。可以通过taobao.item.seller.get得到

type TaobaoitemskugetAPIResponse added in v1.3.1

type TaobaoitemskugetAPIResponse struct {
	model.CommonResponse
	TaobaoitemskugetAPIResponseModel
}

TaobaoitemskugetAPIResponse 获取SKU API返回值 taobao.item.sku.get

获取sku_id所对应的sku数据 sku_id对应的sku要属于传入的nick对应的卖家 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=itemapi" target="_blank">点击查看更多商品API说明</a></strong>

type TaobaoitemskugetAPIResponseModel added in v1.3.1

type TaobaoitemskugetAPIResponseModel struct {
	XMLName xml.Name `xml:"item_sku_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// Sku
	Sku *Sku `json:"sku,omitempty" xml:"sku,omitempty"`
}

TaobaoitemskugetAPIResponseModel is 获取SKU 成功返回结果

type TaobaoitemskupriceupdateAPIRequest added in v1.3.1

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

TaobaoitemskupriceupdateAPIRequest 更新商品SKU的价格 API请求 taobao.item.sku.price.update

更新商品SKU的价格

func NewTaobaoitemskupriceupdateRequest added in v1.3.1

func NewTaobaoitemskupriceupdateRequest() *TaobaoitemskupriceupdateAPIRequest

NewTaobaoitemskupriceupdateRequest 初始化TaobaoitemskupriceupdateAPIRequest对象

func (TaobaoitemskupriceupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemskupriceupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemskupriceupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemskupriceupdateAPIRequest) GetIgnorewarning added in v1.3.1

func (r TaobaoitemskupriceupdateAPIRequest) GetIgnorewarning() string

GetIgnorewarning Ignorewarning Getter

func (TaobaoitemskupriceupdateAPIRequest) GetItemPrice added in v1.3.1

GetItemPrice ItemPrice Getter

func (TaobaoitemskupriceupdateAPIRequest) GetLang added in v1.3.1

GetLang Lang Getter

func (TaobaoitemskupriceupdateAPIRequest) GetNumIid added in v1.3.1

GetNumIid NumIid Getter

func (TaobaoitemskupriceupdateAPIRequest) GetOuterId added in v1.3.1

GetOuterId OuterId Getter

func (TaobaoitemskupriceupdateAPIRequest) GetPrice added in v1.3.1

GetPrice Price Getter

func (TaobaoitemskupriceupdateAPIRequest) GetProperties added in v1.3.1

func (r TaobaoitemskupriceupdateAPIRequest) GetProperties() string

GetProperties Properties Getter

func (TaobaoitemskupriceupdateAPIRequest) GetQuantity added in v1.3.1

func (r TaobaoitemskupriceupdateAPIRequest) GetQuantity() int64

GetQuantity Quantity Getter

func (TaobaoitemskupriceupdateAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoitemskupriceupdateAPIRequest) SetIgnorewarning added in v1.3.1

func (r *TaobaoitemskupriceupdateAPIRequest) SetIgnorewarning(_ignorewarning string) error

SetIgnorewarning is Ignorewarning Setter 忽略警告提示.

func (*TaobaoitemskupriceupdateAPIRequest) SetItemPrice added in v1.3.1

func (r *TaobaoitemskupriceupdateAPIRequest) SetItemPrice(_itemPrice float64) error

SetItemPrice is ItemPrice Setter sku所属商品的价格。当用户更新sku,使商品价格不属于sku价格之间的时候,用于修改商品的价格,使sku能够更新成功

func (*TaobaoitemskupriceupdateAPIRequest) SetLang added in v1.3.1

SetLang is Lang Setter Sku文字的版本。可选值:zh_HK(繁体),zh_CN(简体);默认值:zh_CN

func (*TaobaoitemskupriceupdateAPIRequest) SetNumIid added in v1.3.1

func (r *TaobaoitemskupriceupdateAPIRequest) SetNumIid(_numIid int64) error

SetNumIid is NumIid Setter Sku所属商品数字id,可通过 taobao.item.get 获取

func (*TaobaoitemskupriceupdateAPIRequest) SetOuterId added in v1.3.1

func (r *TaobaoitemskupriceupdateAPIRequest) SetOuterId(_outerId string) error

SetOuterId is OuterId Setter Sku的商家外部id

func (*TaobaoitemskupriceupdateAPIRequest) SetPrice added in v1.3.1

func (r *TaobaoitemskupriceupdateAPIRequest) SetPrice(_price float64) error

SetPrice is Price Setter Sku的销售价格。精确到2位小数;单位:元。如:200.07,表示:200元7分。修改后的sku价格要保证商品的价格在所有sku价格所形成的价格区间内(例如:商品价格为6元,sku价格有5元、10元两种,如果要修改5元sku的价格,那么修改的范围只能是0-6元之间;如果要修改10元的sku,那么修改的范围只能是6到无穷大的区间中)

func (*TaobaoitemskupriceupdateAPIRequest) SetProperties added in v1.3.1

func (r *TaobaoitemskupriceupdateAPIRequest) SetProperties(_properties string) error

SetProperties is Properties Setter Sku属性串。格式:pid:vid;pid:vid,如: 1627207:3232483;1630696:3284570,表示机身颜色:军绿色;手机套餐:一电一充

func (*TaobaoitemskupriceupdateAPIRequest) SetQuantity added in v1.3.1

func (r *TaobaoitemskupriceupdateAPIRequest) SetQuantity(_quantity int64) error

SetQuantity is Quantity Setter Sku的库存数量。sku的总数量应该小于等于商品总数量(Item的NUM),sku数量变化后item的总数量也会随着变化。取值范围:大于等于零的整数

type TaobaoitemskupriceupdateAPIResponse added in v1.3.1

type TaobaoitemskupriceupdateAPIResponse struct {
	model.CommonResponse
	TaobaoitemskupriceupdateAPIResponseModel
}

TaobaoitemskupriceupdateAPIResponse 更新商品SKU的价格 API返回值 taobao.item.sku.price.update

更新商品SKU的价格

type TaobaoitemskupriceupdateAPIResponseModel added in v1.3.1

type TaobaoitemskupriceupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"item_sku_price_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品SKU信息(只包含num_iid和modified)
	Sku *Sku `json:"sku,omitempty" xml:"sku,omitempty"`
}

TaobaoitemskupriceupdateAPIResponseModel is 更新商品SKU的价格 成功返回结果

type TaobaoitemskusgetAPIRequest added in v1.3.1

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

TaobaoitemskusgetAPIRequest 根据商品ID列表获取SKU信息 API请求 taobao.item.skus.get

* 获取多个商品下的所有sku <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=itemapi" target="_blank">点击查看更多商品API说明</a></strong>

func NewTaobaoitemskusgetRequest added in v1.3.1

func NewTaobaoitemskusgetRequest() *TaobaoitemskusgetAPIRequest

NewTaobaoitemskusgetRequest 初始化TaobaoitemskusgetAPIRequest对象

func (TaobaoitemskusgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemskusgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemskusgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemskusgetAPIRequest) GetFields added in v1.3.1

func (r TaobaoitemskusgetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaoitemskusgetAPIRequest) GetNumIids added in v1.3.1

func (r TaobaoitemskusgetAPIRequest) GetNumIids() string

GetNumIids NumIids Getter

func (TaobaoitemskusgetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoitemskusgetAPIRequest) GetRawParams() model.Params

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

func (*TaobaoitemskusgetAPIRequest) SetFields added in v1.3.1

func (r *TaobaoitemskusgetAPIRequest) SetFields(_fields []string) error

SetFields is Fields Setter 需返回的字段列表。可选值:Sku结构体中的所有字段;字段之间用“,”分隔。

func (*TaobaoitemskusgetAPIRequest) SetNumIids added in v1.3.1

func (r *TaobaoitemskusgetAPIRequest) SetNumIids(_numIids string) error

SetNumIids is NumIids Setter sku所属商品数字id,必选。num_iid个数不能超过40个

type TaobaoitemskusgetAPIResponse added in v1.3.1

type TaobaoitemskusgetAPIResponse struct {
	model.CommonResponse
	TaobaoitemskusgetAPIResponseModel
}

TaobaoitemskusgetAPIResponse 根据商品ID列表获取SKU信息 API返回值 taobao.item.skus.get

* 获取多个商品下的所有sku <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=itemapi" target="_blank">点击查看更多商品API说明</a></strong>

type TaobaoitemskusgetAPIResponseModel added in v1.3.1

type TaobaoitemskusgetAPIResponseModel struct {
	XMLName xml.Name `xml:"item_skus_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// Sku列表
	Skus []Sku `json:"skus,omitempty" xml:"skus>sku,omitempty"`
}

TaobaoitemskusgetAPIResponseModel is 根据商品ID列表获取SKU信息 成功返回结果

type TaobaoitemskuupdateAPIRequest added in v1.3.1

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

TaobaoitemskuupdateAPIRequest 更新SKU信息 API请求 taobao.item.sku.update

*更新一个sku的数据 <br/>*需要更新的sku通过属性properties进行匹配查找 <br/>*商品的数量和价格必须大于等于0 <br/>*sku记录会更新到指定的num_iid对应的商品中 <br/>*num_iid对应的商品必须属于当前的会话用户

func NewTaobaoitemskuupdateRequest added in v1.3.1

func NewTaobaoitemskuupdateRequest() *TaobaoitemskuupdateAPIRequest

NewTaobaoitemskuupdateRequest 初始化TaobaoitemskuupdateAPIRequest对象

func (TaobaoitemskuupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemskuupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemskuupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemskuupdateAPIRequest) GetIgnorewarning added in v1.3.1

func (r TaobaoitemskuupdateAPIRequest) GetIgnorewarning() string

GetIgnorewarning Ignorewarning Getter

func (TaobaoitemskuupdateAPIRequest) GetItemPrice added in v1.3.1

func (r TaobaoitemskuupdateAPIRequest) GetItemPrice() float64

GetItemPrice ItemPrice Getter

func (TaobaoitemskuupdateAPIRequest) GetLang added in v1.3.1

GetLang Lang Getter

func (TaobaoitemskuupdateAPIRequest) GetNumIid added in v1.3.1

func (r TaobaoitemskuupdateAPIRequest) GetNumIid() int64

GetNumIid NumIid Getter

func (TaobaoitemskuupdateAPIRequest) GetOuterId added in v1.3.1

func (r TaobaoitemskuupdateAPIRequest) GetOuterId() string

GetOuterId OuterId Getter

func (TaobaoitemskuupdateAPIRequest) GetPrice added in v1.3.1

GetPrice Price Getter

func (TaobaoitemskuupdateAPIRequest) GetProperties added in v1.3.1

func (r TaobaoitemskuupdateAPIRequest) GetProperties() string

GetProperties Properties Getter

func (TaobaoitemskuupdateAPIRequest) GetQuantity added in v1.3.1

func (r TaobaoitemskuupdateAPIRequest) GetQuantity() int64

GetQuantity Quantity Getter

func (TaobaoitemskuupdateAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoitemskuupdateAPIRequest) GetRawParams() model.Params

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

func (*TaobaoitemskuupdateAPIRequest) SetIgnorewarning added in v1.3.1

func (r *TaobaoitemskuupdateAPIRequest) SetIgnorewarning(_ignorewarning string) error

SetIgnorewarning is Ignorewarning Setter 忽略警告提示.

func (*TaobaoitemskuupdateAPIRequest) SetItemPrice added in v1.3.1

func (r *TaobaoitemskuupdateAPIRequest) SetItemPrice(_itemPrice float64) error

SetItemPrice is ItemPrice Setter sku所属商品的价格。当用户更新sku,使商品价格不属于sku价格之间的时候,用于修改商品的价格,使sku能够更新成功

func (*TaobaoitemskuupdateAPIRequest) SetLang added in v1.3.1

func (r *TaobaoitemskuupdateAPIRequest) SetLang(_lang string) error

SetLang is Lang Setter Sku文字的版本。可选值:zh_HK(繁体),zh_CN(简体);默认值:zh_CN

func (*TaobaoitemskuupdateAPIRequest) SetNumIid added in v1.3.1

func (r *TaobaoitemskuupdateAPIRequest) SetNumIid(_numIid int64) error

SetNumIid is NumIid Setter Sku所属商品数字id,可通过 taobao.item.get 获取

func (*TaobaoitemskuupdateAPIRequest) SetOuterId added in v1.3.1

func (r *TaobaoitemskuupdateAPIRequest) SetOuterId(_outerId string) error

SetOuterId is OuterId Setter Sku的商家外部id

func (*TaobaoitemskuupdateAPIRequest) SetPrice added in v1.3.1

func (r *TaobaoitemskuupdateAPIRequest) SetPrice(_price float64) error

SetPrice is Price Setter Sku的销售价格。精确到2位小数;单位:元。如:200.07,表示:200元7分。修改后的sku价格要保证商品的价格在所有sku价格所形成的价格区间内(例如:商品价格为6元,sku价格有5元、10元两种,如果要修改5元sku的价格,那么修改的范围只能是0-6元之间;如果要修改10元的sku,那么修改的范围只能是6到无穷大的区间中)

func (*TaobaoitemskuupdateAPIRequest) SetProperties added in v1.3.1

func (r *TaobaoitemskuupdateAPIRequest) SetProperties(_properties string) error

SetProperties is Properties Setter Sku属性串。格式:pid:vid;pid:vid,如: 1627207:3232483;1630696:3284570,表示机身颜色:军绿色;手机套餐:一电一充。<br/>如果包含自定义属性,则格式为pid:vid;pid2:vid2;$pText:vText , 其中$pText:vText为自定义属性。限制:其中$pText的’$’前缀不能少,且pText和vText文本中不可以存在 冒号:和分号;以及逗号,

func (*TaobaoitemskuupdateAPIRequest) SetQuantity added in v1.3.1

func (r *TaobaoitemskuupdateAPIRequest) SetQuantity(_quantity int64) error

SetQuantity is Quantity Setter Sku的库存数量。sku的总数量应该小于等于商品总数量(Item的NUM),sku数量变化后item的总数量也会随着变化。取值范围:大于等于零的整数

type TaobaoitemskuupdateAPIResponse added in v1.3.1

type TaobaoitemskuupdateAPIResponse struct {
	model.CommonResponse
	TaobaoitemskuupdateAPIResponseModel
}

TaobaoitemskuupdateAPIResponse 更新SKU信息 API返回值 taobao.item.sku.update

*更新一个sku的数据 <br/>*需要更新的sku通过属性properties进行匹配查找 <br/>*商品的数量和价格必须大于等于0 <br/>*sku记录会更新到指定的num_iid对应的商品中 <br/>*num_iid对应的商品必须属于当前的会话用户

type TaobaoitemskuupdateAPIResponseModel added in v1.3.1

type TaobaoitemskuupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"item_sku_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品Sku
	Sku *Sku `json:"sku,omitempty" xml:"sku,omitempty"`
}

TaobaoitemskuupdateAPIResponseModel is 更新SKU信息 成功返回结果

type TaobaoitemsonsalegetAPIRequest added in v1.3.1

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

TaobaoitemsonsalegetAPIRequest 获取当前会话用户出售中的商品列表 API请求 taobao.items.onsale.get

获取当前用户作为卖家的出售中的商品列表,并能根据传入的搜索条件对出售中的商品列表进行过滤 只能获得商品的部分信息,商品的详细信息请通过taobao.item.seller.get 获取 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=itemapi" target="_blank">点击查看更多商品API说明</a></strong>

func NewTaobaoitemsonsalegetRequest added in v1.3.1

func NewTaobaoitemsonsalegetRequest() *TaobaoitemsonsalegetAPIRequest

NewTaobaoitemsonsalegetRequest 初始化TaobaoitemsonsalegetAPIRequest对象

func (TaobaoitemsonsalegetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemsonsalegetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemsonsalegetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemsonsalegetAPIRequest) GetAuctionType added in v1.3.1

func (r TaobaoitemsonsalegetAPIRequest) GetAuctionType() string

GetAuctionType AuctionType Getter

func (TaobaoitemsonsalegetAPIRequest) GetCid added in v1.3.1

GetCid Cid Getter

func (TaobaoitemsonsalegetAPIRequest) GetEndModified added in v1.3.1

func (r TaobaoitemsonsalegetAPIRequest) GetEndModified() string

GetEndModified EndModified Getter

func (TaobaoitemsonsalegetAPIRequest) GetFields added in v1.3.1

func (r TaobaoitemsonsalegetAPIRequest) GetFields() string

GetFields Fields Getter

func (TaobaoitemsonsalegetAPIRequest) GetHasDiscount added in v1.3.1

func (r TaobaoitemsonsalegetAPIRequest) GetHasDiscount() bool

GetHasDiscount HasDiscount Getter

func (TaobaoitemsonsalegetAPIRequest) GetHasShowcase added in v1.3.1

func (r TaobaoitemsonsalegetAPIRequest) GetHasShowcase() bool

GetHasShowcase HasShowcase Getter

func (TaobaoitemsonsalegetAPIRequest) GetIsCombine added in v1.3.1

func (r TaobaoitemsonsalegetAPIRequest) GetIsCombine() bool

GetIsCombine IsCombine Getter

func (TaobaoitemsonsalegetAPIRequest) GetIsCspu added in v1.3.1

func (r TaobaoitemsonsalegetAPIRequest) GetIsCspu() bool

GetIsCspu IsCspu Getter

func (TaobaoitemsonsalegetAPIRequest) GetIsEx added in v1.3.1

GetIsEx IsEx Getter

func (TaobaoitemsonsalegetAPIRequest) GetIsTaobao added in v1.3.1

func (r TaobaoitemsonsalegetAPIRequest) GetIsTaobao() bool

GetIsTaobao IsTaobao Getter

func (TaobaoitemsonsalegetAPIRequest) GetOrderBy added in v1.3.1

func (r TaobaoitemsonsalegetAPIRequest) GetOrderBy() string

GetOrderBy OrderBy Getter

func (TaobaoitemsonsalegetAPIRequest) GetPageNo added in v1.3.1

func (r TaobaoitemsonsalegetAPIRequest) GetPageNo() int64

GetPageNo PageNo Getter

func (TaobaoitemsonsalegetAPIRequest) GetPageSize added in v1.3.1

func (r TaobaoitemsonsalegetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaoitemsonsalegetAPIRequest) GetQ added in v1.3.1

GetQ Q Getter

func (TaobaoitemsonsalegetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoitemsonsalegetAPIRequest) GetRawParams() model.Params

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

func (TaobaoitemsonsalegetAPIRequest) GetSellerCids added in v1.3.1

func (r TaobaoitemsonsalegetAPIRequest) GetSellerCids() string

GetSellerCids SellerCids Getter

func (TaobaoitemsonsalegetAPIRequest) GetStartModified added in v1.3.1

func (r TaobaoitemsonsalegetAPIRequest) GetStartModified() string

GetStartModified StartModified Getter

func (*TaobaoitemsonsalegetAPIRequest) SetAuctionType added in v1.3.1

func (r *TaobaoitemsonsalegetAPIRequest) SetAuctionType(_auctionType string) error

SetAuctionType is AuctionType Setter 商品类型:a-拍卖,b-一口价

func (*TaobaoitemsonsalegetAPIRequest) SetCid added in v1.3.1

func (r *TaobaoitemsonsalegetAPIRequest) SetCid(_cid int64) error

SetCid is Cid Setter 商品类目ID。ItemCat中的cid字段。可以通过taobao.itemcats.get取到

func (*TaobaoitemsonsalegetAPIRequest) SetEndModified added in v1.3.1

func (r *TaobaoitemsonsalegetAPIRequest) SetEndModified(_endModified string) error

SetEndModified is EndModified Setter 结束的修改时间

func (*TaobaoitemsonsalegetAPIRequest) SetFields added in v1.3.1

func (r *TaobaoitemsonsalegetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 需返回的字段列表。可选值:Item商品结构体中的以下字段: approve_status,num_iid,title,nick,type,cid,pic_url,num,props,valid_thru,list_time,price,has_discount,has_invoice,has_warranty,has_showcase,modified,delist_time,postage_id,seller_cids,outer_id,sold_quantity ;字段之间用“,”分隔。不支持其他字段,如果需要获取其他字段数据,调用taobao.item.seller.get 获取。

func (*TaobaoitemsonsalegetAPIRequest) SetHasDiscount added in v1.3.1

func (r *TaobaoitemsonsalegetAPIRequest) SetHasDiscount(_hasDiscount bool) error

SetHasDiscount is HasDiscount Setter 是否参与会员折扣。可选值:true,false。默认不过滤该条件

func (*TaobaoitemsonsalegetAPIRequest) SetHasShowcase added in v1.3.1

func (r *TaobaoitemsonsalegetAPIRequest) SetHasShowcase(_hasShowcase bool) error

SetHasShowcase is HasShowcase Setter 是否橱窗推荐。 可选值:true,false。默认不过滤该条件

func (*TaobaoitemsonsalegetAPIRequest) SetIsCombine added in v1.3.1

func (r *TaobaoitemsonsalegetAPIRequest) SetIsCombine(_isCombine bool) error

SetIsCombine is IsCombine Setter 组合商品

func (*TaobaoitemsonsalegetAPIRequest) SetIsCspu added in v1.3.1

func (r *TaobaoitemsonsalegetAPIRequest) SetIsCspu(_isCspu bool) error

SetIsCspu is IsCspu Setter 是否挂接了达尔文标准产品体系

func (*TaobaoitemsonsalegetAPIRequest) SetIsEx added in v1.3.1

func (r *TaobaoitemsonsalegetAPIRequest) SetIsEx(_isEx bool) error

SetIsEx is IsEx Setter 商品是否在外部网店显示

func (*TaobaoitemsonsalegetAPIRequest) SetIsTaobao added in v1.3.1

func (r *TaobaoitemsonsalegetAPIRequest) SetIsTaobao(_isTaobao bool) error

SetIsTaobao is IsTaobao Setter 商品是否在淘宝显示

func (*TaobaoitemsonsalegetAPIRequest) SetOrderBy added in v1.3.1

func (r *TaobaoitemsonsalegetAPIRequest) SetOrderBy(_orderBy string) error

SetOrderBy is OrderBy Setter 排序方式。格式为column:asc/desc ,column可选值:list_time(上架时间),delist_time(下架时间),num(商品数量),modified(最近修改时间),sold_quantity(商品销量),;默认上架时间降序(即最新上架排在前面)。如按照上架时间降序排序方式为list_time:desc

func (*TaobaoitemsonsalegetAPIRequest) SetPageNo added in v1.3.1

func (r *TaobaoitemsonsalegetAPIRequest) SetPageNo(_pageNo int64) error

SetPageNo is PageNo Setter 页码。取值范围:大于零的整数。默认值为1,即默认返回第一页数据。用此接口获取数据时,当翻页获取的条数(page_no*page_size)超过10万,为了保护后台搜索引擎,接口将报错。所以请大家尽可能的细化自己的搜索条件,例如根据修改时间分段获取商品

func (*TaobaoitemsonsalegetAPIRequest) SetPageSize added in v1.3.1

func (r *TaobaoitemsonsalegetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页条数。取值范围:大于零的整数;最大值:200;默认值:40。用此接口获取数据时,当翻页获取的条数(page_no*page_size)超过2万,为了保护后台搜索引擎,接口将报错。所以请大家尽可能的细化自己的搜索条件,例如根据修改时间分段获取商品

func (*TaobaoitemsonsalegetAPIRequest) SetQ added in v1.3.1

SetQ is Q Setter 搜索字段。搜索商品的title。

func (*TaobaoitemsonsalegetAPIRequest) SetSellerCids added in v1.3.1

func (r *TaobaoitemsonsalegetAPIRequest) SetSellerCids(_sellerCids string) error

SetSellerCids is SellerCids Setter 卖家店铺内自定义类目ID。多个之间用“,”分隔。可以根据taobao.sellercats.list.get获得.(<font color="red">注:目前最多支持32个ID号传入</font>)

func (*TaobaoitemsonsalegetAPIRequest) SetStartModified added in v1.3.1

func (r *TaobaoitemsonsalegetAPIRequest) SetStartModified(_startModified string) error

SetStartModified is StartModified Setter 起始的修改时间

type TaobaoitemsonsalegetAPIResponse added in v1.3.1

type TaobaoitemsonsalegetAPIResponse struct {
	model.CommonResponse
	TaobaoitemsonsalegetAPIResponseModel
}

TaobaoitemsonsalegetAPIResponse 获取当前会话用户出售中的商品列表 API返回值 taobao.items.onsale.get

获取当前用户作为卖家的出售中的商品列表,并能根据传入的搜索条件对出售中的商品列表进行过滤 只能获得商品的部分信息,商品的详细信息请通过taobao.item.seller.get 获取 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=itemapi" target="_blank">点击查看更多商品API说明</a></strong>

type TaobaoitemsonsalegetAPIResponseModel added in v1.3.1

type TaobaoitemsonsalegetAPIResponseModel struct {
	XMLName xml.Name `xml:"items_onsale_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 搜索到的商品列表,具体字段根据设定的fields决定,不包括desc字段
	Items []Item `json:"items,omitempty" xml:"items>item,omitempty"`
	// 搜索到符合条件的结果总数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaoitemsonsalegetAPIResponseModel is 获取当前会话用户出售中的商品列表 成功返回结果

type TaobaoitemssellerlistgetAPIRequest added in v1.3.1

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

TaobaoitemssellerlistgetAPIRequest 批量获取商品详细信息 API请求 taobao.items.seller.list.get

批量获取商品详细信息 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=itemapi" target="_blank">点击查看更多商品API说明</a></strong>

func NewTaobaoitemssellerlistgetRequest added in v1.3.1

func NewTaobaoitemssellerlistgetRequest() *TaobaoitemssellerlistgetAPIRequest

NewTaobaoitemssellerlistgetRequest 初始化TaobaoitemssellerlistgetAPIRequest对象

func (TaobaoitemssellerlistgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemssellerlistgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemssellerlistgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemssellerlistgetAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (TaobaoitemssellerlistgetAPIRequest) GetNumIids added in v1.3.1

func (r TaobaoitemssellerlistgetAPIRequest) GetNumIids() []string

GetNumIids NumIids Getter

func (TaobaoitemssellerlistgetAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoitemssellerlistgetAPIRequest) SetFields added in v1.3.1

func (r *TaobaoitemssellerlistgetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 需要返回的商品字段列表。可选值:点击返回结果中的Item结构体中能展示出来的所有字段,多个字段用“,”分隔。注:返回所有sku信息的字段名称是sku而不是skus。

func (*TaobaoitemssellerlistgetAPIRequest) SetNumIids added in v1.3.1

func (r *TaobaoitemssellerlistgetAPIRequest) SetNumIids(_numIids []string) error

SetNumIids is NumIids Setter 商品ID列表,多个ID用半角逗号隔开,一次最多不超过20个。注:获取不存在的商品ID或获取别人的商品都不会报错,但没有商品数据返回。

type TaobaoitemssellerlistgetAPIResponse added in v1.3.1

type TaobaoitemssellerlistgetAPIResponse struct {
	model.CommonResponse
	TaobaoitemssellerlistgetAPIResponseModel
}

TaobaoitemssellerlistgetAPIResponse 批量获取商品详细信息 API返回值 taobao.items.seller.list.get

批量获取商品详细信息 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=itemapi" target="_blank">点击查看更多商品API说明</a></strong>

type TaobaoitemssellerlistgetAPIResponseModel added in v1.3.1

type TaobaoitemssellerlistgetAPIResponseModel struct {
	XMLName xml.Name `xml:"items_seller_list_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品详细信息列表
	Items []Item `json:"items,omitempty" xml:"items>item,omitempty"`
}

TaobaoitemssellerlistgetAPIResponseModel is 批量获取商品详细信息 成功返回结果

type TaobaoitemtemplatesgetAPIRequest added in v1.3.1

type TaobaoitemtemplatesgetAPIRequest struct {
	model.Params
}

TaobaoitemtemplatesgetAPIRequest 获取用户宝贝详情页模板名称 API请求 taobao.item.templates.get

查询当前登录用户的店铺的宝贝详情页的模板名称

func NewTaobaoitemtemplatesgetRequest added in v1.3.1

func NewTaobaoitemtemplatesgetRequest() *TaobaoitemtemplatesgetAPIRequest

NewTaobaoitemtemplatesgetRequest 初始化TaobaoitemtemplatesgetAPIRequest对象

func (TaobaoitemtemplatesgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemtemplatesgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemtemplatesgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemtemplatesgetAPIRequest) GetRawParams added in v1.3.1

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

type TaobaoitemtemplatesgetAPIResponse added in v1.3.1

type TaobaoitemtemplatesgetAPIResponse struct {
	model.CommonResponse
	TaobaoitemtemplatesgetAPIResponseModel
}

TaobaoitemtemplatesgetAPIResponse 获取用户宝贝详情页模板名称 API返回值 taobao.item.templates.get

查询当前登录用户的店铺的宝贝详情页的模板名称

type TaobaoitemtemplatesgetAPIResponseModel added in v1.3.1

type TaobaoitemtemplatesgetAPIResponseModel struct {
	XMLName xml.Name `xml:"item_templates_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回宝贝模板对象。包含模板id,模板name,还有模板的类别(0表示外店,1表示内店)
	ItemTemplateList []ItemTemplate `json:"item_template_list,omitempty" xml:"item_template_list>item_template,omitempty"`
}

TaobaoitemtemplatesgetAPIResponseModel is 获取用户宝贝详情页模板名称 成功返回结果

type TaobaoitemupdatedelistingAPIRequest added in v1.3.1

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

TaobaoitemupdatedelistingAPIRequest 商品下架 API请求 taobao.item.update.delisting

* 单个商品下架<br/> * 输入的num_iid必须属于当前会话用户

func NewTaobaoitemupdatedelistingRequest added in v1.3.1

func NewTaobaoitemupdatedelistingRequest() *TaobaoitemupdatedelistingAPIRequest

NewTaobaoitemupdatedelistingRequest 初始化TaobaoitemupdatedelistingAPIRequest对象

func (TaobaoitemupdatedelistingAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemupdatedelistingAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemupdatedelistingAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemupdatedelistingAPIRequest) GetNumIid added in v1.3.1

GetNumIid NumIid Getter

func (TaobaoitemupdatedelistingAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoitemupdatedelistingAPIRequest) SetNumIid added in v1.3.1

func (r *TaobaoitemupdatedelistingAPIRequest) SetNumIid(_numIid int64) error

SetNumIid is NumIid Setter 商品数字ID,该参数必须

type TaobaoitemupdatedelistingAPIResponse added in v1.3.1

type TaobaoitemupdatedelistingAPIResponse struct {
	model.CommonResponse
	TaobaoitemupdatedelistingAPIResponseModel
}

TaobaoitemupdatedelistingAPIResponse 商品下架 API返回值 taobao.item.update.delisting

* 单个商品下架<br/> * 输入的num_iid必须属于当前会话用户

type TaobaoitemupdatedelistingAPIResponseModel added in v1.3.1

type TaobaoitemupdatedelistingAPIResponseModel struct {
	XMLName xml.Name `xml:"item_update_delisting_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回商品更新信息:返回的结果是:num_iid和modified
	Item *Item `json:"item,omitempty" xml:"item,omitempty"`
}

TaobaoitemupdatedelistingAPIResponseModel is 商品下架 成功返回结果

type TaobaoitemupdatedelistingtmallAPIRequest added in v1.3.1

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

TaobaoitemupdatedelistingtmallAPIRequest taobao.item.update.delisting.tmall API请求 taobao.item.update.delisting.tmall

* 单个商品下架<br/> * 输入的num_iid必须属于当前会话用户

func NewTaobaoitemupdatedelistingtmallRequest added in v1.3.1

func NewTaobaoitemupdatedelistingtmallRequest() *TaobaoitemupdatedelistingtmallAPIRequest

NewTaobaoitemupdatedelistingtmallRequest 初始化TaobaoitemupdatedelistingtmallAPIRequest对象

func (TaobaoitemupdatedelistingtmallAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemupdatedelistingtmallAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemupdatedelistingtmallAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemupdatedelistingtmallAPIRequest) GetNumIid added in v1.3.1

GetNumIid NumIid Getter

func (TaobaoitemupdatedelistingtmallAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoitemupdatedelistingtmallAPIRequest) SetNumIid added in v1.3.1

SetNumIid is NumIid Setter 商品数字ID,该参数必须

type TaobaoitemupdatedelistingtmallAPIResponse added in v1.3.1

type TaobaoitemupdatedelistingtmallAPIResponse struct {
	model.CommonResponse
	TaobaoitemupdatedelistingtmallAPIResponseModel
}

TaobaoitemupdatedelistingtmallAPIResponse taobao.item.update.delisting.tmall API返回值 taobao.item.update.delisting.tmall

* 单个商品下架<br/> * 输入的num_iid必须属于当前会话用户

type TaobaoitemupdatedelistingtmallAPIResponseModel added in v1.3.1

type TaobaoitemupdatedelistingtmallAPIResponseModel struct {
	XMLName xml.Name `xml:"item_update_delisting_tmall_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回商品更新信息:返回的结果是:num_iid和modified
	Item *Item `json:"item,omitempty" xml:"item,omitempty"`
}

TaobaoitemupdatedelistingtmallAPIResponseModel is taobao.item.update.delisting.tmall 成功返回结果

type TaobaoitemupdatelistingAPIRequest added in v1.3.1

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

TaobaoitemupdatelistingAPIRequest 一口价商品上架 API请求 taobao.item.update.listing

* 单个商品上架<br/>* 输入的num_iid必须属于当前会话用户

func NewTaobaoitemupdatelistingRequest added in v1.3.1

func NewTaobaoitemupdatelistingRequest() *TaobaoitemupdatelistingAPIRequest

NewTaobaoitemupdatelistingRequest 初始化TaobaoitemupdatelistingAPIRequest对象

func (TaobaoitemupdatelistingAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemupdatelistingAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemupdatelistingAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemupdatelistingAPIRequest) GetNum added in v1.3.1

GetNum Num Getter

func (TaobaoitemupdatelistingAPIRequest) GetNumIid added in v1.3.1

GetNumIid NumIid Getter

func (TaobaoitemupdatelistingAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoitemupdatelistingAPIRequest) SetNum added in v1.3.1

SetNum is Num Setter 需要上架的商品的数量。取值范围:大于零的整数。如果商品有sku,则上架数量默认为所有sku数量总和,不可修改。否则商品数量根据设置数量调整为num

func (*TaobaoitemupdatelistingAPIRequest) SetNumIid added in v1.3.1

func (r *TaobaoitemupdatelistingAPIRequest) SetNumIid(_numIid int64) error

SetNumIid is NumIid Setter 商品数字ID,该参数必须

type TaobaoitemupdatelistingAPIResponse added in v1.3.1

type TaobaoitemupdatelistingAPIResponse struct {
	model.CommonResponse
	TaobaoitemupdatelistingAPIResponseModel
}

TaobaoitemupdatelistingAPIResponse 一口价商品上架 API返回值 taobao.item.update.listing

* 单个商品上架<br/>* 输入的num_iid必须属于当前会话用户

type TaobaoitemupdatelistingAPIResponseModel added in v1.3.1

type TaobaoitemupdatelistingAPIResponseModel struct {
	XMLName xml.Name `xml:"item_update_listing_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 上架后返回的商品信息:返回的结果就是:num_iid和modified
	Item *Item `json:"item,omitempty" xml:"item,omitempty"`
}

TaobaoitemupdatelistingAPIResponseModel is 一口价商品上架 成功返回结果

type TaobaoitemupdatelistingtmallAPIRequest added in v1.3.1

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

TaobaoitemupdatelistingtmallAPIRequest taobao.item.update.listing天猫分流 API请求 taobao.item.update.listing.tmall

* 单个商品上架<br/>* 输入的num_iid必须属于当前会话用户

func NewTaobaoitemupdatelistingtmallRequest added in v1.3.1

func NewTaobaoitemupdatelistingtmallRequest() *TaobaoitemupdatelistingtmallAPIRequest

NewTaobaoitemupdatelistingtmallRequest 初始化TaobaoitemupdatelistingtmallAPIRequest对象

func (TaobaoitemupdatelistingtmallAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemupdatelistingtmallAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemupdatelistingtmallAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemupdatelistingtmallAPIRequest) GetNum added in v1.3.1

GetNum Num Getter

func (TaobaoitemupdatelistingtmallAPIRequest) GetNumIid added in v1.3.1

GetNumIid NumIid Getter

func (TaobaoitemupdatelistingtmallAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoitemupdatelistingtmallAPIRequest) SetNum added in v1.3.1

SetNum is Num Setter 需要上架的商品的数量。取值范围:大于零的整数。如果商品有sku,则上架数量默认为所有sku数量总和,不可修改。否则商品数量根据设置数量调整为num

func (*TaobaoitemupdatelistingtmallAPIRequest) SetNumIid added in v1.3.1

func (r *TaobaoitemupdatelistingtmallAPIRequest) SetNumIid(_numIid int64) error

SetNumIid is NumIid Setter 商品数字ID,该参数必须

type TaobaoitemupdatelistingtmallAPIResponse added in v1.3.1

type TaobaoitemupdatelistingtmallAPIResponse struct {
	model.CommonResponse
	TaobaoitemupdatelistingtmallAPIResponseModel
}

TaobaoitemupdatelistingtmallAPIResponse taobao.item.update.listing天猫分流 API返回值 taobao.item.update.listing.tmall

* 单个商品上架<br/>* 输入的num_iid必须属于当前会话用户

type TaobaoitemupdatelistingtmallAPIResponseModel added in v1.3.1

type TaobaoitemupdatelistingtmallAPIResponseModel struct {
	XMLName xml.Name `xml:"item_update_listing_tmall_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 上架后返回的商品信息:返回的结果就是:num_iid和modified
	Item *Item `json:"item,omitempty" xml:"item,omitempty"`
}

TaobaoitemupdatelistingtmallAPIResponseModel is taobao.item.update.listing天猫分流 成功返回结果

type TaobaoskuscustomgetAPIRequest added in v1.3.1

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

TaobaoskuscustomgetAPIRequest 根据外部ID取商品SKU API请求 taobao.skus.custom.get

跟据卖家设定的Sku的外部id获取商品,如果一个outer_id对应多个Sku会返回所有符合条件的sku <br/>这个Sku所属卖家从传入的session中获取,需要session绑定(注:iid标签里是num_iid的值,可以用作num_iid使用)

func NewTaobaoskuscustomgetRequest added in v1.3.1

func NewTaobaoskuscustomgetRequest() *TaobaoskuscustomgetAPIRequest

NewTaobaoskuscustomgetRequest 初始化TaobaoskuscustomgetAPIRequest对象

func (TaobaoskuscustomgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoskuscustomgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoskuscustomgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoskuscustomgetAPIRequest) GetFields added in v1.3.1

func (r TaobaoskuscustomgetAPIRequest) GetFields() string

GetFields Fields Getter

func (TaobaoskuscustomgetAPIRequest) GetOuterId added in v1.3.1

func (r TaobaoskuscustomgetAPIRequest) GetOuterId() string

GetOuterId OuterId Getter

func (TaobaoskuscustomgetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoskuscustomgetAPIRequest) GetRawParams() model.Params

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

func (*TaobaoskuscustomgetAPIRequest) SetFields added in v1.3.1

func (r *TaobaoskuscustomgetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 需返回的字段列表。可选值:Sku结构体中的所有字段;字段之间用“,”隔开

func (*TaobaoskuscustomgetAPIRequest) SetOuterId added in v1.3.1

func (r *TaobaoskuscustomgetAPIRequest) SetOuterId(_outerId string) error

SetOuterId is OuterId Setter Sku的外部商家ID

type TaobaoskuscustomgetAPIResponse added in v1.3.1

type TaobaoskuscustomgetAPIResponse struct {
	model.CommonResponse
	TaobaoskuscustomgetAPIResponseModel
}

TaobaoskuscustomgetAPIResponse 根据外部ID取商品SKU API返回值 taobao.skus.custom.get

跟据卖家设定的Sku的外部id获取商品,如果一个outer_id对应多个Sku会返回所有符合条件的sku <br/>这个Sku所属卖家从传入的session中获取,需要session绑定(注:iid标签里是num_iid的值,可以用作num_iid使用)

type TaobaoskuscustomgetAPIResponseModel added in v1.3.1

type TaobaoskuscustomgetAPIResponseModel struct {
	XMLName xml.Name `xml:"skus_custom_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// Sku对象,具体字段以fields决定
	Skus []Sku `json:"skus,omitempty" xml:"skus>sku,omitempty"`
}

TaobaoskuscustomgetAPIResponseModel is 根据外部ID取商品SKU 成功返回结果

type TaobaoskusquantityupdateAPIRequest added in v1.3.1

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

TaobaoskusquantityupdateAPIRequest SKU库存修改 API请求 taobao.skus.quantity.update

提供按照全量/增量的方式批量修改SKU库存的功能

func NewTaobaoskusquantityupdateRequest added in v1.3.1

func NewTaobaoskusquantityupdateRequest() *TaobaoskusquantityupdateAPIRequest

NewTaobaoskusquantityupdateRequest 初始化TaobaoskusquantityupdateAPIRequest对象

func (TaobaoskusquantityupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoskusquantityupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoskusquantityupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoskusquantityupdateAPIRequest) GetNumIid added in v1.3.1

GetNumIid NumIid Getter

func (TaobaoskusquantityupdateAPIRequest) GetOuteridQuantities added in v1.3.1

func (r TaobaoskusquantityupdateAPIRequest) GetOuteridQuantities() string

GetOuteridQuantities OuteridQuantities Getter

func (TaobaoskusquantityupdateAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoskusquantityupdateAPIRequest) GetSkuidQuantities added in v1.3.1

func (r TaobaoskusquantityupdateAPIRequest) GetSkuidQuantities() string

GetSkuidQuantities SkuidQuantities Getter

func (TaobaoskusquantityupdateAPIRequest) GetType added in v1.3.1

GetType Type Getter

func (*TaobaoskusquantityupdateAPIRequest) SetNumIid added in v1.3.1

func (r *TaobaoskusquantityupdateAPIRequest) SetNumIid(_numIid int64) error

SetNumIid is NumIid Setter 商品数字ID,必填参数

func (*TaobaoskusquantityupdateAPIRequest) SetOuteridQuantities added in v1.3.1

func (r *TaobaoskusquantityupdateAPIRequest) SetOuteridQuantities(_outeridQuantities string) error

SetOuteridQuantities is OuteridQuantities Setter 特殊可选,skuIdQuantities为空的时候用该字段通过outerId来指定sku和其库存修改值。格式为outerId:库存修改值;outerId:库存修改值。当skuIdQuantities不为空的时候该字段失效。当一个outerId对应多个sku时,所有匹配到的sku都会被修改库存。最多支持20个SKU同时修改。

func (*TaobaoskusquantityupdateAPIRequest) SetSkuidQuantities added in v1.3.1

func (r *TaobaoskusquantityupdateAPIRequest) SetSkuidQuantities(_skuidQuantities string) error

SetSkuidQuantities is SkuidQuantities Setter sku库存批量修改入参,用于指定一批sku和每个sku的库存修改值,特殊可填。格式为skuId:库存修改值;skuId:库存修改值。最多支持20个SKU同时修改。

func (*TaobaoskusquantityupdateAPIRequest) SetType added in v1.3.1

SetType is Type Setter 库存更新方式,可选。1为全量更新,2为增量更新。如果不填,默认为全量更新。当选择全量更新时,如果库存更新值传入的是负数,会出错并返回错误码;当选择增量更新时,如果库存更新值为负数且绝对值大于当前库存,则sku库存会设置为0.

type TaobaoskusquantityupdateAPIResponse added in v1.3.1

type TaobaoskusquantityupdateAPIResponse struct {
	model.CommonResponse
	TaobaoskusquantityupdateAPIResponseModel
}

TaobaoskusquantityupdateAPIResponse SKU库存修改 API返回值 taobao.skus.quantity.update

提供按照全量/增量的方式批量修改SKU库存的功能

type TaobaoskusquantityupdateAPIResponseModel added in v1.3.1

type TaobaoskusquantityupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"skus_quantity_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// iid、numIid、num和modified,skus中每个sku的skuId、quantity和modified
	Item *Item `json:"item,omitempty" xml:"item,omitempty"`
}

TaobaoskusquantityupdateAPIResponseModel is SKU库存修改 成功返回结果

type TmallitemaddsimpleschemagetAPIRequest added in v1.3.1

type TmallitemaddsimpleschemagetAPIRequest struct {
	model.Params
}

TmallitemaddsimpleschemagetAPIRequest 天猫发布商品规则获取 API请求 tmall.item.add.simpleschema.get

通过商家信息获取商品发布字段和规则。

func NewTmallitemaddsimpleschemagetRequest added in v1.3.1

func NewTmallitemaddsimpleschemagetRequest() *TmallitemaddsimpleschemagetAPIRequest

NewTmallitemaddsimpleschemagetRequest 初始化TmallitemaddsimpleschemagetAPIRequest对象

func (TmallitemaddsimpleschemagetAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallitemaddsimpleschemagetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallitemaddsimpleschemagetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallitemaddsimpleschemagetAPIRequest) GetRawParams added in v1.3.1

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

type TmallitemaddsimpleschemagetAPIResponse added in v1.3.1

type TmallitemaddsimpleschemagetAPIResponse struct {
	model.CommonResponse
	TmallitemaddsimpleschemagetAPIResponseModel
}

TmallitemaddsimpleschemagetAPIResponse 天猫发布商品规则获取 API返回值 tmall.item.add.simpleschema.get

通过商家信息获取商品发布字段和规则。

type TmallitemaddsimpleschemagetAPIResponseModel added in v1.3.1

type TmallitemaddsimpleschemagetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_add_simpleschema_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回发布商品的规则文档
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

TmallitemaddsimpleschemagetAPIResponseModel is 天猫发布商品规则获取 成功返回结果

type TmallitemcalculatehscodegetAPIRequest added in v1.3.1

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

TmallitemcalculatehscodegetAPIRequest 算法获取hscode API请求 tmall.item.calculate.hscode.get

算法获取hscode

func NewTmallitemcalculatehscodegetRequest added in v1.3.1

func NewTmallitemcalculatehscodegetRequest() *TmallitemcalculatehscodegetAPIRequest

NewTmallitemcalculatehscodegetRequest 初始化TmallitemcalculatehscodegetAPIRequest对象

func (TmallitemcalculatehscodegetAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallitemcalculatehscodegetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallitemcalculatehscodegetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallitemcalculatehscodegetAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (TmallitemcalculatehscodegetAPIRequest) GetRawParams added in v1.3.1

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

func (*TmallitemcalculatehscodegetAPIRequest) SetItemId added in v1.3.1

func (r *TmallitemcalculatehscodegetAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品id

type TmallitemcalculatehscodegetAPIResponse added in v1.3.1

type TmallitemcalculatehscodegetAPIResponse struct {
	model.CommonResponse
	TmallitemcalculatehscodegetAPIResponseModel
}

TmallitemcalculatehscodegetAPIResponse 算法获取hscode API返回值 tmall.item.calculate.hscode.get

算法获取hscode

type TmallitemcalculatehscodegetAPIResponseModel added in v1.3.1

type TmallitemcalculatehscodegetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_calculate_hscode_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 算法返回预测的hscode数据
	Results []string `json:"results,omitempty" xml:"results>string,omitempty"`
}

TmallitemcalculatehscodegetAPIResponseModel is 算法获取hscode 成功返回结果

type TmallitemcombinegetAPIRequest added in v1.3.1

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

TmallitemcombinegetAPIRequest 组合商品获取接口 API请求 tmall.item.combine.get

查询组合商品的SKU信息

func NewTmallitemcombinegetRequest added in v1.3.1

func NewTmallitemcombinegetRequest() *TmallitemcombinegetAPIRequest

NewTmallitemcombinegetRequest 初始化TmallitemcombinegetAPIRequest对象

func (TmallitemcombinegetAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallitemcombinegetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallitemcombinegetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallitemcombinegetAPIRequest) GetItemId added in v1.3.1

func (r TmallitemcombinegetAPIRequest) GetItemId() int64

GetItemId ItemId Getter

func (TmallitemcombinegetAPIRequest) GetRawParams added in v1.3.1

func (r TmallitemcombinegetAPIRequest) GetRawParams() model.Params

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

func (*TmallitemcombinegetAPIRequest) SetItemId added in v1.3.1

func (r *TmallitemcombinegetAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 组合商品ID

type TmallitemcombinegetAPIResponse added in v1.3.1

type TmallitemcombinegetAPIResponse struct {
	model.CommonResponse
	TmallitemcombinegetAPIResponseModel
}

TmallitemcombinegetAPIResponse 组合商品获取接口 API返回值 tmall.item.combine.get

查询组合商品的SKU信息

type TmallitemcombinegetAPIResponseModel added in v1.3.1

type TmallitemcombinegetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_combine_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// results
	Results []string `json:"results,omitempty" xml:"results>string,omitempty"`
}

TmallitemcombinegetAPIResponseModel is 组合商品获取接口 成功返回结果

type TmallitemdescmodulesgetAPIRequest added in v1.3.1

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

TmallitemdescmodulesgetAPIRequest 商品描述模块信息获取 API请求 tmall.item.desc.modules.get

商品描述模块信息获取,包括运营设定的类目级别的模块信息以及用户自定义模块数量约束。

func NewTmallitemdescmodulesgetRequest added in v1.3.1

func NewTmallitemdescmodulesgetRequest() *TmallitemdescmodulesgetAPIRequest

NewTmallitemdescmodulesgetRequest 初始化TmallitemdescmodulesgetAPIRequest对象

func (TmallitemdescmodulesgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallitemdescmodulesgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallitemdescmodulesgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallitemdescmodulesgetAPIRequest) GetCatId added in v1.3.1

GetCatId CatId Getter

func (TmallitemdescmodulesgetAPIRequest) GetRawParams added in v1.3.1

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

func (TmallitemdescmodulesgetAPIRequest) GetUsrId added in v1.3.1

GetUsrId UsrId Getter

func (*TmallitemdescmodulesgetAPIRequest) SetCatId added in v1.3.1

func (r *TmallitemdescmodulesgetAPIRequest) SetCatId(_catId int64) error

SetCatId is CatId Setter 淘宝后台发布商品的叶子类目id,可通过taobao.itemcats.get查到。api 访问地址http://api.taobao.com/apidoc/api.htm?spm=0.0.0.0.CFhhk4&path=cid:3-apiId:122

func (*TmallitemdescmodulesgetAPIRequest) SetUsrId added in v1.3.1

func (r *TmallitemdescmodulesgetAPIRequest) SetUsrId(_usrId string) error

SetUsrId is UsrId Setter 商家主帐号id

type TmallitemdescmodulesgetAPIResponse added in v1.3.1

type TmallitemdescmodulesgetAPIResponse struct {
	model.CommonResponse
	TmallitemdescmodulesgetAPIResponseModel
}

TmallitemdescmodulesgetAPIResponse 商品描述模块信息获取 API返回值 tmall.item.desc.modules.get

商品描述模块信息获取,包括运营设定的类目级别的模块信息以及用户自定义模块数量约束。

type TmallitemdescmodulesgetAPIResponseModel added in v1.3.1

type TmallitemdescmodulesgetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_desc_modules_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回描述模块信息
	ModularDescInfo *ModularDescInfo `json:"modular_desc_info,omitempty" xml:"modular_desc_info,omitempty"`
}

TmallitemdescmodulesgetAPIResponseModel is 商品描述模块信息获取 成功返回结果

type TmallitemhscodeauditresultsqueryAPIRequest added in v1.3.1

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

TmallitemhscodeauditresultsqueryAPIRequest 商品hscode信息审核状态查询接口 API请求 tmall.item.hscode.audit.results.query

通过此接口查询天猫跨境商品的hscode信息审核状态,卖家可以参考返回结果判断是否需要调整商品hscode相关信息。

func NewTmallitemhscodeauditresultsqueryRequest added in v1.3.1

func NewTmallitemhscodeauditresultsqueryRequest() *TmallitemhscodeauditresultsqueryAPIRequest

NewTmallitemhscodeauditresultsqueryRequest 初始化TmallitemhscodeauditresultsqueryAPIRequest对象

func (TmallitemhscodeauditresultsqueryAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallitemhscodeauditresultsqueryAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallitemhscodeauditresultsqueryAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (TmallitemhscodeauditresultsqueryAPIRequest) GetRawParams added in v1.3.1

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

func (*TmallitemhscodeauditresultsqueryAPIRequest) SetItemId added in v1.3.1

SetItemId is ItemId Setter 商品ID

type TmallitemhscodeauditresultsqueryAPIResponse added in v1.3.1

type TmallitemhscodeauditresultsqueryAPIResponse struct {
	model.CommonResponse
	TmallitemhscodeauditresultsqueryAPIResponseModel
}

TmallitemhscodeauditresultsqueryAPIResponse 商品hscode信息审核状态查询接口 API返回值 tmall.item.hscode.audit.results.query

通过此接口查询天猫跨境商品的hscode信息审核状态,卖家可以参考返回结果判断是否需要调整商品hscode相关信息。

type TmallitemhscodeauditresultsqueryAPIResponseModel added in v1.3.1

type TmallitemhscodeauditresultsqueryAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_hscode_audit_results_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品或sku的hscode信息审核状态。
	ResultList []HscodeAuditInfo `json:"result_list,omitempty" xml:"result_list>hscode_audit_info,omitempty"`
}

TmallitemhscodeauditresultsqueryAPIResponseModel is 商品hscode信息审核状态查询接口 成功返回结果

type TmallitemhscodedetailgetAPIRequest added in v1.3.1

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

TmallitemhscodedetailgetAPIRequest 通过hscode获取计量单位 API请求 tmall.item.hscode.detail.get

通过hscode获取计量单位和销售单位

func NewTmallitemhscodedetailgetRequest added in v1.3.1

func NewTmallitemhscodedetailgetRequest() *TmallitemhscodedetailgetAPIRequest

NewTmallitemhscodedetailgetRequest 初始化TmallitemhscodedetailgetAPIRequest对象

func (TmallitemhscodedetailgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallitemhscodedetailgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallitemhscodedetailgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallitemhscodedetailgetAPIRequest) GetHscode added in v1.3.1

GetHscode Hscode Getter

func (TmallitemhscodedetailgetAPIRequest) GetRawParams added in v1.3.1

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

func (*TmallitemhscodedetailgetAPIRequest) SetHscode added in v1.3.1

func (r *TmallitemhscodedetailgetAPIRequest) SetHscode(_hscode string) error

SetHscode is Hscode Setter hscode

type TmallitemhscodedetailgetAPIResponse added in v1.3.1

type TmallitemhscodedetailgetAPIResponse struct {
	model.CommonResponse
	TmallitemhscodedetailgetAPIResponseModel
}

TmallitemhscodedetailgetAPIResponse 通过hscode获取计量单位 API返回值 tmall.item.hscode.detail.get

通过hscode获取计量单位和销售单位

type TmallitemhscodedetailgetAPIResponseModel added in v1.3.1

type TmallitemhscodedetailgetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_hscode_detail_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回的计量单位和销售单位
	Results []string `json:"results,omitempty" xml:"results>string,omitempty"`
}

TmallitemhscodedetailgetAPIResponseModel is 通过hscode获取计量单位 成功返回结果

type TmallitemincrementupdateschemagetAPIRequest added in v1.3.1

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

TmallitemincrementupdateschemagetAPIRequest 天猫增量更新商品规则获取 API请求 tmall.item.increment.update.schema.get

增量方式修改天猫商品的规则获取的API。<br/>1.接口返回支持增量修改的字段以及相应字段的规则。<br/>2.如果入参xml_data指定了更新的字段,则只返回指定字段的规则(ISV如果功能性很强,如明确更新Title,请拼装好次字段以提升API整体性能);<br/>3.ISV初次接入,开发阶段,此字段不填可以看到所有支持增量的字段;但是如果上线功能明确,请尽量遵守第2条<br/>4.如果ISV对字段规则非常清晰,可以直接组装入参数据提交到tmall.item.schema.increment.update进行数据更新。但是最好不要写死,比如每天还是有对此接口功能的一次比对。<br/>---(感谢爱慕旗舰店提供API命名)

func NewTmallitemincrementupdateschemagetRequest added in v1.3.1

func NewTmallitemincrementupdateschemagetRequest() *TmallitemincrementupdateschemagetAPIRequest

NewTmallitemincrementupdateschemagetRequest 初始化TmallitemincrementupdateschemagetAPIRequest对象

func (TmallitemincrementupdateschemagetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallitemincrementupdateschemagetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TmallitemincrementupdateschemagetAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (TmallitemincrementupdateschemagetAPIRequest) GetRawParams added in v1.3.1

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

func (TmallitemincrementupdateschemagetAPIRequest) GetXmlData added in v1.3.1

GetXmlData XmlData Getter

func (*TmallitemincrementupdateschemagetAPIRequest) SetItemId added in v1.3.1

SetItemId is ItemId Setter 需要编辑的商品ID

func (*TmallitemincrementupdateschemagetAPIRequest) SetXmlData added in v1.3.1

SetXmlData is XmlData Setter 如果入参xml_data指定了更新的字段,则只返回指定字段的规则(ISV如果功能性很强,如明确更新Title,请拼装好此字段以提升API整体性能)

type TmallitemincrementupdateschemagetAPIResponse added in v1.3.1

type TmallitemincrementupdateschemagetAPIResponse struct {
	model.CommonResponse
	TmallitemincrementupdateschemagetAPIResponseModel
}

TmallitemincrementupdateschemagetAPIResponse 天猫增量更新商品规则获取 API返回值 tmall.item.increment.update.schema.get

增量方式修改天猫商品的规则获取的API。<br/>1.接口返回支持增量修改的字段以及相应字段的规则。<br/>2.如果入参xml_data指定了更新的字段,则只返回指定字段的规则(ISV如果功能性很强,如明确更新Title,请拼装好次字段以提升API整体性能);<br/>3.ISV初次接入,开发阶段,此字段不填可以看到所有支持增量的字段;但是如果上线功能明确,请尽量遵守第2条<br/>4.如果ISV对字段规则非常清晰,可以直接组装入参数据提交到tmall.item.schema.increment.update进行数据更新。但是最好不要写死,比如每天还是有对此接口功能的一次比对。<br/>---(感谢爱慕旗舰店提供API命名)

type TmallitemincrementupdateschemagetAPIResponseModel added in v1.3.1

type TmallitemincrementupdateschemagetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_increment_update_schema_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回增量更新商品的规则文档
	UpdateItemResult string `json:"update_item_result,omitempty" xml:"update_item_result,omitempty"`
}

TmallitemincrementupdateschemagetAPIResponseModel is 天猫增量更新商品规则获取 成功返回结果

type TmallitemouteridupdateAPIRequest added in v1.3.1

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

TmallitemouteridupdateAPIRequest 天猫商品/SKU商家编码更新接口 API请求 tmall.item.outerid.update

天猫商品/SKU商家编码更新接口;支持商品、SKU的商家编码同时更新;支持同一商品下的SKU批量更新。(感谢sample小雨提供接口命名)

func NewTmallitemouteridupdateRequest added in v1.3.1

func NewTmallitemouteridupdateRequest() *TmallitemouteridupdateAPIRequest

NewTmallitemouteridupdateRequest 初始化TmallitemouteridupdateAPIRequest对象

func (TmallitemouteridupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallitemouteridupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallitemouteridupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallitemouteridupdateAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (TmallitemouteridupdateAPIRequest) GetOuterId added in v1.3.1

GetOuterId OuterId Getter

func (TmallitemouteridupdateAPIRequest) GetRawParams added in v1.3.1

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

func (TmallitemouteridupdateAPIRequest) GetSkuOuters added in v1.3.1

GetSkuOuters SkuOuters Getter

func (*TmallitemouteridupdateAPIRequest) SetItemId added in v1.3.1

func (r *TmallitemouteridupdateAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品ID

func (*TmallitemouteridupdateAPIRequest) SetOuterId added in v1.3.1

func (r *TmallitemouteridupdateAPIRequest) SetOuterId(_outerId string) error

SetOuterId is OuterId Setter 商品维度商家编码,如果不修改可以不传;清空请设置空串

func (*TmallitemouteridupdateAPIRequest) SetSkuOuters added in v1.3.1

func (r *TmallitemouteridupdateAPIRequest) SetSkuOuters(_skuOuters []UpdateSkuOuterId) error

SetSkuOuters is SkuOuters Setter 商品SKU更新OuterId时候用的数据

type TmallitemouteridupdateAPIResponse added in v1.3.1

type TmallitemouteridupdateAPIResponse struct {
	model.CommonResponse
	TmallitemouteridupdateAPIResponseModel
}

TmallitemouteridupdateAPIResponse 天猫商品/SKU商家编码更新接口 API返回值 tmall.item.outerid.update

天猫商品/SKU商家编码更新接口;支持商品、SKU的商家编码同时更新;支持同一商品下的SKU批量更新。(感谢sample小雨提供接口命名)

type TmallitemouteridupdateAPIResponseModel added in v1.3.1

type TmallitemouteridupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_outerid_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商家编码更新结果
	OuteridUpdateResult string `json:"outerid_update_result,omitempty" xml:"outerid_update_result,omitempty"`
}

TmallitemouteridupdateAPIResponseModel is 天猫商品/SKU商家编码更新接口 成功返回结果

type TmallitempriceupdateAPIRequest added in v1.3.1

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

TmallitempriceupdateAPIRequest 天猫商品/SKU价格更新接口 API请求 tmall.item.price.update

天猫商品/SKU价格更新接口,支持商品、SKU价格同时更新,支持同一商品下的SKU批量更新。

func NewTmallitempriceupdateRequest added in v1.3.1

func NewTmallitempriceupdateRequest() *TmallitempriceupdateAPIRequest

NewTmallitempriceupdateRequest 初始化TmallitempriceupdateAPIRequest对象

func (TmallitempriceupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallitempriceupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallitempriceupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallitempriceupdateAPIRequest) GetItemId added in v1.3.1

func (r TmallitempriceupdateAPIRequest) GetItemId() int64

GetItemId ItemId Getter

func (TmallitempriceupdateAPIRequest) GetItemPrice added in v1.3.1

func (r TmallitempriceupdateAPIRequest) GetItemPrice() float64

GetItemPrice ItemPrice Getter

func (TmallitempriceupdateAPIRequest) GetOptions added in v1.3.1

GetOptions Options Getter

func (TmallitempriceupdateAPIRequest) GetRawParams added in v1.3.1

func (r TmallitempriceupdateAPIRequest) GetRawParams() model.Params

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

func (TmallitempriceupdateAPIRequest) GetSkuPrices added in v1.3.1

GetSkuPrices SkuPrices Getter

func (*TmallitempriceupdateAPIRequest) SetItemId added in v1.3.1

func (r *TmallitempriceupdateAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品ID

func (*TmallitempriceupdateAPIRequest) SetItemPrice added in v1.3.1

func (r *TmallitempriceupdateAPIRequest) SetItemPrice(_itemPrice float64) error

SetItemPrice is ItemPrice Setter 被更新商品价格

func (*TmallitempriceupdateAPIRequest) SetOptions added in v1.3.1

SetOptions is Options Setter 商品价格更新时候的可选参数

func (*TmallitempriceupdateAPIRequest) SetSkuPrices added in v1.3.1

func (r *TmallitempriceupdateAPIRequest) SetSkuPrices(_skuPrices []UpdateSkuPrice) error

SetSkuPrices is SkuPrices Setter 更新SKU价格时候的SKU价格对象;如果没有SKU或者不更新SKU价格,可以不填;查找SKU目前支持ID,属性串和商家编码三种模式,建议选用一种最合适的,切勿滥用,一次调用中如果混合使用,更新结果不可预期!

type TmallitempriceupdateAPIResponse added in v1.3.1

type TmallitempriceupdateAPIResponse struct {
	model.CommonResponse
	TmallitempriceupdateAPIResponseModel
}

TmallitempriceupdateAPIResponse 天猫商品/SKU价格更新接口 API返回值 tmall.item.price.update

天猫商品/SKU价格更新接口,支持商品、SKU价格同时更新,支持同一商品下的SKU批量更新。

type TmallitempriceupdateAPIResponseModel added in v1.3.1

type TmallitempriceupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_price_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 价格更新结果
	PriceUpdateResult string `json:"price_update_result,omitempty" xml:"price_update_result,omitempty"`
}

TmallitempriceupdateAPIResponseModel is 天猫商品/SKU价格更新接口 成功返回结果

type TmallitemquantityupdateAPIRequest added in v1.3.1

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

TmallitemquantityupdateAPIRequest 天猫商品/SKU库存更新接口 API请求 tmall.item.quantity.update

天猫商品/SKU库存更新接口;支持商品库存更新;支持同一商品下的SKU批量更新。

func NewTmallitemquantityupdateRequest added in v1.3.1

func NewTmallitemquantityupdateRequest() *TmallitemquantityupdateAPIRequest

NewTmallitemquantityupdateRequest 初始化TmallitemquantityupdateAPIRequest对象

func (TmallitemquantityupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallitemquantityupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallitemquantityupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallitemquantityupdateAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (TmallitemquantityupdateAPIRequest) GetItemQuantity added in v1.3.1

func (r TmallitemquantityupdateAPIRequest) GetItemQuantity() int64

GetItemQuantity ItemQuantity Getter

func (TmallitemquantityupdateAPIRequest) GetOptions added in v1.3.1

GetOptions Options Getter

func (TmallitemquantityupdateAPIRequest) GetRawParams added in v1.3.1

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

func (TmallitemquantityupdateAPIRequest) GetSkuQuantities added in v1.3.1

GetSkuQuantities SkuQuantities Getter

func (*TmallitemquantityupdateAPIRequest) SetItemId added in v1.3.1

func (r *TmallitemquantityupdateAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品id

func (*TmallitemquantityupdateAPIRequest) SetItemQuantity added in v1.3.1

func (r *TmallitemquantityupdateAPIRequest) SetItemQuantity(_itemQuantity int64) error

SetItemQuantity is ItemQuantity Setter 商品库存数;增量编辑方式支持正数、负数。(无SKU商品使用这个字段)

func (*TmallitemquantityupdateAPIRequest) SetOptions added in v1.3.1

SetOptions is Options Setter 商品库存更新时候的可选参数

func (*TmallitemquantityupdateAPIRequest) SetSkuQuantities added in v1.3.1

func (r *TmallitemquantityupdateAPIRequest) SetSkuQuantities(_skuQuantities []UpdateSkuQuantity) error

SetSkuQuantities is SkuQuantities Setter 更新SKU库存时候的SKU库存对象;如果没有SKU或者不更新SKU库存,可以不填;查找SKU目前支持ID,属性串和商家编码三种模式,建议选用一种最合适的,切勿滥用,一次调用中如果混合使用,更新结果不可预期!

type TmallitemquantityupdateAPIResponse added in v1.3.1

type TmallitemquantityupdateAPIResponse struct {
	model.CommonResponse
	TmallitemquantityupdateAPIResponseModel
}

TmallitemquantityupdateAPIResponse 天猫商品/SKU库存更新接口 API返回值 tmall.item.quantity.update

天猫商品/SKU库存更新接口;支持商品库存更新;支持同一商品下的SKU批量更新。

type TmallitemquantityupdateAPIResponseModel added in v1.3.1

type TmallitemquantityupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_quantity_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 库存更新结果,商品id
	QuantityUpdateResult string `json:"quantity_update_result,omitempty" xml:"quantity_update_result,omitempty"`
}

TmallitemquantityupdateAPIResponseModel is 天猫商品/SKU库存更新接口 成功返回结果

type TmallitemschemaaddAPIRequest added in v1.3.1

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

TmallitemschemaaddAPIRequest 天猫根据规则发布商品 API请求 tmall.item.schema.add

天猫TopSchema发布商品。

func NewTmallitemschemaaddRequest added in v1.3.1

func NewTmallitemschemaaddRequest() *TmallitemschemaaddAPIRequest

NewTmallitemschemaaddRequest 初始化TmallitemschemaaddAPIRequest对象

func (TmallitemschemaaddAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallitemschemaaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallitemschemaaddAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallitemschemaaddAPIRequest) GetCategoryId added in v1.3.1

func (r TmallitemschemaaddAPIRequest) GetCategoryId() int64

GetCategoryId CategoryId Getter

func (TmallitemschemaaddAPIRequest) GetProductId added in v1.3.1

func (r TmallitemschemaaddAPIRequest) GetProductId() int64

GetProductId ProductId Getter

func (TmallitemschemaaddAPIRequest) GetRawParams added in v1.3.1

func (r TmallitemschemaaddAPIRequest) GetRawParams() model.Params

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

func (TmallitemschemaaddAPIRequest) GetXmlData added in v1.3.1

func (r TmallitemschemaaddAPIRequest) GetXmlData() string

GetXmlData XmlData Getter

func (*TmallitemschemaaddAPIRequest) SetCategoryId added in v1.3.1

func (r *TmallitemschemaaddAPIRequest) SetCategoryId(_categoryId int64) error

SetCategoryId is CategoryId Setter 商品发布的目标类目,必须是叶子类目

func (*TmallitemschemaaddAPIRequest) SetProductId added in v1.3.1

func (r *TmallitemschemaaddAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 发布商品的productId,如果tmall.product.match.schema.get获取到得字段为空,这个参数传入0,否则需要通过tmall.product.schema.match查询到得可用productId

func (*TmallitemschemaaddAPIRequest) SetXmlData added in v1.3.1

func (r *TmallitemschemaaddAPIRequest) SetXmlData(_xmlData string) error

SetXmlData is XmlData Setter 根据tmall.item.add.schema.get生成的商品发布规则入参数据

type TmallitemschemaaddAPIResponse added in v1.3.1

type TmallitemschemaaddAPIResponse struct {
	model.CommonResponse
	TmallitemschemaaddAPIResponseModel
}

TmallitemschemaaddAPIResponse 天猫根据规则发布商品 API返回值 tmall.item.schema.add

天猫TopSchema发布商品。

type TmallitemschemaaddAPIResponseModel added in v1.3.1

type TmallitemschemaaddAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_schema_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回商品发布结果
	AddItemResult string `json:"add_item_result,omitempty" xml:"add_item_result,omitempty"`
	// 发布商品操作成功时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
}

TmallitemschemaaddAPIResponseModel is 天猫根据规则发布商品 成功返回结果

type TmallitemschemaincrementupdateAPIRequest added in v1.3.1

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

TmallitemschemaincrementupdateAPIRequest 天猫根据规则增量更新商品 API请求 tmall.item.schema.increment.update

增量方式修改天猫商品的API。只要是此接口支持增量修改的字段,可以同时更新。(感谢爱慕旗舰店提供API命名)

func NewTmallitemschemaincrementupdateRequest added in v1.3.1

func NewTmallitemschemaincrementupdateRequest() *TmallitemschemaincrementupdateAPIRequest

NewTmallitemschemaincrementupdateRequest 初始化TmallitemschemaincrementupdateAPIRequest对象

func (TmallitemschemaincrementupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallitemschemaincrementupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallitemschemaincrementupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallitemschemaincrementupdateAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (TmallitemschemaincrementupdateAPIRequest) GetRawParams added in v1.3.1

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

func (TmallitemschemaincrementupdateAPIRequest) GetXmlData added in v1.3.1

GetXmlData XmlData Getter

func (*TmallitemschemaincrementupdateAPIRequest) SetItemId added in v1.3.1

SetItemId is ItemId Setter 需要编辑的商品ID

func (*TmallitemschemaincrementupdateAPIRequest) SetXmlData added in v1.3.1

func (r *TmallitemschemaincrementupdateAPIRequest) SetXmlData(_xmlData string) error

SetXmlData is XmlData Setter 根据tmall.item.increment.update.schema.get生成的商品增量编辑规则入参数据。需要更新的字段,一定要在入参的XML重点update_fields字段中明确指明

type TmallitemschemaincrementupdateAPIResponse added in v1.3.1

type TmallitemschemaincrementupdateAPIResponse struct {
	model.CommonResponse
	TmallitemschemaincrementupdateAPIResponseModel
}

TmallitemschemaincrementupdateAPIResponse 天猫根据规则增量更新商品 API返回值 tmall.item.schema.increment.update

增量方式修改天猫商品的API。只要是此接口支持增量修改的字段,可以同时更新。(感谢爱慕旗舰店提供API命名)

type TmallitemschemaincrementupdateAPIResponseModel added in v1.3.1

type TmallitemschemaincrementupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_schema_increment_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回商品发布结果
	UpdateItemResult string `json:"update_item_result,omitempty" xml:"update_item_result,omitempty"`
	// 商品更新操作成功时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
}

TmallitemschemaincrementupdateAPIResponseModel is 天猫根据规则增量更新商品 成功返回结果

type TmallitemschemaupdateAPIRequest added in v1.3.1

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

TmallitemschemaupdateAPIRequest 天猫根据规则编辑商品 API请求 tmall.item.schema.update

天猫根据规则编辑商品

func NewTmallitemschemaupdateRequest added in v1.3.1

func NewTmallitemschemaupdateRequest() *TmallitemschemaupdateAPIRequest

NewTmallitemschemaupdateRequest 初始化TmallitemschemaupdateAPIRequest对象

func (TmallitemschemaupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallitemschemaupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallitemschemaupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallitemschemaupdateAPIRequest) GetCategoryId added in v1.3.1

func (r TmallitemschemaupdateAPIRequest) GetCategoryId() int64

GetCategoryId CategoryId Getter

func (TmallitemschemaupdateAPIRequest) GetItemId added in v1.3.1

func (r TmallitemschemaupdateAPIRequest) GetItemId() int64

GetItemId ItemId Getter

func (TmallitemschemaupdateAPIRequest) GetProductId added in v1.3.1

func (r TmallitemschemaupdateAPIRequest) GetProductId() int64

GetProductId ProductId Getter

func (TmallitemschemaupdateAPIRequest) GetRawParams added in v1.3.1

func (r TmallitemschemaupdateAPIRequest) GetRawParams() model.Params

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

func (TmallitemschemaupdateAPIRequest) GetXmlData added in v1.3.1

func (r TmallitemschemaupdateAPIRequest) GetXmlData() string

GetXmlData XmlData Getter

func (*TmallitemschemaupdateAPIRequest) SetCategoryId added in v1.3.1

func (r *TmallitemschemaupdateAPIRequest) SetCategoryId(_categoryId int64) error

SetCategoryId is CategoryId Setter 商品发布的目标类目,必须是叶子类目。如果没有切换类目需求不需要填写

func (*TmallitemschemaupdateAPIRequest) SetItemId added in v1.3.1

func (r *TmallitemschemaupdateAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 需要编辑的商品ID

func (*TmallitemschemaupdateAPIRequest) SetProductId added in v1.3.1

func (r *TmallitemschemaupdateAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 商品发布的目标product_id。如果没有切换类目或者切换产品的需求,参数不用填写

func (*TmallitemschemaupdateAPIRequest) SetXmlData added in v1.3.1

func (r *TmallitemschemaupdateAPIRequest) SetXmlData(_xmlData string) error

SetXmlData is XmlData Setter 根据tmall.item.update.schema.get生成的商品编辑规则入参数据

type TmallitemschemaupdateAPIResponse added in v1.3.1

type TmallitemschemaupdateAPIResponse struct {
	model.CommonResponse
	TmallitemschemaupdateAPIResponseModel
}

TmallitemschemaupdateAPIResponse 天猫根据规则编辑商品 API返回值 tmall.item.schema.update

天猫根据规则编辑商品

type TmallitemschemaupdateAPIResponseModel added in v1.3.1

type TmallitemschemaupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_schema_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回商品发布结果
	UpdateItemResult string `json:"update_item_result,omitempty" xml:"update_item_result,omitempty"`
	// 商品更新操作成功时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
}

TmallitemschemaupdateAPIResponseModel is 天猫根据规则编辑商品 成功返回结果

type TmallitemshiptimeupdateAPIRequest added in v1.3.1

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

TmallitemshiptimeupdateAPIRequest 更新商品发货时间 API请求 tmall.item.shiptime.update

增加更新删除商品/SKU发货时间(支持同一商品下的SKU同时批量更新) 1.

{
    "shipTimeType": 2,  ----相对发货时间(值为1则为绝对发货时间)
    "updateType": 0 ---更新SKU
},

按照指定SKU更新指定SKU的发货时间,如果原本是商品级发货时间,商品级发货时间也清空

2.

{
    "shipTimeType": 0, -- 删除发货时间
    "updateType": 0 --更新SKU
},
按照指定SKU删除指定SKU的发货时间

3.

{
    "shipTimeType": 2,  ----相对发货时间(值为1则为绝对发货时间)
    "updateType": 1 ---更新商品
},

更新商品级发货时间,如果原本是SKU级发货时间,清空所有SKU上的发货时间

4.

{
    "shipTimeType": 0, -- 删除发货时间
    "updateType": 1 --更新商品
},
删除商品级的发货时间

func NewTmallitemshiptimeupdateRequest added in v1.3.1

func NewTmallitemshiptimeupdateRequest() *TmallitemshiptimeupdateAPIRequest

NewTmallitemshiptimeupdateRequest 初始化TmallitemshiptimeupdateAPIRequest对象

func (TmallitemshiptimeupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallitemshiptimeupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallitemshiptimeupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallitemshiptimeupdateAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (TmallitemshiptimeupdateAPIRequest) GetOption added in v1.3.1

GetOption Option Getter

func (TmallitemshiptimeupdateAPIRequest) GetRawParams added in v1.3.1

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

func (TmallitemshiptimeupdateAPIRequest) GetShipTime added in v1.3.1

func (r TmallitemshiptimeupdateAPIRequest) GetShipTime() string

GetShipTime ShipTime Getter

func (TmallitemshiptimeupdateAPIRequest) GetSkuShipTimes added in v1.3.1

GetSkuShipTimes SkuShipTimes Getter

func (*TmallitemshiptimeupdateAPIRequest) SetItemId added in v1.3.1

func (r *TmallitemshiptimeupdateAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品ID

func (*TmallitemshiptimeupdateAPIRequest) SetOption added in v1.3.1

SetOption is Option Setter 批量更新商品/SKU发货时间的备选项

func (*TmallitemshiptimeupdateAPIRequest) SetShipTime added in v1.3.1

func (r *TmallitemshiptimeupdateAPIRequest) SetShipTime(_shipTime string) error

SetShipTime is ShipTime Setter 被更新发货时间(商品级);格式和具体设置的发货时间格式相关。绝对发货时间填写yyyy-MM-dd;相对发货时间填写数字。发货时间必须在当前时间后三天。如果设置的绝对时间小于当前时间的三天后,会清除该商品的发货时间设置。如果是相对时间小于3,则会提示出错。如果shiptimeType为0,要清除商品上的发货时间,该字段可以填任意字符,也可以不填。

func (*TmallitemshiptimeupdateAPIRequest) SetSkuShipTimes added in v1.3.1

func (r *TmallitemshiptimeupdateAPIRequest) SetSkuShipTimes(_skuShipTimes []UpdateSkuShipTime) error

SetSkuShipTimes is SkuShipTimes Setter 被更新SKU的发货时间,后台会根据三个子属性去查找匹配的sku,如果找到就默认对sku进行更新,当无匹配sku且更新类型针对sku,会报错。

type TmallitemshiptimeupdateAPIResponse added in v1.3.1

type TmallitemshiptimeupdateAPIResponse struct {
	model.CommonResponse
	TmallitemshiptimeupdateAPIResponseModel
}

TmallitemshiptimeupdateAPIResponse 更新商品发货时间 API返回值 tmall.item.shiptime.update

增加更新删除商品/SKU发货时间(支持同一商品下的SKU同时批量更新) 1.

{
    "shipTimeType": 2,  ----相对发货时间(值为1则为绝对发货时间)
    "updateType": 0 ---更新SKU
},

按照指定SKU更新指定SKU的发货时间,如果原本是商品级发货时间,商品级发货时间也清空

2.

{
    "shipTimeType": 0, -- 删除发货时间
    "updateType": 0 --更新SKU
},
按照指定SKU删除指定SKU的发货时间

3.

{
    "shipTimeType": 2,  ----相对发货时间(值为1则为绝对发货时间)
    "updateType": 1 ---更新商品
},

更新商品级发货时间,如果原本是SKU级发货时间,清空所有SKU上的发货时间

4.

{
    "shipTimeType": 0, -- 删除发货时间
    "updateType": 1 --更新商品
},
删除商品级的发货时间

type TmallitemshiptimeupdateAPIResponseModel added in v1.3.1

type TmallitemshiptimeupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_shiptime_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 被修改的商品ID
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

TmallitemshiptimeupdateAPIResponseModel is 更新商品发货时间 成功返回结果

type TmallitemsimpleschemaaddAPIRequest added in v1.3.1

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

TmallitemsimpleschemaaddAPIRequest 天猫简化发布商品 API请求 tmall.item.simpleschema.add

天猫简化版schema发布商品。

func NewTmallitemsimpleschemaaddRequest added in v1.3.1

func NewTmallitemsimpleschemaaddRequest() *TmallitemsimpleschemaaddAPIRequest

NewTmallitemsimpleschemaaddRequest 初始化TmallitemsimpleschemaaddAPIRequest对象

func (TmallitemsimpleschemaaddAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallitemsimpleschemaaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallitemsimpleschemaaddAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallitemsimpleschemaaddAPIRequest) GetRawParams added in v1.3.1

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

func (TmallitemsimpleschemaaddAPIRequest) GetSchemaXmlFields added in v1.3.1

func (r TmallitemsimpleschemaaddAPIRequest) GetSchemaXmlFields() string

GetSchemaXmlFields SchemaXmlFields Getter

func (*TmallitemsimpleschemaaddAPIRequest) SetSchemaXmlFields added in v1.3.1

func (r *TmallitemsimpleschemaaddAPIRequest) SetSchemaXmlFields(_schemaXmlFields string) error

SetSchemaXmlFields is SchemaXmlFields Setter 根据tmall.item.add.simpleschema.get生成的商品发布规则入参数据

type TmallitemsimpleschemaaddAPIResponse added in v1.3.1

type TmallitemsimpleschemaaddAPIResponse struct {
	model.CommonResponse
	TmallitemsimpleschemaaddAPIResponseModel
}

TmallitemsimpleschemaaddAPIResponse 天猫简化发布商品 API返回值 tmall.item.simpleschema.add

天猫简化版schema发布商品。

type TmallitemsimpleschemaaddAPIResponseModel added in v1.3.1

type TmallitemsimpleschemaaddAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_simpleschema_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 发布成功后返回商品ID
	Result string `json:"result,omitempty" xml:"result,omitempty"`
	// 商品最后发布时间。
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
}

TmallitemsimpleschemaaddAPIResponseModel is 天猫简化发布商品 成功返回结果

type TmallitemsimpleschemaupdateAPIRequest added in v1.3.1

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

TmallitemsimpleschemaupdateAPIRequest 天猫简化编辑商品 API请求 tmall.item.simpleschema.update

国外大商家天猫简化编辑商品

func NewTmallitemsimpleschemaupdateRequest added in v1.3.1

func NewTmallitemsimpleschemaupdateRequest() *TmallitemsimpleschemaupdateAPIRequest

NewTmallitemsimpleschemaupdateRequest 初始化TmallitemsimpleschemaupdateAPIRequest对象

func (TmallitemsimpleschemaupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallitemsimpleschemaupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallitemsimpleschemaupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallitemsimpleschemaupdateAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (TmallitemsimpleschemaupdateAPIRequest) GetRawParams added in v1.3.1

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

func (TmallitemsimpleschemaupdateAPIRequest) GetSchemaXmlFields added in v1.3.1

func (r TmallitemsimpleschemaupdateAPIRequest) GetSchemaXmlFields() string

GetSchemaXmlFields SchemaXmlFields Getter

func (*TmallitemsimpleschemaupdateAPIRequest) SetItemId added in v1.3.1

func (r *TmallitemsimpleschemaupdateAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品id

func (*TmallitemsimpleschemaupdateAPIRequest) SetSchemaXmlFields added in v1.3.1

func (r *TmallitemsimpleschemaupdateAPIRequest) SetSchemaXmlFields(_schemaXmlFields string) error

SetSchemaXmlFields is SchemaXmlFields Setter 编辑商品时提交的xml信息

type TmallitemsimpleschemaupdateAPIResponse added in v1.3.1

type TmallitemsimpleschemaupdateAPIResponse struct {
	model.CommonResponse
	TmallitemsimpleschemaupdateAPIResponseModel
}

TmallitemsimpleschemaupdateAPIResponse 天猫简化编辑商品 API返回值 tmall.item.simpleschema.update

国外大商家天猫简化编辑商品

type TmallitemsimpleschemaupdateAPIResponseModel added in v1.3.1

type TmallitemsimpleschemaupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_simpleschema_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 编辑商品的itemid
	UpdateItemResult string `json:"update_item_result,omitempty" xml:"update_item_result,omitempty"`
	// 编辑商品操作成功时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// sku与outerId映射信息
	SkuMapJson string `json:"sku_map_json,omitempty" xml:"sku_map_json,omitempty"`
}

TmallitemsimpleschemaupdateAPIResponseModel is 天猫简化编辑商品 成功返回结果

type TmallitemupdateschemagetAPIRequest added in v1.3.1

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

TmallitemupdateschemagetAPIRequest 天猫编辑商品规则获取 API请求 tmall.item.update.schema.get

Schema方式编辑天猫商品时,编辑商品规则获取

func NewTmallitemupdateschemagetRequest added in v1.3.1

func NewTmallitemupdateschemagetRequest() *TmallitemupdateschemagetAPIRequest

NewTmallitemupdateschemagetRequest 初始化TmallitemupdateschemagetAPIRequest对象

func (TmallitemupdateschemagetAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallitemupdateschemagetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallitemupdateschemagetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallitemupdateschemagetAPIRequest) GetCategoryId added in v1.3.1

func (r TmallitemupdateschemagetAPIRequest) GetCategoryId() int64

GetCategoryId CategoryId Getter

func (TmallitemupdateschemagetAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (TmallitemupdateschemagetAPIRequest) GetProductId added in v1.3.1

func (r TmallitemupdateschemagetAPIRequest) GetProductId() int64

GetProductId ProductId Getter

func (TmallitemupdateschemagetAPIRequest) GetRawParams added in v1.3.1

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

func (*TmallitemupdateschemagetAPIRequest) SetCategoryId added in v1.3.1

func (r *TmallitemupdateschemagetAPIRequest) SetCategoryId(_categoryId int64) error

SetCategoryId is CategoryId Setter 商品发布的目标类目,必须是叶子类目。如果没有切换类目需求,不需要填写。

func (*TmallitemupdateschemagetAPIRequest) SetItemId added in v1.3.1

func (r *TmallitemupdateschemagetAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 需要编辑的商品ID

func (*TmallitemupdateschemagetAPIRequest) SetProductId added in v1.3.1

func (r *TmallitemupdateschemagetAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 商品发布的目标product_id。如果没有切换产品的需求,参数可以不填写。

type TmallitemupdateschemagetAPIResponse added in v1.3.1

type TmallitemupdateschemagetAPIResponse struct {
	model.CommonResponse
	TmallitemupdateschemagetAPIResponseModel
}

TmallitemupdateschemagetAPIResponse 天猫编辑商品规则获取 API返回值 tmall.item.update.schema.get

Schema方式编辑天猫商品时,编辑商品规则获取

type TmallitemupdateschemagetAPIResponseModel added in v1.3.1

type TmallitemupdateschemagetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_update_schema_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回发布商品的规则文档
	UpdateItemResult string `json:"update_item_result,omitempty" xml:"update_item_result,omitempty"`
}

TmallitemupdateschemagetAPIResponseModel is 天猫编辑商品规则获取 成功返回结果

type TmallproductaddschemagetAPIRequest added in v1.3.1

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

TmallproductaddschemagetAPIRequest 产品发布规则获取接口 API请求 tmall.product.add.schema.get

获取用户发布产品的规则

func NewTmallproductaddschemagetRequest added in v1.3.1

func NewTmallproductaddschemagetRequest() *TmallproductaddschemagetAPIRequest

NewTmallproductaddschemagetRequest 初始化TmallproductaddschemagetAPIRequest对象

func (TmallproductaddschemagetAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallproductaddschemagetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallproductaddschemagetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallproductaddschemagetAPIRequest) GetBrandId added in v1.3.1

GetBrandId BrandId Getter

func (TmallproductaddschemagetAPIRequest) GetCategoryId added in v1.3.1

func (r TmallproductaddschemagetAPIRequest) GetCategoryId() int64

GetCategoryId CategoryId Getter

func (TmallproductaddschemagetAPIRequest) GetRawParams added in v1.3.1

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

func (*TmallproductaddschemagetAPIRequest) SetBrandId added in v1.3.1

func (r *TmallproductaddschemagetAPIRequest) SetBrandId(_brandId int64) error

SetBrandId is BrandId Setter 品牌ID

func (*TmallproductaddschemagetAPIRequest) SetCategoryId added in v1.3.1

func (r *TmallproductaddschemagetAPIRequest) SetCategoryId(_categoryId int64) error

SetCategoryId is CategoryId Setter 商品发布的目标类目,必须是叶子类目

type TmallproductaddschemagetAPIResponse added in v1.3.1

type TmallproductaddschemagetAPIResponse struct {
	model.CommonResponse
	TmallproductaddschemagetAPIResponseModel
}

TmallproductaddschemagetAPIResponse 产品发布规则获取接口 API返回值 tmall.product.add.schema.get

获取用户发布产品的规则

type TmallproductaddschemagetAPIResponseModel added in v1.3.1

type TmallproductaddschemagetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_product_add_schema_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回发布产品的规则文档
	AddProductRule string `json:"add_product_rule,omitempty" xml:"add_product_rule,omitempty"`
}

TmallproductaddschemagetAPIResponseModel is 产品发布规则获取接口 成功返回结果

type TmallproductmatchschemagetAPIRequest added in v1.3.1

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

TmallproductmatchschemagetAPIRequest 获取匹配产品规则 API请求 tmall.product.match.schema.get

ISV发布商品前,需要先查找到产品ID,这个接口返回查找产品规则入参规则

func NewTmallproductmatchschemagetRequest added in v1.3.1

func NewTmallproductmatchschemagetRequest() *TmallproductmatchschemagetAPIRequest

NewTmallproductmatchschemagetRequest 初始化TmallproductmatchschemagetAPIRequest对象

func (TmallproductmatchschemagetAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallproductmatchschemagetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallproductmatchschemagetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallproductmatchschemagetAPIRequest) GetCategoryId added in v1.3.1

func (r TmallproductmatchschemagetAPIRequest) GetCategoryId() int64

GetCategoryId CategoryId Getter

func (TmallproductmatchschemagetAPIRequest) GetRawParams added in v1.3.1

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

func (*TmallproductmatchschemagetAPIRequest) SetCategoryId added in v1.3.1

func (r *TmallproductmatchschemagetAPIRequest) SetCategoryId(_categoryId int64) error

SetCategoryId is CategoryId Setter 商品发布的目标类目,必须是叶子类目

type TmallproductmatchschemagetAPIResponse added in v1.3.1

type TmallproductmatchschemagetAPIResponse struct {
	model.CommonResponse
	TmallproductmatchschemagetAPIResponseModel
}

TmallproductmatchschemagetAPIResponse 获取匹配产品规则 API返回值 tmall.product.match.schema.get

ISV发布商品前,需要先查找到产品ID,这个接口返回查找产品规则入参规则

type TmallproductmatchschemagetAPIResponseModel added in v1.3.1

type TmallproductmatchschemagetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_product_match_schema_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回匹配product的规则文档
	MatchResult string `json:"match_result,omitempty" xml:"match_result,omitempty"`
}

TmallproductmatchschemagetAPIResponseModel is 获取匹配产品规则 成功返回结果

type TmallproductschemaaddAPIRequest added in v1.3.1

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

TmallproductschemaaddAPIRequest 使用Schema文件发布一个产品 API请求 tmall.product.schema.add

Schema体系发布一个产品

func NewTmallproductschemaaddRequest added in v1.3.1

func NewTmallproductschemaaddRequest() *TmallproductschemaaddAPIRequest

NewTmallproductschemaaddRequest 初始化TmallproductschemaaddAPIRequest对象

func (TmallproductschemaaddAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallproductschemaaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallproductschemaaddAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallproductschemaaddAPIRequest) GetBrandId added in v1.3.1

func (r TmallproductschemaaddAPIRequest) GetBrandId() int64

GetBrandId BrandId Getter

func (TmallproductschemaaddAPIRequest) GetCategoryId added in v1.3.1

func (r TmallproductschemaaddAPIRequest) GetCategoryId() int64

GetCategoryId CategoryId Getter

func (TmallproductschemaaddAPIRequest) GetRawParams added in v1.3.1

func (r TmallproductschemaaddAPIRequest) GetRawParams() model.Params

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

func (TmallproductschemaaddAPIRequest) GetXmlData added in v1.3.1

func (r TmallproductschemaaddAPIRequest) GetXmlData() string

GetXmlData XmlData Getter

func (*TmallproductschemaaddAPIRequest) SetBrandId added in v1.3.1

func (r *TmallproductschemaaddAPIRequest) SetBrandId(_brandId int64) error

SetBrandId is BrandId Setter 品牌ID

func (*TmallproductschemaaddAPIRequest) SetCategoryId added in v1.3.1

func (r *TmallproductschemaaddAPIRequest) SetCategoryId(_categoryId int64) error

SetCategoryId is CategoryId Setter 商品发布的目标类目,必须是叶子类目

func (*TmallproductschemaaddAPIRequest) SetXmlData added in v1.3.1

func (r *TmallproductschemaaddAPIRequest) SetXmlData(_xmlData string) error

SetXmlData is XmlData Setter 根据tmall.product.add.schema.get生成的产品发布规则入参数据

type TmallproductschemaaddAPIResponse added in v1.3.1

type TmallproductschemaaddAPIResponse struct {
	model.CommonResponse
	TmallproductschemaaddAPIResponseModel
}

TmallproductschemaaddAPIResponse 使用Schema文件发布一个产品 API返回值 tmall.product.schema.add

Schema体系发布一个产品

type TmallproductschemaaddAPIResponseModel added in v1.3.1

type TmallproductschemaaddAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_product_schema_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 新发产品结果
	AddProductResult string `json:"add_product_result,omitempty" xml:"add_product_result,omitempty"`
}

TmallproductschemaaddAPIResponseModel is 使用Schema文件发布一个产品 成功返回结果

type TmallproductschemagetAPIRequest added in v1.3.1

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

TmallproductschemagetAPIRequest 产品信息获取schema获取 API请求 tmall.product.schema.get

产品信息获取接口schema形式返回

func NewTmallproductschemagetRequest added in v1.3.1

func NewTmallproductschemagetRequest() *TmallproductschemagetAPIRequest

NewTmallproductschemagetRequest 初始化TmallproductschemagetAPIRequest对象

func (TmallproductschemagetAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallproductschemagetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallproductschemagetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallproductschemagetAPIRequest) GetProductId added in v1.3.1

func (r TmallproductschemagetAPIRequest) GetProductId() int64

GetProductId ProductId Getter

func (TmallproductschemagetAPIRequest) GetRawParams added in v1.3.1

func (r TmallproductschemagetAPIRequest) GetRawParams() model.Params

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

func (*TmallproductschemagetAPIRequest) SetProductId added in v1.3.1

func (r *TmallproductschemagetAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 产品编号

type TmallproductschemagetAPIResponse added in v1.3.1

type TmallproductschemagetAPIResponse struct {
	model.CommonResponse
	TmallproductschemagetAPIResponseModel
}

TmallproductschemagetAPIResponse 产品信息获取schema获取 API返回值 tmall.product.schema.get

产品信息获取接口schema形式返回

type TmallproductschemagetAPIResponseModel added in v1.3.1

type TmallproductschemagetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_product_schema_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 产品信息数据。schema形式
	GetProductResult string `json:"get_product_result,omitempty" xml:"get_product_result,omitempty"`
}

TmallproductschemagetAPIResponseModel is 产品信息获取schema获取 成功返回结果

type TmallproductschemamatchAPIRequest added in v1.3.1

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

TmallproductschemamatchAPIRequest product匹配接口 API请求 tmall.product.schema.match

根据tmall.product.match.schema.get获取到的规则,填充相应地的字段值以及类目,匹配符合条件的产品,返回匹配product结果,注意,有可能返回多个产品ID,以逗号分隔(尤其是图书类目);

func NewTmallproductschemamatchRequest added in v1.3.1

func NewTmallproductschemamatchRequest() *TmallproductschemamatchAPIRequest

NewTmallproductschemamatchRequest 初始化TmallproductschemamatchAPIRequest对象

func (TmallproductschemamatchAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallproductschemamatchAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallproductschemamatchAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallproductschemamatchAPIRequest) GetCategoryId added in v1.3.1

func (r TmallproductschemamatchAPIRequest) GetCategoryId() int64

GetCategoryId CategoryId Getter

func (TmallproductschemamatchAPIRequest) GetPropvalues added in v1.3.1

func (r TmallproductschemamatchAPIRequest) GetPropvalues() string

GetPropvalues Propvalues Getter

func (TmallproductschemamatchAPIRequest) GetRawParams added in v1.3.1

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

func (*TmallproductschemamatchAPIRequest) SetCategoryId added in v1.3.1

func (r *TmallproductschemamatchAPIRequest) SetCategoryId(_categoryId int64) error

SetCategoryId is CategoryId Setter 商品发布的目标类目,必须是叶子类目

func (*TmallproductschemamatchAPIRequest) SetPropvalues added in v1.3.1

func (r *TmallproductschemamatchAPIRequest) SetPropvalues(_propvalues string) error

SetPropvalues is Propvalues Setter 根据tmall.product.match.schema.get获取到的模板,ISV将需要的字段填充好相应的值结果XML。

type TmallproductschemamatchAPIResponse added in v1.3.1

type TmallproductschemamatchAPIResponse struct {
	model.CommonResponse
	TmallproductschemamatchAPIResponseModel
}

TmallproductschemamatchAPIResponse product匹配接口 API返回值 tmall.product.schema.match

根据tmall.product.match.schema.get获取到的规则,填充相应地的字段值以及类目,匹配符合条件的产品,返回匹配product结果,注意,有可能返回多个产品ID,以逗号分隔(尤其是图书类目);

type TmallproductschemamatchAPIResponseModel added in v1.3.1

type TmallproductschemamatchAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_product_schema_match_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回匹配产品ID,部分类目可能返回多个产品ID,以逗号分隔。
	MatchResult string `json:"match_result,omitempty" xml:"match_result,omitempty"`
}

TmallproductschemamatchAPIResponseModel is product匹配接口 成功返回结果

type TmallproductschemaupdateAPIRequest added in v1.3.1

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

TmallproductschemaupdateAPIRequest 产品更新接口 API请求 tmall.product.schema.update

产品更新接口

func NewTmallproductschemaupdateRequest added in v1.3.1

func NewTmallproductschemaupdateRequest() *TmallproductschemaupdateAPIRequest

NewTmallproductschemaupdateRequest 初始化TmallproductschemaupdateAPIRequest对象

func (TmallproductschemaupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallproductschemaupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallproductschemaupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallproductschemaupdateAPIRequest) GetProductId added in v1.3.1

func (r TmallproductschemaupdateAPIRequest) GetProductId() int64

GetProductId ProductId Getter

func (TmallproductschemaupdateAPIRequest) GetRawParams added in v1.3.1

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

func (TmallproductschemaupdateAPIRequest) GetXmlData added in v1.3.1

GetXmlData XmlData Getter

func (*TmallproductschemaupdateAPIRequest) SetProductId added in v1.3.1

func (r *TmallproductschemaupdateAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 产品编号

func (*TmallproductschemaupdateAPIRequest) SetXmlData added in v1.3.1

func (r *TmallproductschemaupdateAPIRequest) SetXmlData(_xmlData string) error

SetXmlData is XmlData Setter 根据tmall.product.update.schema.get生成的产品更新规则入参数据

type TmallproductschemaupdateAPIResponse added in v1.3.1

type TmallproductschemaupdateAPIResponse struct {
	model.CommonResponse
	TmallproductschemaupdateAPIResponseModel
}

TmallproductschemaupdateAPIResponse 产品更新接口 API返回值 tmall.product.schema.update

产品更新接口

type TmallproductschemaupdateAPIResponseModel added in v1.3.1

type TmallproductschemaupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_product_schema_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 产品数据,格式和入参xml_data一致,仅包含产品ID和更新时间
	UpdateProductResult string `json:"update_product_result,omitempty" xml:"update_product_result,omitempty"`
}

TmallproductschemaupdateAPIResponseModel is 产品更新接口 成功返回结果

type TmallproductupdateschemagetAPIRequest added in v1.3.1

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

TmallproductupdateschemagetAPIRequest 产品更新规则获取接口 API请求 tmall.product.update.schema.get

获取用户更新产品的规则

func NewTmallproductupdateschemagetRequest added in v1.3.1

func NewTmallproductupdateschemagetRequest() *TmallproductupdateschemagetAPIRequest

NewTmallproductupdateschemagetRequest 初始化TmallproductupdateschemagetAPIRequest对象

func (TmallproductupdateschemagetAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallproductupdateschemagetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallproductupdateschemagetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallproductupdateschemagetAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TmallproductupdateschemagetAPIRequest) GetRawParams added in v1.3.1

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

func (*TmallproductupdateschemagetAPIRequest) SetProductId added in v1.3.1

func (r *TmallproductupdateschemagetAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 产品编号

type TmallproductupdateschemagetAPIResponse added in v1.3.1

type TmallproductupdateschemagetAPIResponse struct {
	model.CommonResponse
	TmallproductupdateschemagetAPIResponseModel
}

TmallproductupdateschemagetAPIResponse 产品更新规则获取接口 API返回值 tmall.product.update.schema.get

获取用户更新产品的规则

type TmallproductupdateschemagetAPIResponseModel added in v1.3.1

type TmallproductupdateschemagetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_product_update_schema_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 参数产品ID对产品的更新规则
	UpdateProductSchema string `json:"update_product_schema,omitempty" xml:"update_product_schema,omitempty"`
}

TmallproductupdateschemagetAPIResponseModel is 产品更新规则获取接口 成功返回结果

type UpdateItemPriceOption

type UpdateItemPriceOption struct {
	// 目标币种,非必填,仅支持天猫国际官网同购商家将外币价格修改成人民币价格时使用
	CurrencyType string `json:"currency_type,omitempty" xml:"currency_type,omitempty"`
	// 是否忽略涉嫌炒信警告信息
	IgnoreFakeCredit bool `json:"ignore_fake_credit,omitempty" xml:"ignore_fake_credit,omitempty"`
}

UpdateItemPriceOption 结构体

type UpdateItemQuantityOption

type UpdateItemQuantityOption struct {
	// 增量更新时幂等外部编码,只能包含十六进制字符(0-9,a-f,A-F)
	OuterBizKey string `json:"outer_biz_key,omitempty" xml:"outer_biz_key,omitempty"`
	// 库存更新方式: 1是全量更新 2是增量更新;默认是1。
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
}

UpdateItemQuantityOption 结构体

type UpdateItemShipTimeOption

type UpdateItemShipTimeOption struct {
	// 0代表清空匹配的SKU发货时间数据或者商品发货时间数据;1代表:固定发货时间;2代表:相对发货时间
	ShipTimeType int64 `json:"ship_time_type,omitempty" xml:"ship_time_type,omitempty"`
	// 更新类型,默认不填时更新sku,0表示更新sku,1表示更新商品维度,其他值均非法
	UpdateType int64 `json:"update_type,omitempty" xml:"update_type,omitempty"`
}

UpdateItemShipTimeOption 结构体

type UpdateSkuOuterId

type UpdateSkuOuterId struct {
	// 被更新的Sku的商家外部id
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// Sku属性串。格式:pid:vid;pid:vid,如: 1627207:3232483;1630696:3284570,表示机身颜色:军绿色;手机套餐:一电一充;如果填写将以属性对形式查找被更新SKU
	Properties string `json:"properties,omitempty" xml:"properties,omitempty"`
	// SkuID,如果填写,将以SKUID查找被更新的SKU
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

UpdateSkuOuterId 结构体

type UpdateSkuPrice

type UpdateSkuPrice struct {
	// Sku属性串。格式:pid:vid;pid:vid,如: 1627207:3232483;1630696:3284570,表示机身颜色:军绿色;手机套餐:一电一充,用于指定被修改价格的SKU
	Properties string `json:"properties,omitempty" xml:"properties,omitempty"`
	// Sku的商家外部id,用于指定被修改价格的SKU
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// 属于这个sku的商品的价格 取值范围:0-100000000;精确到2位小数;单位:元。如:200.07,表示:200元7分。
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// SkuID,用于指定被修改价格的SKU
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

UpdateSkuPrice 结构体

type UpdateSkuQuantity

type UpdateSkuQuantity struct {
	// Sku的商家外部id,用于指定被修改库存的SKU
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// Sku属性串。格式:pid:vid;pid:vid,如: 1627207:3232483;1630696:3284570,表示机身颜色:军绿色;手机套餐:一电一充,用于指定被修改库存的SKU
	Properties string `json:"properties,omitempty" xml:"properties,omitempty"`
	// SKU属于这个sku的商品的库存;增量编辑方式支持正数、负数
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// SkuID,用于指定被修改库存的
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

UpdateSkuQuantity 结构体

type UpdateSkuShipTime

type UpdateSkuShipTime struct {
	// 被更新发货时间;格式和具体设置的发货时间格式相关。绝对发货时间填写yyyy-MM-dd;相对发货时间填写数字。
	ShipTime string `json:"ship_time,omitempty" xml:"ship_time,omitempty"`
	// Sku属性串。格式:pid:vid;pid:vid,如: 1627207:3232483;1630696:3284570,表示机身颜色:军绿色;手机套餐:一电一充
	Properties string `json:"properties,omitempty" xml:"properties,omitempty"`
	// Sku的商家外部id;如:2015_07_23_D_123
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// SKU的ID
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

UpdateSkuShipTime 结构体

type Video

type Video struct {
	// 视频关联记录创建时间(格式:yyyy-MM-dd HH:mm:ss)
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 视频关联记录修改时间(格式:yyyy-MM-dd HH:mm:ss)
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// video的url连接地址。淘秀里视频记录里面存储的url地址
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 视频关联记录的id,和商品相对应
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// video的id,对应于视频在淘秀的存储记录
	VideoId int64 `json:"video_id,omitempty" xml:"video_id,omitempty"`
}

Video 结构体

Source Files

Jump to

Keyboard shortcuts

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