product

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Overview

Package product 包含商品API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddlServiceDefDto added in v1.2.5

type AddlServiceDefDto struct {
	// 是否支持议价
	Bargain bool `json:"bargain,omitempty" xml:"bargain,omitempty"`
}

AddlServiceDefDto 结构体

type AfterSale

type AfterSale struct {
	// 名称
	AfterSaleName string `json:"after_sale_name,omitempty" xml:"after_sale_name,omitempty"`
	// tfs地址
	AfterSalePath string `json:"after_sale_path,omitempty" xml:"after_sale_path,omitempty"`
	// id
	AfterSaleId int64 `json:"after_sale_id,omitempty" xml:"after_sale_id,omitempty"`
}

AfterSale 结构体

type AlibabaGpuAddSchemaGetAPIRequest

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

AlibabaGpuAddSchemaGetAPIRequest 获取产品发布规则接口 API请求 alibaba.gpu.add.schema.get

获取产品发布规则接口

func NewAlibabaGpuAddSchemaGetRequest

func NewAlibabaGpuAddSchemaGetRequest() *AlibabaGpuAddSchemaGetAPIRequest

NewAlibabaGpuAddSchemaGetRequest 初始化AlibabaGpuAddSchemaGetAPIRequest对象

func (AlibabaGpuAddSchemaGetAPIRequest) GetApiMethodName

func (r AlibabaGpuAddSchemaGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaGpuAddSchemaGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaGpuAddSchemaGetAPIRequest) GetBrandId

func (r AlibabaGpuAddSchemaGetAPIRequest) GetBrandId() int64

GetBrandId BrandId Getter

func (AlibabaGpuAddSchemaGetAPIRequest) GetLeafCatId

func (r AlibabaGpuAddSchemaGetAPIRequest) GetLeafCatId() int64

GetLeafCatId LeafCatId Getter

func (AlibabaGpuAddSchemaGetAPIRequest) GetProviderId

func (r AlibabaGpuAddSchemaGetAPIRequest) GetProviderId() int64

GetProviderId ProviderId Getter

func (AlibabaGpuAddSchemaGetAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaGpuAddSchemaGetAPIRequest) SetBrandId

func (r *AlibabaGpuAddSchemaGetAPIRequest) SetBrandId(_brandId int64) error

SetBrandId is BrandId Setter 品牌ID

func (*AlibabaGpuAddSchemaGetAPIRequest) SetLeafCatId

func (r *AlibabaGpuAddSchemaGetAPIRequest) SetLeafCatId(_leafCatId int64) error

SetLeafCatId is LeafCatId Setter 叶子类目ID

func (*AlibabaGpuAddSchemaGetAPIRequest) SetProviderId

func (r *AlibabaGpuAddSchemaGetAPIRequest) SetProviderId(_providerId int64) error

SetProviderId is ProviderId Setter 当前用户所在渠道如0代表天猫,8代表淘宝

type AlibabaGpuAddSchemaGetAPIResponse

type AlibabaGpuAddSchemaGetAPIResponse struct {
	model.CommonResponse
	AlibabaGpuAddSchemaGetAPIResponseModel
}

AlibabaGpuAddSchemaGetAPIResponse 获取产品发布规则接口 API返回值 alibaba.gpu.add.schema.get

获取产品发布规则接口

type AlibabaGpuAddSchemaGetAPIResponseModel

type AlibabaGpuAddSchemaGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_gpu_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"`
}

AlibabaGpuAddSchemaGetAPIResponseModel is 获取产品发布规则接口 成功返回结果

type AlibabaGpuSchemaAddAPIRequest

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

AlibabaGpuSchemaAddAPIRequest 使用schema文件发布产品 API请求 alibaba.gpu.schema.add

使用Schema文件发布一个产品

func NewAlibabaGpuSchemaAddRequest

func NewAlibabaGpuSchemaAddRequest() *AlibabaGpuSchemaAddAPIRequest

NewAlibabaGpuSchemaAddRequest 初始化AlibabaGpuSchemaAddAPIRequest对象

func (AlibabaGpuSchemaAddAPIRequest) GetApiMethodName

func (r AlibabaGpuSchemaAddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaGpuSchemaAddAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaGpuSchemaAddAPIRequest) GetBrandId

func (r AlibabaGpuSchemaAddAPIRequest) GetBrandId() int64

GetBrandId BrandId Getter

func (AlibabaGpuSchemaAddAPIRequest) GetLeafCatId

func (r AlibabaGpuSchemaAddAPIRequest) GetLeafCatId() int64

GetLeafCatId LeafCatId Getter

func (AlibabaGpuSchemaAddAPIRequest) GetProviderId

func (r AlibabaGpuSchemaAddAPIRequest) GetProviderId() int64

GetProviderId ProviderId Getter

func (AlibabaGpuSchemaAddAPIRequest) GetRawParams added in v1.2.8

func (r AlibabaGpuSchemaAddAPIRequest) GetRawParams() model.Params

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

func (AlibabaGpuSchemaAddAPIRequest) GetSchemaXmlFields

func (r AlibabaGpuSchemaAddAPIRequest) GetSchemaXmlFields() string

GetSchemaXmlFields SchemaXmlFields Getter

func (*AlibabaGpuSchemaAddAPIRequest) SetBrandId

func (r *AlibabaGpuSchemaAddAPIRequest) SetBrandId(_brandId int64) error

SetBrandId is BrandId Setter 品牌ID

func (*AlibabaGpuSchemaAddAPIRequest) SetLeafCatId

func (r *AlibabaGpuSchemaAddAPIRequest) SetLeafCatId(_leafCatId int64) error

SetLeafCatId is LeafCatId Setter 叶子类目ID

func (*AlibabaGpuSchemaAddAPIRequest) SetProviderId

func (r *AlibabaGpuSchemaAddAPIRequest) SetProviderId(_providerId int64) error

SetProviderId is ProviderId Setter 当前用户所在渠道如0代表天猫,8代表淘宝

func (*AlibabaGpuSchemaAddAPIRequest) SetSchemaXmlFields

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

SetSchemaXmlFields is SchemaXmlFields Setter 根据alibaba.gpu.add.schema.get获取的规则提交上来的schema

type AlibabaGpuSchemaAddAPIResponse

type AlibabaGpuSchemaAddAPIResponse struct {
	model.CommonResponse
	AlibabaGpuSchemaAddAPIResponseModel
}

AlibabaGpuSchemaAddAPIResponse 使用schema文件发布产品 API返回值 alibaba.gpu.schema.add

使用Schema文件发布一个产品

type AlibabaGpuSchemaAddAPIResponseModel

type AlibabaGpuSchemaAddAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_gpu_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"`
}

AlibabaGpuSchemaAddAPIResponseModel is 使用schema文件发布产品 成功返回结果

type AlibabaGpuSchemaCatsearchAPIRequest

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

AlibabaGpuSchemaCatsearchAPIRequest 按类目查询spu接口 API请求 alibaba.gpu.schema.catsearch

按类目查询spu的schema接口

func NewAlibabaGpuSchemaCatsearchRequest

func NewAlibabaGpuSchemaCatsearchRequest() *AlibabaGpuSchemaCatsearchAPIRequest

NewAlibabaGpuSchemaCatsearchRequest 初始化AlibabaGpuSchemaCatsearchAPIRequest对象

func (AlibabaGpuSchemaCatsearchAPIRequest) GetApiMethodName

func (r AlibabaGpuSchemaCatsearchAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaGpuSchemaCatsearchAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaGpuSchemaCatsearchAPIRequest) GetCurrentPage

func (r AlibabaGpuSchemaCatsearchAPIRequest) GetCurrentPage() int64

GetCurrentPage CurrentPage Getter

func (AlibabaGpuSchemaCatsearchAPIRequest) GetLeafCatId

func (r AlibabaGpuSchemaCatsearchAPIRequest) GetLeafCatId() int64

GetLeafCatId LeafCatId Getter

func (AlibabaGpuSchemaCatsearchAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (AlibabaGpuSchemaCatsearchAPIRequest) GetProviderId

func (r AlibabaGpuSchemaCatsearchAPIRequest) GetProviderId() int64

GetProviderId ProviderId Getter

func (AlibabaGpuSchemaCatsearchAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaGpuSchemaCatsearchAPIRequest) SetCurrentPage

func (r *AlibabaGpuSchemaCatsearchAPIRequest) SetCurrentPage(_currentPage int64) error

SetCurrentPage is CurrentPage Setter 当前页

func (*AlibabaGpuSchemaCatsearchAPIRequest) SetLeafCatId

func (r *AlibabaGpuSchemaCatsearchAPIRequest) SetLeafCatId(_leafCatId int64) error

SetLeafCatId is LeafCatId Setter 叶子类目ID

func (*AlibabaGpuSchemaCatsearchAPIRequest) SetPageSize

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

SetPageSize is PageSize Setter 每页大小

func (*AlibabaGpuSchemaCatsearchAPIRequest) SetProviderId

func (r *AlibabaGpuSchemaCatsearchAPIRequest) SetProviderId(_providerId int64) error

SetProviderId is ProviderId Setter 渠道Id,如0代表天猫,8代表淘宝

type AlibabaGpuSchemaCatsearchAPIResponse

type AlibabaGpuSchemaCatsearchAPIResponse struct {
	model.CommonResponse
	AlibabaGpuSchemaCatsearchAPIResponseModel
}

AlibabaGpuSchemaCatsearchAPIResponse 按类目查询spu接口 API返回值 alibaba.gpu.schema.catsearch

按类目查询spu的schema接口

type AlibabaGpuSchemaCatsearchAPIResponseModel

type AlibabaGpuSchemaCatsearchAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_gpu_schema_catsearch_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回按类目查询spu的schema
	CatSearchResult string `json:"cat_search_result,omitempty" xml:"cat_search_result,omitempty"`
	// 总记录数
	Total int64 `json:"total,omitempty" xml:"total,omitempty"`
}

AlibabaGpuSchemaCatsearchAPIResponseModel is 按类目查询spu接口 成功返回结果

type AlibabaGpuSchemaUpdateAPIRequest

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

AlibabaGpuSchemaUpdateAPIRequest 产品更新接口 API请求 alibaba.gpu.schema.update

产品更新接口

func NewAlibabaGpuSchemaUpdateRequest

func NewAlibabaGpuSchemaUpdateRequest() *AlibabaGpuSchemaUpdateAPIRequest

NewAlibabaGpuSchemaUpdateRequest 初始化AlibabaGpuSchemaUpdateAPIRequest对象

func (AlibabaGpuSchemaUpdateAPIRequest) GetApiMethodName

func (r AlibabaGpuSchemaUpdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaGpuSchemaUpdateAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaGpuSchemaUpdateAPIRequest) GetProductId

func (r AlibabaGpuSchemaUpdateAPIRequest) GetProductId() int64

GetProductId ProductId Getter

func (AlibabaGpuSchemaUpdateAPIRequest) GetProviderId

func (r AlibabaGpuSchemaUpdateAPIRequest) GetProviderId() int64

GetProviderId ProviderId Getter

func (AlibabaGpuSchemaUpdateAPIRequest) GetRawParams added in v1.2.8

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

func (AlibabaGpuSchemaUpdateAPIRequest) GetSchemaXmlFields

func (r AlibabaGpuSchemaUpdateAPIRequest) GetSchemaXmlFields() string

GetSchemaXmlFields SchemaXmlFields Getter

func (*AlibabaGpuSchemaUpdateAPIRequest) SetProductId

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

SetProductId is ProductId Setter 产品ID

func (*AlibabaGpuSchemaUpdateAPIRequest) SetProviderId

func (r *AlibabaGpuSchemaUpdateAPIRequest) SetProviderId(_providerId int64) error

SetProviderId is ProviderId Setter 当前用户所在渠道如0代表天猫,8代表淘宝

func (*AlibabaGpuSchemaUpdateAPIRequest) SetSchemaXmlFields

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

SetSchemaXmlFields is SchemaXmlFields Setter 更新产品提交的schema数据

type AlibabaGpuSchemaUpdateAPIResponse

type AlibabaGpuSchemaUpdateAPIResponse struct {
	model.CommonResponse
	AlibabaGpuSchemaUpdateAPIResponseModel
}

AlibabaGpuSchemaUpdateAPIResponse 产品更新接口 API返回值 alibaba.gpu.schema.update

产品更新接口

type AlibabaGpuSchemaUpdateAPIResponseModel

type AlibabaGpuSchemaUpdateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_gpu_schema_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 更新产品的结果
	UpdateProductResult string `json:"update_product_result,omitempty" xml:"update_product_result,omitempty"`
}

AlibabaGpuSchemaUpdateAPIResponseModel is 产品更新接口 成功返回结果

type AlibabaGpuUpdateSchemaGetAPIRequest

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

AlibabaGpuUpdateSchemaGetAPIRequest 获取产品编辑schema规则的接口 API请求 alibaba.gpu.update.schema.get

获取产品编辑schema规则的接口

func NewAlibabaGpuUpdateSchemaGetRequest

func NewAlibabaGpuUpdateSchemaGetRequest() *AlibabaGpuUpdateSchemaGetAPIRequest

NewAlibabaGpuUpdateSchemaGetRequest 初始化AlibabaGpuUpdateSchemaGetAPIRequest对象

func (AlibabaGpuUpdateSchemaGetAPIRequest) GetApiMethodName

func (r AlibabaGpuUpdateSchemaGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaGpuUpdateSchemaGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaGpuUpdateSchemaGetAPIRequest) GetProductId

func (r AlibabaGpuUpdateSchemaGetAPIRequest) GetProductId() int64

GetProductId ProductId Getter

func (AlibabaGpuUpdateSchemaGetAPIRequest) GetProviderId

func (r AlibabaGpuUpdateSchemaGetAPIRequest) GetProviderId() int64

GetProviderId ProviderId Getter

func (AlibabaGpuUpdateSchemaGetAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaGpuUpdateSchemaGetAPIRequest) SetProductId

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

SetProductId is ProductId Setter 产品ID

func (*AlibabaGpuUpdateSchemaGetAPIRequest) SetProviderId

func (r *AlibabaGpuUpdateSchemaGetAPIRequest) SetProviderId(_providerId int64) error

SetProviderId is ProviderId Setter 当前用户所在渠道如0代表天猫,8代表淘宝

type AlibabaGpuUpdateSchemaGetAPIResponse

type AlibabaGpuUpdateSchemaGetAPIResponse struct {
	model.CommonResponse
	AlibabaGpuUpdateSchemaGetAPIResponseModel
}

AlibabaGpuUpdateSchemaGetAPIResponse 获取产品编辑schema规则的接口 API返回值 alibaba.gpu.update.schema.get

获取产品编辑schema规则的接口

type AlibabaGpuUpdateSchemaGetAPIResponseModel

type AlibabaGpuUpdateSchemaGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_gpu_update_schema_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 参数产品ID对应的产品更新规则
	UpdateProductRule string `json:"update_product_rule,omitempty" xml:"update_product_rule,omitempty"`
}

AlibabaGpuUpdateSchemaGetAPIResponseModel is 获取产品编辑schema规则的接口 成功返回结果

type AlibabaGspSupplyImageUploadAPIRequest

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

AlibabaGspSupplyImageUploadAPIRequest gsp图片上传 API请求 alibaba.gsp.supply.image.upload

上传图片至目标海外平台的素材空间

func NewAlibabaGspSupplyImageUploadRequest

func NewAlibabaGspSupplyImageUploadRequest() *AlibabaGspSupplyImageUploadAPIRequest

NewAlibabaGspSupplyImageUploadRequest 初始化AlibabaGspSupplyImageUploadAPIRequest对象

func (AlibabaGspSupplyImageUploadAPIRequest) GetApiMethodName

func (r AlibabaGspSupplyImageUploadAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaGspSupplyImageUploadAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaGspSupplyImageUploadAPIRequest) GetFileContent

func (r AlibabaGspSupplyImageUploadAPIRequest) GetFileContent() *model.File

GetFileContent FileContent Getter

func (AlibabaGspSupplyImageUploadAPIRequest) GetFileName

GetFileName FileName Getter

func (AlibabaGspSupplyImageUploadAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaGspSupplyImageUploadAPIRequest) SetFileContent

func (r *AlibabaGspSupplyImageUploadAPIRequest) SetFileContent(_fileContent *model.File) error

SetFileContent is FileContent Setter 图片文件流,像素宽度不小于500,不大于2000,像素长度不小于500,不大于2000

func (*AlibabaGspSupplyImageUploadAPIRequest) SetFileName

func (r *AlibabaGspSupplyImageUploadAPIRequest) SetFileName(_fileName string) error

SetFileName is FileName Setter 图片名称

type AlibabaGspSupplyImageUploadAPIResponse

type AlibabaGspSupplyImageUploadAPIResponse struct {
	model.CommonResponse
	AlibabaGspSupplyImageUploadAPIResponseModel
}

AlibabaGspSupplyImageUploadAPIResponse gsp图片上传 API返回值 alibaba.gsp.supply.image.upload

上传图片至目标海外平台的素材空间

type AlibabaGspSupplyImageUploadAPIResponseModel

type AlibabaGspSupplyImageUploadAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_gsp_supply_image_upload_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误码
	ServiceErrorCode string `json:"service_error_code,omitempty" xml:"service_error_code,omitempty"`
	// 错误信息
	ServiceErrorMsg string `json:"service_error_msg,omitempty" xml:"service_error_msg,omitempty"`
	// 数据
	Model *UploadImageResp `json:"model,omitempty" xml:"model,omitempty"`
	// 执行结果
	ServiceSuccess bool `json:"service_success,omitempty" xml:"service_success,omitempty"`
	// 是否重试
	NeedRetry bool `json:"need_retry,omitempty" xml:"need_retry,omitempty"`
}

AlibabaGspSupplyImageUploadAPIResponseModel is gsp图片上传 成功返回结果

type AlibabaJymIndustryInformationCallbakAPIRequest

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

AlibabaJymIndustryInformationCallbakAPIRequest VMOS回调行业信息系统 API请求 alibaba.jym.industry.information.callbak

VMOS回调交易猫行业信息系统

func NewAlibabaJymIndustryInformationCallbakRequest

func NewAlibabaJymIndustryInformationCallbakRequest() *AlibabaJymIndustryInformationCallbakAPIRequest

NewAlibabaJymIndustryInformationCallbakRequest 初始化AlibabaJymIndustryInformationCallbakAPIRequest对象

func (AlibabaJymIndustryInformationCallbakAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaJymIndustryInformationCallbakAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaJymIndustryInformationCallbakAPIRequest) GetBizId

GetBizId BizId Getter

func (AlibabaJymIndustryInformationCallbakAPIRequest) GetContent

GetContent Content Getter

func (AlibabaJymIndustryInformationCallbakAPIRequest) GetRawParams added in v1.2.8

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

func (AlibabaJymIndustryInformationCallbakAPIRequest) GetStatus

GetStatus Status Getter

func (AlibabaJymIndustryInformationCallbakAPIRequest) GetTaskId

GetTaskId TaskId Getter

func (*AlibabaJymIndustryInformationCallbakAPIRequest) SetBizId

SetBizId is BizId Setter 幂等ID

func (*AlibabaJymIndustryInformationCallbakAPIRequest) SetContent

SetContent is Content Setter 内容

func (*AlibabaJymIndustryInformationCallbakAPIRequest) SetStatus

SetStatus is Status Setter 状态

func (*AlibabaJymIndustryInformationCallbakAPIRequest) SetTaskId

SetTaskId is TaskId Setter 任务ID

type AlibabaJymIndustryInformationCallbakAPIResponse

type AlibabaJymIndustryInformationCallbakAPIResponse struct {
	model.CommonResponse
	AlibabaJymIndustryInformationCallbakAPIResponseModel
}

AlibabaJymIndustryInformationCallbakAPIResponse VMOS回调行业信息系统 API返回值 alibaba.jym.industry.information.callbak

VMOS回调交易猫行业信息系统

type AlibabaJymIndustryInformationCallbakAPIResponseModel

type AlibabaJymIndustryInformationCallbakAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_jym_industry_information_callbak_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 状态码
	StateCode string `json:"state_code,omitempty" xml:"state_code,omitempty"`
	// 扩展错误信息
	ExtraErrMsg string `json:"extra_err_msg,omitempty" xml:"extra_err_msg,omitempty"`
}

AlibabaJymIndustryInformationCallbakAPIResponseModel is VMOS回调行业信息系统 成功返回结果

type AlibabaJymItemExternalGoodsBatchDeleteAPIRequest added in v1.2.8

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

AlibabaJymItemExternalGoodsBatchDeleteAPIRequest 交易猫外部商家批量删除商品接口 API请求 alibaba.jym.item.external.goods.batch.delete

交易猫外部商家批量删除商品接口

func NewAlibabaJymItemExternalGoodsBatchDeleteRequest added in v1.2.8

func NewAlibabaJymItemExternalGoodsBatchDeleteRequest() *AlibabaJymItemExternalGoodsBatchDeleteAPIRequest

NewAlibabaJymItemExternalGoodsBatchDeleteRequest 初始化AlibabaJymItemExternalGoodsBatchDeleteAPIRequest对象

func (AlibabaJymItemExternalGoodsBatchDeleteAPIRequest) GetApiMethodName added in v1.2.8

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaJymItemExternalGoodsBatchDeleteAPIRequest) GetApiParams added in v1.2.8

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaJymItemExternalGoodsBatchDeleteAPIRequest) GetGoodsDeleteCommandDto added in v1.2.8

GetGoodsDeleteCommandDto GoodsDeleteCommandDto Getter

func (AlibabaJymItemExternalGoodsBatchDeleteAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaJymItemExternalGoodsBatchDeleteAPIRequest) SetGoodsDeleteCommandDto added in v1.2.8

func (r *AlibabaJymItemExternalGoodsBatchDeleteAPIRequest) SetGoodsDeleteCommandDto(_goodsDeleteCommandDto *GoodsDeleteCommandDto) error

SetGoodsDeleteCommandDto is GoodsDeleteCommandDto Setter 商品批量删除接口入参

type AlibabaJymItemExternalGoodsBatchDeleteAPIResponse added in v1.2.8

type AlibabaJymItemExternalGoodsBatchDeleteAPIResponse struct {
	model.CommonResponse
	AlibabaJymItemExternalGoodsBatchDeleteAPIResponseModel
}

AlibabaJymItemExternalGoodsBatchDeleteAPIResponse 交易猫外部商家批量删除商品接口 API返回值 alibaba.jym.item.external.goods.batch.delete

交易猫外部商家批量删除商品接口

type AlibabaJymItemExternalGoodsBatchDeleteAPIResponseModel added in v1.2.8

type AlibabaJymItemExternalGoodsBatchDeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_jym_item_external_goods_batch_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 状态码
	StateCode string `json:"state_code,omitempty" xml:"state_code,omitempty"`
	// 错误信息
	ExtraErrMsg string `json:"extra_err_msg,omitempty" xml:"extra_err_msg,omitempty"`
	// 商品批量删除接口返回
	Result *GoodsBatchResultDto `json:"result,omitempty" xml:"result,omitempty"`
	// 是否成功
	Succeed bool `json:"succeed,omitempty" xml:"succeed,omitempty"`
}

AlibabaJymItemExternalGoodsBatchDeleteAPIResponseModel is 交易猫外部商家批量删除商品接口 成功返回结果

type AlibabaJymItemExternalGoodsBatchModifypriceAPIRequest added in v1.2.5

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

AlibabaJymItemExternalGoodsBatchModifypriceAPIRequest 交易猫外部商家批量商品改价接口 API请求 alibaba.jym.item.external.goods.batch.modifyprice

供外部B端商家接入,提交批量商品改价请求,返回批量改价任务结果

func NewAlibabaJymItemExternalGoodsBatchModifypriceRequest added in v1.2.5

func NewAlibabaJymItemExternalGoodsBatchModifypriceRequest() *AlibabaJymItemExternalGoodsBatchModifypriceAPIRequest

NewAlibabaJymItemExternalGoodsBatchModifypriceRequest 初始化AlibabaJymItemExternalGoodsBatchModifypriceAPIRequest对象

func (AlibabaJymItemExternalGoodsBatchModifypriceAPIRequest) GetApiMethodName added in v1.2.5

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaJymItemExternalGoodsBatchModifypriceAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaJymItemExternalGoodsBatchModifypriceAPIRequest) GetGoodsPriceModifyCommand added in v1.2.5

GetGoodsPriceModifyCommand GoodsPriceModifyCommand Getter

func (AlibabaJymItemExternalGoodsBatchModifypriceAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaJymItemExternalGoodsBatchModifypriceAPIRequest) SetGoodsPriceModifyCommand added in v1.2.5

func (r *AlibabaJymItemExternalGoodsBatchModifypriceAPIRequest) SetGoodsPriceModifyCommand(_goodsPriceModifyCommand *GoodsPriceModifyCommandDto) error

SetGoodsPriceModifyCommand is GoodsPriceModifyCommand Setter 商品批量改价接口入参

type AlibabaJymItemExternalGoodsBatchModifypriceAPIResponse added in v1.2.5

type AlibabaJymItemExternalGoodsBatchModifypriceAPIResponse struct {
	model.CommonResponse
	AlibabaJymItemExternalGoodsBatchModifypriceAPIResponseModel
}

AlibabaJymItemExternalGoodsBatchModifypriceAPIResponse 交易猫外部商家批量商品改价接口 API返回值 alibaba.jym.item.external.goods.batch.modifyprice

供外部B端商家接入,提交批量商品改价请求,返回批量改价任务结果

type AlibabaJymItemExternalGoodsBatchModifypriceAPIResponseModel added in v1.2.5

type AlibabaJymItemExternalGoodsBatchModifypriceAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_jym_item_external_goods_batch_modifyprice_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 状态码
	StateCode string `json:"state_code,omitempty" xml:"state_code,omitempty"`
	// 错误信息
	ExtraErrMsg string `json:"extra_err_msg,omitempty" xml:"extra_err_msg,omitempty"`
	// 商品批量改价接口返回
	Result *GoodsBatchResultDto `json:"result,omitempty" xml:"result,omitempty"`
	// 是否成功
	Succeed bool `json:"succeed,omitempty" xml:"succeed,omitempty"`
}

AlibabaJymItemExternalGoodsBatchModifypriceAPIResponseModel is 交易猫外部商家批量商品改价接口 成功返回结果

type AlibabaJymItemExternalGoodsBatchOffsaleAPIRequest added in v1.2.5

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

AlibabaJymItemExternalGoodsBatchOffsaleAPIRequest 交易猫外部商家批量下架商品接口 API请求 alibaba.jym.item.external.goods.batch.offsale

供外部B端商家接入,提交批量下架商品请求,返回批量下架任务结果

func NewAlibabaJymItemExternalGoodsBatchOffsaleRequest added in v1.2.5

func NewAlibabaJymItemExternalGoodsBatchOffsaleRequest() *AlibabaJymItemExternalGoodsBatchOffsaleAPIRequest

NewAlibabaJymItemExternalGoodsBatchOffsaleRequest 初始化AlibabaJymItemExternalGoodsBatchOffsaleAPIRequest对象

func (AlibabaJymItemExternalGoodsBatchOffsaleAPIRequest) GetApiMethodName added in v1.2.5

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaJymItemExternalGoodsBatchOffsaleAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaJymItemExternalGoodsBatchOffsaleAPIRequest) GetGoodsOffSaleCommand added in v1.2.5

GetGoodsOffSaleCommand GoodsOffSaleCommand Getter

func (AlibabaJymItemExternalGoodsBatchOffsaleAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaJymItemExternalGoodsBatchOffsaleAPIRequest) SetGoodsOffSaleCommand added in v1.2.5

func (r *AlibabaJymItemExternalGoodsBatchOffsaleAPIRequest) SetGoodsOffSaleCommand(_goodsOffSaleCommand *GoodsOffSaleCommandDto) error

SetGoodsOffSaleCommand is GoodsOffSaleCommand Setter 商品批量下架接口入参

type AlibabaJymItemExternalGoodsBatchOffsaleAPIResponse added in v1.2.5

type AlibabaJymItemExternalGoodsBatchOffsaleAPIResponse struct {
	model.CommonResponse
	AlibabaJymItemExternalGoodsBatchOffsaleAPIResponseModel
}

AlibabaJymItemExternalGoodsBatchOffsaleAPIResponse 交易猫外部商家批量下架商品接口 API返回值 alibaba.jym.item.external.goods.batch.offsale

供外部B端商家接入,提交批量下架商品请求,返回批量下架任务结果

type AlibabaJymItemExternalGoodsBatchOffsaleAPIResponseModel added in v1.2.5

type AlibabaJymItemExternalGoodsBatchOffsaleAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_jym_item_external_goods_batch_offsale_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 状态码
	StateCode string `json:"state_code,omitempty" xml:"state_code,omitempty"`
	// 错误信息
	ExtraErrMsg string `json:"extra_err_msg,omitempty" xml:"extra_err_msg,omitempty"`
	// 商品批量下架接口返回
	Result *GoodsBatchResultDto `json:"result,omitempty" xml:"result,omitempty"`
	// 是否成功
	Succeed bool `json:"succeed,omitempty" xml:"succeed,omitempty"`
}

AlibabaJymItemExternalGoodsBatchOffsaleAPIResponseModel is 交易猫外部商家批量下架商品接口 成功返回结果

type AlibabaJymItemExternalGoodsBatchOnsaleAPIRequest added in v1.2.5

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

AlibabaJymItemExternalGoodsBatchOnsaleAPIRequest 交易猫外部商家批量上架商品接口 API请求 alibaba.jym.item.external.goods.batch.onsale

供外部B端商家接入,提交批量上架商品请求,返回批量上架任务结果

func NewAlibabaJymItemExternalGoodsBatchOnsaleRequest added in v1.2.5

func NewAlibabaJymItemExternalGoodsBatchOnsaleRequest() *AlibabaJymItemExternalGoodsBatchOnsaleAPIRequest

NewAlibabaJymItemExternalGoodsBatchOnsaleRequest 初始化AlibabaJymItemExternalGoodsBatchOnsaleAPIRequest对象

func (AlibabaJymItemExternalGoodsBatchOnsaleAPIRequest) GetApiMethodName added in v1.2.5

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaJymItemExternalGoodsBatchOnsaleAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaJymItemExternalGoodsBatchOnsaleAPIRequest) GetGoodsOnSaleCommand added in v1.2.5

GetGoodsOnSaleCommand GoodsOnSaleCommand Getter

func (AlibabaJymItemExternalGoodsBatchOnsaleAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaJymItemExternalGoodsBatchOnsaleAPIRequest) SetGoodsOnSaleCommand added in v1.2.5

func (r *AlibabaJymItemExternalGoodsBatchOnsaleAPIRequest) SetGoodsOnSaleCommand(_goodsOnSaleCommand *GoodsOnSaleCommandDto) error

SetGoodsOnSaleCommand is GoodsOnSaleCommand Setter 商品批量上架接口入参

type AlibabaJymItemExternalGoodsBatchOnsaleAPIResponse added in v1.2.5

type AlibabaJymItemExternalGoodsBatchOnsaleAPIResponse struct {
	model.CommonResponse
	AlibabaJymItemExternalGoodsBatchOnsaleAPIResponseModel
}

AlibabaJymItemExternalGoodsBatchOnsaleAPIResponse 交易猫外部商家批量上架商品接口 API返回值 alibaba.jym.item.external.goods.batch.onsale

供外部B端商家接入,提交批量上架商品请求,返回批量上架任务结果

type AlibabaJymItemExternalGoodsBatchOnsaleAPIResponseModel added in v1.2.5

type AlibabaJymItemExternalGoodsBatchOnsaleAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_jym_item_external_goods_batch_onsale_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 状态码
	StateCode string `json:"state_code,omitempty" xml:"state_code,omitempty"`
	// 错误信息
	ExtraErrMsg string `json:"extra_err_msg,omitempty" xml:"extra_err_msg,omitempty"`
	// 商品批量上架接口返回
	Result *GoodsBatchResultDto `json:"result,omitempty" xml:"result,omitempty"`
	// 是否成功
	Succeed bool `json:"succeed,omitempty" xml:"succeed,omitempty"`
}

AlibabaJymItemExternalGoodsBatchOnsaleAPIResponseModel is 交易猫外部商家批量上架商品接口 成功返回结果

type AlibabaJymItemExternalGoodsBatchPublishAPIRequest added in v1.2.5

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

AlibabaJymItemExternalGoodsBatchPublishAPIRequest 交易猫外部商家批量发布商品接口 API请求 alibaba.jym.item.external.goods.batch.publish

供外部B端商家接入,提交批量发布商品请求,返回批量发布任务结果

func NewAlibabaJymItemExternalGoodsBatchPublishRequest added in v1.2.5

func NewAlibabaJymItemExternalGoodsBatchPublishRequest() *AlibabaJymItemExternalGoodsBatchPublishAPIRequest

NewAlibabaJymItemExternalGoodsBatchPublishRequest 初始化AlibabaJymItemExternalGoodsBatchPublishAPIRequest对象

func (AlibabaJymItemExternalGoodsBatchPublishAPIRequest) GetApiMethodName added in v1.2.5

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaJymItemExternalGoodsBatchPublishAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaJymItemExternalGoodsBatchPublishAPIRequest) GetGoodsPublishCommand added in v1.2.5

GetGoodsPublishCommand GoodsPublishCommand Getter

func (AlibabaJymItemExternalGoodsBatchPublishAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaJymItemExternalGoodsBatchPublishAPIRequest) SetGoodsPublishCommand added in v1.2.5

func (r *AlibabaJymItemExternalGoodsBatchPublishAPIRequest) SetGoodsPublishCommand(_goodsPublishCommand *GoodsPublishCommandDto) error

SetGoodsPublishCommand is GoodsPublishCommand Setter 商品批量发布接口入参

type AlibabaJymItemExternalGoodsBatchPublishAPIResponse added in v1.2.5

type AlibabaJymItemExternalGoodsBatchPublishAPIResponse struct {
	model.CommonResponse
	AlibabaJymItemExternalGoodsBatchPublishAPIResponseModel
}

AlibabaJymItemExternalGoodsBatchPublishAPIResponse 交易猫外部商家批量发布商品接口 API返回值 alibaba.jym.item.external.goods.batch.publish

供外部B端商家接入,提交批量发布商品请求,返回批量发布任务结果

type AlibabaJymItemExternalGoodsBatchPublishAPIResponseModel added in v1.2.5

type AlibabaJymItemExternalGoodsBatchPublishAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_jym_item_external_goods_batch_publish_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 状态码
	StateCode string `json:"state_code,omitempty" xml:"state_code,omitempty"`
	// 错误信息
	ExtraErrMsg string `json:"extra_err_msg,omitempty" xml:"extra_err_msg,omitempty"`
	// 商品批量发布接口返回
	Result *GoodsBatchResultDto `json:"result,omitempty" xml:"result,omitempty"`
	// 是否成功
	Succeed bool `json:"succeed,omitempty" xml:"succeed,omitempty"`
}

AlibabaJymItemExternalGoodsBatchPublishAPIResponseModel is 交易猫外部商家批量发布商品接口 成功返回结果

type AlibabaJymItemExternalGoodsBatchtaskQueryAPIRequest added in v1.2.5

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

AlibabaJymItemExternalGoodsBatchtaskQueryAPIRequest 交易猫外部商家查询商品批量任务接口 API请求 alibaba.jym.item.external.goods.batchtask.query

供外部B端商家接入,请求查询商品批量任务,返回商品批量任务查询结果

func NewAlibabaJymItemExternalGoodsBatchtaskQueryRequest added in v1.2.5

func NewAlibabaJymItemExternalGoodsBatchtaskQueryRequest() *AlibabaJymItemExternalGoodsBatchtaskQueryAPIRequest

NewAlibabaJymItemExternalGoodsBatchtaskQueryRequest 初始化AlibabaJymItemExternalGoodsBatchtaskQueryAPIRequest对象

func (AlibabaJymItemExternalGoodsBatchtaskQueryAPIRequest) GetApiMethodName added in v1.2.5

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaJymItemExternalGoodsBatchtaskQueryAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaJymItemExternalGoodsBatchtaskQueryAPIRequest) GetGoodsBatchTaskQuery added in v1.2.5

GetGoodsBatchTaskQuery GoodsBatchTaskQuery Getter

func (AlibabaJymItemExternalGoodsBatchtaskQueryAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaJymItemExternalGoodsBatchtaskQueryAPIRequest) SetGoodsBatchTaskQuery added in v1.2.5

func (r *AlibabaJymItemExternalGoodsBatchtaskQueryAPIRequest) SetGoodsBatchTaskQuery(_goodsBatchTaskQuery *GoodsBatchTaskQueryDto) error

SetGoodsBatchTaskQuery is GoodsBatchTaskQuery Setter 查询商品批量任务接口入参

type AlibabaJymItemExternalGoodsBatchtaskQueryAPIResponse added in v1.2.5

type AlibabaJymItemExternalGoodsBatchtaskQueryAPIResponse struct {
	model.CommonResponse
	AlibabaJymItemExternalGoodsBatchtaskQueryAPIResponseModel
}

AlibabaJymItemExternalGoodsBatchtaskQueryAPIResponse 交易猫外部商家查询商品批量任务接口 API返回值 alibaba.jym.item.external.goods.batchtask.query

供外部B端商家接入,请求查询商品批量任务,返回商品批量任务查询结果

type AlibabaJymItemExternalGoodsBatchtaskQueryAPIResponseModel added in v1.2.5

type AlibabaJymItemExternalGoodsBatchtaskQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_jym_item_external_goods_batchtask_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 状态码
	StateCode string `json:"state_code,omitempty" xml:"state_code,omitempty"`
	// 错误信息
	ExtraErrMsg string `json:"extra_err_msg,omitempty" xml:"extra_err_msg,omitempty"`
	// 查询商品批量任务接口返回
	Result *GoodsBatchTaskResultDto `json:"result,omitempty" xml:"result,omitempty"`
	// 是否成功
	Succeed bool `json:"succeed,omitempty" xml:"succeed,omitempty"`
}

AlibabaJymItemExternalGoodsBatchtaskQueryAPIResponseModel is 交易猫外部商家查询商品批量任务接口 成功返回结果

type AlibabaJymItemExternalGoodsDetailQueryAPIRequest added in v1.2.5

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

AlibabaJymItemExternalGoodsDetailQueryAPIRequest 交易猫外部商家商品详情查询接口 API请求 alibaba.jym.item.external.goods.detail.query

供外部B端商家接入,请求查询商品详情,返回商品详情查询结果

func NewAlibabaJymItemExternalGoodsDetailQueryRequest added in v1.2.5

func NewAlibabaJymItemExternalGoodsDetailQueryRequest() *AlibabaJymItemExternalGoodsDetailQueryAPIRequest

NewAlibabaJymItemExternalGoodsDetailQueryRequest 初始化AlibabaJymItemExternalGoodsDetailQueryAPIRequest对象

func (AlibabaJymItemExternalGoodsDetailQueryAPIRequest) GetApiMethodName added in v1.2.5

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaJymItemExternalGoodsDetailQueryAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaJymItemExternalGoodsDetailQueryAPIRequest) GetGoodsDetailQuery added in v1.2.5

GetGoodsDetailQuery GoodsDetailQuery Getter

func (AlibabaJymItemExternalGoodsDetailQueryAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaJymItemExternalGoodsDetailQueryAPIRequest) SetGoodsDetailQuery added in v1.2.5

func (r *AlibabaJymItemExternalGoodsDetailQueryAPIRequest) SetGoodsDetailQuery(_goodsDetailQuery *GoodsDetailQueryDto) error

SetGoodsDetailQuery is GoodsDetailQuery Setter 商品详情查询接口入参

type AlibabaJymItemExternalGoodsDetailQueryAPIResponse added in v1.2.5

type AlibabaJymItemExternalGoodsDetailQueryAPIResponse struct {
	model.CommonResponse
	AlibabaJymItemExternalGoodsDetailQueryAPIResponseModel
}

AlibabaJymItemExternalGoodsDetailQueryAPIResponse 交易猫外部商家商品详情查询接口 API返回值 alibaba.jym.item.external.goods.detail.query

供外部B端商家接入,请求查询商品详情,返回商品详情查询结果

type AlibabaJymItemExternalGoodsDetailQueryAPIResponseModel added in v1.2.5

type AlibabaJymItemExternalGoodsDetailQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_jym_item_external_goods_detail_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 状态码
	StateCode string `json:"state_code,omitempty" xml:"state_code,omitempty"`
	// 错误信息
	ExtraErrMsg string `json:"extra_err_msg,omitempty" xml:"extra_err_msg,omitempty"`
	// 商品详情查询接口返回
	Result *GoodsDetailResultDto `json:"result,omitempty" xml:"result,omitempty"`
	// 是否成功
	Succeed bool `json:"succeed,omitempty" xml:"succeed,omitempty"`
}

AlibabaJymItemExternalGoodsDetailQueryAPIResponseModel is 交易猫外部商家商品详情查询接口 成功返回结果

type AlibabaJymItemExternalGoodsStatusBatchQueryAPIRequest added in v1.2.5

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

AlibabaJymItemExternalGoodsStatusBatchQueryAPIRequest 交易猫外部商家商品状态批量查询接口 API请求 alibaba.jym.item.external.goods.status.batch.query

供外部B端商家接入,请求查询商品状态,返回商品状态查询结果

func NewAlibabaJymItemExternalGoodsStatusBatchQueryRequest added in v1.2.5

func NewAlibabaJymItemExternalGoodsStatusBatchQueryRequest() *AlibabaJymItemExternalGoodsStatusBatchQueryAPIRequest

NewAlibabaJymItemExternalGoodsStatusBatchQueryRequest 初始化AlibabaJymItemExternalGoodsStatusBatchQueryAPIRequest对象

func (AlibabaJymItemExternalGoodsStatusBatchQueryAPIRequest) GetApiMethodName added in v1.2.5

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaJymItemExternalGoodsStatusBatchQueryAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaJymItemExternalGoodsStatusBatchQueryAPIRequest) GetBatchGoodsStatusQuery added in v1.2.5

GetBatchGoodsStatusQuery BatchGoodsStatusQuery Getter

func (AlibabaJymItemExternalGoodsStatusBatchQueryAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaJymItemExternalGoodsStatusBatchQueryAPIRequest) SetBatchGoodsStatusQuery added in v1.2.5

func (r *AlibabaJymItemExternalGoodsStatusBatchQueryAPIRequest) SetBatchGoodsStatusQuery(_batchGoodsStatusQuery *BatchGoodsStatusQueryDto) error

SetBatchGoodsStatusQuery is BatchGoodsStatusQuery Setter 批量查询商品状态接口入参

type AlibabaJymItemExternalGoodsStatusBatchQueryAPIResponse added in v1.2.5

type AlibabaJymItemExternalGoodsStatusBatchQueryAPIResponse struct {
	model.CommonResponse
	AlibabaJymItemExternalGoodsStatusBatchQueryAPIResponseModel
}

AlibabaJymItemExternalGoodsStatusBatchQueryAPIResponse 交易猫外部商家商品状态批量查询接口 API返回值 alibaba.jym.item.external.goods.status.batch.query

供外部B端商家接入,请求查询商品状态,返回商品状态查询结果

type AlibabaJymItemExternalGoodsStatusBatchQueryAPIResponseModel added in v1.2.5

type AlibabaJymItemExternalGoodsStatusBatchQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_jym_item_external_goods_status_batch_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 状态码
	StateCode string `json:"state_code,omitempty" xml:"state_code,omitempty"`
	// 错误信息
	ExtraErrMsg string `json:"extra_err_msg,omitempty" xml:"extra_err_msg,omitempty"`
	// 批量查询商品状态接口返回
	Result *BatchGoodsStatusResultDto `json:"result,omitempty" xml:"result,omitempty"`
	// 是否成功
	Succeed bool `json:"succeed,omitempty" xml:"succeed,omitempty"`
}

AlibabaJymItemExternalGoodsStatusBatchQueryAPIResponseModel is 交易猫外部商家商品状态批量查询接口 成功返回结果

type AlibabaJymItemGameSeverQueryAPIRequest added in v1.2.5

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

AlibabaJymItemGameSeverQueryAPIRequest 查询商品发布客户端下可用服务器列表 API请求 alibaba.jym.item.game.sever.query

查询商品发布客户端下可用服务器列表

func NewAlibabaJymItemGameSeverQueryRequest added in v1.2.5

func NewAlibabaJymItemGameSeverQueryRequest() *AlibabaJymItemGameSeverQueryAPIRequest

NewAlibabaJymItemGameSeverQueryRequest 初始化AlibabaJymItemGameSeverQueryAPIRequest对象

func (AlibabaJymItemGameSeverQueryAPIRequest) GetApiMethodName added in v1.2.5

func (r AlibabaJymItemGameSeverQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaJymItemGameSeverQueryAPIRequest) GetApiParams added in v1.2.5

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaJymItemGameSeverQueryAPIRequest) GetClientId added in v1.2.5

GetClientId ClientId Getter

func (AlibabaJymItemGameSeverQueryAPIRequest) GetGameId added in v1.2.5

GetGameId GameId Getter

func (AlibabaJymItemGameSeverQueryAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaJymItemGameSeverQueryAPIRequest) SetClientId added in v1.2.5

func (r *AlibabaJymItemGameSeverQueryAPIRequest) SetClientId(_clientId int64) error

SetClientId is ClientId Setter 客户端ID

func (*AlibabaJymItemGameSeverQueryAPIRequest) SetGameId added in v1.2.5

func (r *AlibabaJymItemGameSeverQueryAPIRequest) SetGameId(_gameId int64) error

SetGameId is GameId Setter 游戏ID

type AlibabaJymItemGameSeverQueryAPIResponse added in v1.2.5

type AlibabaJymItemGameSeverQueryAPIResponse struct {
	model.CommonResponse
	AlibabaJymItemGameSeverQueryAPIResponseModel
}

AlibabaJymItemGameSeverQueryAPIResponse 查询商品发布客户端下可用服务器列表 API返回值 alibaba.jym.item.game.sever.query

查询商品发布客户端下可用服务器列表

type AlibabaJymItemGameSeverQueryAPIResponseModel added in v1.2.5

type AlibabaJymItemGameSeverQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_jym_item_game_sever_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 游戏服务器对象
	Result []GoodsServerDto `json:"result,omitempty" xml:"result>goods_server_dto,omitempty"`
	// 响应码信息描述
	ExtraErrMsg string `json:"extra_err_msg,omitempty" xml:"extra_err_msg,omitempty"`
	// 响应码
	StateCode string `json:"state_code,omitempty" xml:"state_code,omitempty"`
	// 是否请求成功
	Succeed bool `json:"succeed,omitempty" xml:"succeed,omitempty"`
}

AlibabaJymItemGameSeverQueryAPIResponseModel is 查询商品发布客户端下可用服务器列表 成功返回结果

type AlibabaJymItemPropertyDefQueryAPIRequest added in v1.2.5

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

AlibabaJymItemPropertyDefQueryAPIRequest 交易猫商品属性定义查询 API请求 alibaba.jym.item.property.def.query

查询商品发布属性定义详情

func NewAlibabaJymItemPropertyDefQueryRequest added in v1.2.5

func NewAlibabaJymItemPropertyDefQueryRequest() *AlibabaJymItemPropertyDefQueryAPIRequest

NewAlibabaJymItemPropertyDefQueryRequest 初始化AlibabaJymItemPropertyDefQueryAPIRequest对象

func (AlibabaJymItemPropertyDefQueryAPIRequest) GetApiMethodName added in v1.2.5

func (r AlibabaJymItemPropertyDefQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaJymItemPropertyDefQueryAPIRequest) GetApiParams added in v1.2.5

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaJymItemPropertyDefQueryAPIRequest) GetCategoryId added in v1.2.5

GetCategoryId CategoryId Getter

func (AlibabaJymItemPropertyDefQueryAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaJymItemPropertyDefQueryAPIRequest) SetCategoryId added in v1.2.5

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

SetCategoryId is CategoryId Setter 二级类目ID

type AlibabaJymItemPropertyDefQueryAPIResponse added in v1.2.5

type AlibabaJymItemPropertyDefQueryAPIResponse struct {
	model.CommonResponse
	AlibabaJymItemPropertyDefQueryAPIResponseModel
}

AlibabaJymItemPropertyDefQueryAPIResponse 交易猫商品属性定义查询 API返回值 alibaba.jym.item.property.def.query

查询商品发布属性定义详情

type AlibabaJymItemPropertyDefQueryAPIResponseModel added in v1.2.5

type AlibabaJymItemPropertyDefQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_jym_item_property_def_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 状态码
	StateCode string `json:"state_code,omitempty" xml:"state_code,omitempty"`
	// 错误信息
	ExtraErrMsg string `json:"extra_err_msg,omitempty" xml:"extra_err_msg,omitempty"`
	// 商品发布填写资料定义DTO
	Result *GoodsPublishPropertyDefDetailDto `json:"result,omitempty" xml:"result,omitempty"`
	// 是否成功
	Succeed bool `json:"succeed,omitempty" xml:"succeed,omitempty"`
}

AlibabaJymItemPropertyDefQueryAPIResponseModel is 交易猫商品属性定义查询 成功返回结果

type AliexpressSocialItemPromotionAPIRequest

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

AliexpressSocialItemPromotionAPIRequest 获取推广链接 API请求 aliexpress.social.item.promotion

获取商品社交推广链接

func NewAliexpressSocialItemPromotionRequest

func NewAliexpressSocialItemPromotionRequest() *AliexpressSocialItemPromotionAPIRequest

NewAliexpressSocialItemPromotionRequest 初始化AliexpressSocialItemPromotionAPIRequest对象

func (AliexpressSocialItemPromotionAPIRequest) GetAf

GetAf Af Getter

func (AliexpressSocialItemPromotionAPIRequest) GetApiMethodName

func (r AliexpressSocialItemPromotionAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliexpressSocialItemPromotionAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (AliexpressSocialItemPromotionAPIRequest) GetCn

GetCn Cn Getter

func (AliexpressSocialItemPromotionAPIRequest) GetCv

GetCv Cv Getter

func (AliexpressSocialItemPromotionAPIRequest) GetDp

GetDp Dp Getter

func (AliexpressSocialItemPromotionAPIRequest) GetRawParams added in v1.2.8

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

func (AliexpressSocialItemPromotionAPIRequest) GetTargetUrl

GetTargetUrl TargetUrl Getter

func (*AliexpressSocialItemPromotionAPIRequest) SetAf

SetAf is Af Setter 子渠道号

func (*AliexpressSocialItemPromotionAPIRequest) SetCn

SetCn is Cn Setter campaign Id

func (*AliexpressSocialItemPromotionAPIRequest) SetCv

SetCv is Cv Setter creative id

func (*AliexpressSocialItemPromotionAPIRequest) SetDp

SetDp is Dp Setter click id

func (*AliexpressSocialItemPromotionAPIRequest) SetTargetUrl

func (r *AliexpressSocialItemPromotionAPIRequest) SetTargetUrl(_targetUrl string) error

SetTargetUrl is TargetUrl Setter 推广的商品链接

type AliexpressSocialItemPromotionAPIResponse

type AliexpressSocialItemPromotionAPIResponse struct {
	model.CommonResponse
	AliexpressSocialItemPromotionAPIResponseModel
}

AliexpressSocialItemPromotionAPIResponse 获取推广链接 API返回值 aliexpress.social.item.promotion

获取商品社交推广链接

type AliexpressSocialItemPromotionAPIResponseModel

type AliexpressSocialItemPromotionAPIResponseModel struct {
	XMLName xml.Name `xml:"aliexpress_social_item_promotion_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 推广链接
	PromotionUrl string `json:"promotion_url,omitempty" xml:"promotion_url,omitempty"`
	// 错误码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 错误信息
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AliexpressSocialItemPromotionAPIResponseModel is 获取推广链接 成功返回结果

type AliexpressSocialItemRankingAPIRequest

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

AliexpressSocialItemRankingAPIRequest 社交排行榜 API请求 aliexpress.social.item.ranking

社交商品成交排行榜

func NewAliexpressSocialItemRankingRequest

func NewAliexpressSocialItemRankingRequest() *AliexpressSocialItemRankingAPIRequest

NewAliexpressSocialItemRankingRequest 初始化AliexpressSocialItemRankingAPIRequest对象

func (AliexpressSocialItemRankingAPIRequest) GetApiMethodName

func (r AliexpressSocialItemRankingAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliexpressSocialItemRankingAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (AliexpressSocialItemRankingAPIRequest) GetCateId

GetCateId CateId Getter

func (AliexpressSocialItemRankingAPIRequest) GetCountryList

func (r AliexpressSocialItemRankingAPIRequest) GetCountryList() []string

GetCountryList CountryList Getter

func (AliexpressSocialItemRankingAPIRequest) GetCurrency

GetCurrency Currency Getter

func (AliexpressSocialItemRankingAPIRequest) GetLocale

GetLocale Locale Getter

func (AliexpressSocialItemRankingAPIRequest) GetPageNo

GetPageNo PageNo Getter

func (AliexpressSocialItemRankingAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (AliexpressSocialItemRankingAPIRequest) GetRawParams added in v1.2.8

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

func (*AliexpressSocialItemRankingAPIRequest) SetCateId

func (r *AliexpressSocialItemRankingAPIRequest) SetCateId(_cateId int64) error

SetCateId is CateId Setter 类目ID

func (*AliexpressSocialItemRankingAPIRequest) SetCountryList

func (r *AliexpressSocialItemRankingAPIRequest) SetCountryList(_countryList []string) error

SetCountryList is CountryList Setter 国家列表

func (*AliexpressSocialItemRankingAPIRequest) SetCurrency

func (r *AliexpressSocialItemRankingAPIRequest) SetCurrency(_currency string) error

SetCurrency is Currency Setter 币种

func (*AliexpressSocialItemRankingAPIRequest) SetLocale

func (r *AliexpressSocialItemRankingAPIRequest) SetLocale(_locale string) error

SetLocale is Locale Setter locale,格式为language+"_"+country

func (*AliexpressSocialItemRankingAPIRequest) SetPageNo

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

SetPageNo is PageNo Setter 页码

func (*AliexpressSocialItemRankingAPIRequest) SetPageSize

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

SetPageSize is PageSize Setter 每页条数

type AliexpressSocialItemRankingAPIResponse

type AliexpressSocialItemRankingAPIResponse struct {
	model.CommonResponse
	AliexpressSocialItemRankingAPIResponseModel
}

AliexpressSocialItemRankingAPIResponse 社交排行榜 API返回值 aliexpress.social.item.ranking

社交商品成交排行榜

type AliexpressSocialItemRankingAPIResponseModel

type AliexpressSocialItemRankingAPIResponseModel struct {
	XMLName xml.Name `xml:"aliexpress_social_item_ranking_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回包装类型
	Result *ItemPickPagingResult `json:"result,omitempty" xml:"result,omitempty"`
}

AliexpressSocialItemRankingAPIResponseModel is 社交排行榜 成功返回结果

type AliexpressSocialItemSearchAPIRequest

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

AliexpressSocialItemSearchAPIRequest AE社交选品 API请求 aliexpress.social.item.search

AE社交选品,通过各种筛选条件对社交商品池进行筛选

func NewAliexpressSocialItemSearchRequest

func NewAliexpressSocialItemSearchRequest() *AliexpressSocialItemSearchAPIRequest

NewAliexpressSocialItemSearchRequest 初始化AliexpressSocialItemSearchAPIRequest对象

func (AliexpressSocialItemSearchAPIRequest) GetAllianceItem

func (r AliexpressSocialItemSearchAPIRequest) GetAllianceItem() bool

GetAllianceItem AllianceItem Getter

func (AliexpressSocialItemSearchAPIRequest) GetApiMethodName

func (r AliexpressSocialItemSearchAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliexpressSocialItemSearchAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (AliexpressSocialItemSearchAPIRequest) GetCateId

GetCateId CateId Getter

func (AliexpressSocialItemSearchAPIRequest) GetCommentScore

func (r AliexpressSocialItemSearchAPIRequest) GetCommentScore() string

GetCommentScore CommentScore Getter

func (AliexpressSocialItemSearchAPIRequest) GetCommissionRateMax

func (r AliexpressSocialItemSearchAPIRequest) GetCommissionRateMax() string

GetCommissionRateMax CommissionRateMax Getter

func (AliexpressSocialItemSearchAPIRequest) GetCommissionRateMin

func (r AliexpressSocialItemSearchAPIRequest) GetCommissionRateMin() string

GetCommissionRateMin CommissionRateMin Getter

func (AliexpressSocialItemSearchAPIRequest) GetCurrency

GetCurrency Currency Getter

func (AliexpressSocialItemSearchAPIRequest) GetDesc

GetDesc Desc Getter

func (AliexpressSocialItemSearchAPIRequest) GetHasVideo

GetHasVideo HasVideo Getter

func (AliexpressSocialItemSearchAPIRequest) GetIsShipFree

func (r AliexpressSocialItemSearchAPIRequest) GetIsShipFree() bool

GetIsShipFree IsShipFree Getter

func (AliexpressSocialItemSearchAPIRequest) GetKeyword

GetKeyword Keyword Getter

func (AliexpressSocialItemSearchAPIRequest) GetLocale

GetLocale Locale Getter

func (AliexpressSocialItemSearchAPIRequest) GetLogisticsTime

func (r AliexpressSocialItemSearchAPIRequest) GetLogisticsTime() int64

GetLogisticsTime LogisticsTime Getter

func (AliexpressSocialItemSearchAPIRequest) GetMaxPrice

GetMaxPrice MaxPrice Getter

func (AliexpressSocialItemSearchAPIRequest) GetMinPrice

GetMinPrice MinPrice Getter

func (AliexpressSocialItemSearchAPIRequest) GetOrderBy

GetOrderBy OrderBy Getter

func (AliexpressSocialItemSearchAPIRequest) GetPageNo

GetPageNo PageNo Getter

func (AliexpressSocialItemSearchAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (AliexpressSocialItemSearchAPIRequest) GetRawParams added in v1.2.8

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

func (AliexpressSocialItemSearchAPIRequest) GetShipTo

GetShipTo ShipTo Getter

func (*AliexpressSocialItemSearchAPIRequest) SetAllianceItem

func (r *AliexpressSocialItemSearchAPIRequest) SetAllianceItem(_allianceItem bool) error

SetAllianceItem is AllianceItem Setter 是否联盟商品

func (*AliexpressSocialItemSearchAPIRequest) SetCateId

func (r *AliexpressSocialItemSearchAPIRequest) SetCateId(_cateId int64) error

SetCateId is CateId Setter 类目ID

func (*AliexpressSocialItemSearchAPIRequest) SetCommentScore

func (r *AliexpressSocialItemSearchAPIRequest) SetCommentScore(_commentScore string) error

SetCommentScore is CommentScore Setter 评价分数

func (*AliexpressSocialItemSearchAPIRequest) SetCommissionRateMax

func (r *AliexpressSocialItemSearchAPIRequest) SetCommissionRateMax(_commissionRateMax string) error

SetCommissionRateMax is CommissionRateMax Setter 佣金最大值

func (*AliexpressSocialItemSearchAPIRequest) SetCommissionRateMin

func (r *AliexpressSocialItemSearchAPIRequest) SetCommissionRateMin(_commissionRateMin string) error

SetCommissionRateMin is CommissionRateMin Setter 佣金最小值

func (*AliexpressSocialItemSearchAPIRequest) SetCurrency

func (r *AliexpressSocialItemSearchAPIRequest) SetCurrency(_currency string) error

SetCurrency is Currency Setter 币种

func (*AliexpressSocialItemSearchAPIRequest) SetDesc

SetDesc is Desc Setter 是否逆序

func (*AliexpressSocialItemSearchAPIRequest) SetHasVideo

func (r *AliexpressSocialItemSearchAPIRequest) SetHasVideo(_hasVideo bool) error

SetHasVideo is HasVideo Setter 是否有视频

func (*AliexpressSocialItemSearchAPIRequest) SetIsShipFree

func (r *AliexpressSocialItemSearchAPIRequest) SetIsShipFree(_isShipFree bool) error

SetIsShipFree is IsShipFree Setter 是否免邮

func (*AliexpressSocialItemSearchAPIRequest) SetKeyword

func (r *AliexpressSocialItemSearchAPIRequest) SetKeyword(_keyword string) error

SetKeyword is Keyword Setter 搜索关键字

func (*AliexpressSocialItemSearchAPIRequest) SetLocale

func (r *AliexpressSocialItemSearchAPIRequest) SetLocale(_locale string) error

SetLocale is Locale Setter locale,格式为language+"_"+country

func (*AliexpressSocialItemSearchAPIRequest) SetLogisticsTime

func (r *AliexpressSocialItemSearchAPIRequest) SetLogisticsTime(_logisticsTime int64) error

SetLogisticsTime is LogisticsTime Setter 物流时效

func (*AliexpressSocialItemSearchAPIRequest) SetMaxPrice

func (r *AliexpressSocialItemSearchAPIRequest) SetMaxPrice(_maxPrice string) error

SetMaxPrice is MaxPrice Setter 最高价格

func (*AliexpressSocialItemSearchAPIRequest) SetMinPrice

func (r *AliexpressSocialItemSearchAPIRequest) SetMinPrice(_minPrice string) error

SetMinPrice is MinPrice Setter 最低价格

func (*AliexpressSocialItemSearchAPIRequest) SetOrderBy

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

SetOrderBy is OrderBy Setter order by properties

func (*AliexpressSocialItemSearchAPIRequest) SetPageNo

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

SetPageNo is PageNo Setter 页码

func (*AliexpressSocialItemSearchAPIRequest) SetPageSize

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

SetPageSize is PageSize Setter page size

func (*AliexpressSocialItemSearchAPIRequest) SetShipTo

func (r *AliexpressSocialItemSearchAPIRequest) SetShipTo(_shipTo string) error

SetShipTo is ShipTo Setter shipTo国家

type AliexpressSocialItemSearchAPIResponse

type AliexpressSocialItemSearchAPIResponse struct {
	model.CommonResponse
	AliexpressSocialItemSearchAPIResponseModel
}

AliexpressSocialItemSearchAPIResponse AE社交选品 API返回值 aliexpress.social.item.search

AE社交选品,通过各种筛选条件对社交商品池进行筛选

type AliexpressSocialItemSearchAPIResponseModel

type AliexpressSocialItemSearchAPIResponseModel struct {
	XMLName xml.Name `xml:"aliexpress_social_item_search_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 报类型
	Result *ItemPickPagingResult `json:"result,omitempty" xml:"result,omitempty"`
}

AliexpressSocialItemSearchAPIResponseModel is AE社交选品 成功返回结果

type AlitripTravelElementsSearchAPIRequest

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

AlitripTravelElementsSearchAPIRequest 商家元素搜索 API请求 alitrip.travel.elements.search

提供商家维护的景点、酒店、餐饮等元素搜索

func NewAlitripTravelElementsSearchRequest

func NewAlitripTravelElementsSearchRequest() *AlitripTravelElementsSearchAPIRequest

NewAlitripTravelElementsSearchRequest 初始化AlitripTravelElementsSearchAPIRequest对象

func (AlitripTravelElementsSearchAPIRequest) GetApiMethodName

func (r AlitripTravelElementsSearchAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlitripTravelElementsSearchAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlitripTravelElementsSearchAPIRequest) GetCount

GetCount Count Getter

func (AlitripTravelElementsSearchAPIRequest) GetQuery

GetQuery Query Getter

func (AlitripTravelElementsSearchAPIRequest) GetRawParams added in v1.2.8

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

func (AlitripTravelElementsSearchAPIRequest) GetSellerId

GetSellerId SellerId Getter

func (AlitripTravelElementsSearchAPIRequest) GetType

GetType Type Getter

func (*AlitripTravelElementsSearchAPIRequest) SetCount

SetCount is Count Setter 查询数量,限制100

func (*AlitripTravelElementsSearchAPIRequest) SetQuery

SetQuery is Query Setter 查询关键词

func (*AlitripTravelElementsSearchAPIRequest) SetSellerId

func (r *AlitripTravelElementsSearchAPIRequest) SetSellerId(_sellerId int64) error

SetSellerId is SellerId Setter 商家id

func (*AlitripTravelElementsSearchAPIRequest) SetType

SetType is Type Setter 资源类型

type AlitripTravelElementsSearchAPIResponse

type AlitripTravelElementsSearchAPIResponse struct {
	model.CommonResponse
	AlitripTravelElementsSearchAPIResponseModel
}

AlitripTravelElementsSearchAPIResponse 商家元素搜索 API返回值 alitrip.travel.elements.search

提供商家维护的景点、酒店、餐饮等元素搜索

type AlitripTravelElementsSearchAPIResponseModel

type AlitripTravelElementsSearchAPIResponseModel struct {
	XMLName xml.Name `xml:"alitrip_travel_elements_search_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回对象
	Result *ResourceData `json:"result,omitempty" xml:"result,omitempty"`
}

AlitripTravelElementsSearchAPIResponseModel is 商家元素搜索 成功返回结果

type BatchGoodsStatusQueryDto added in v1.2.5

type BatchGoodsStatusQueryDto struct {
	// 商品ID数组,size最大支持100
	GoodsIdList []int64 `json:"goods_id_list,omitempty" xml:"goods_id_list>int64,omitempty"`
	// 每页数量,支持最大100
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 页数
	Page int64 `json:"page,omitempty" xml:"page,omitempty"`
}

BatchGoodsStatusQueryDto 结构体

type BatchGoodsStatusResultDto added in v1.2.5

type BatchGoodsStatusResultDto struct {
	// 商品状态列表
	GoodsStatusList []GoodsStatusDto `json:"goods_status_list,omitempty" xml:"goods_status_list>goods_status_dto,omitempty"`
}

BatchGoodsStatusResultDto 结构体

type CainiaoCntecItemChangeMessageAPIRequest

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

CainiaoCntecItemChangeMessageAPIRequest 商品变更消息 API请求 cainiao.cntec.item.change.message

供货商商品信息变更消息

func NewCainiaoCntecItemChangeMessageRequest

func NewCainiaoCntecItemChangeMessageRequest() *CainiaoCntecItemChangeMessageAPIRequest

NewCainiaoCntecItemChangeMessageRequest 初始化CainiaoCntecItemChangeMessageAPIRequest对象

func (CainiaoCntecItemChangeMessageAPIRequest) GetApiMethodName

func (r CainiaoCntecItemChangeMessageAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoCntecItemChangeMessageAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaoCntecItemChangeMessageAPIRequest) GetItemChangeMessage

GetItemChangeMessage ItemChangeMessage Getter

func (CainiaoCntecItemChangeMessageAPIRequest) GetRawParams added in v1.2.8

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

func (*CainiaoCntecItemChangeMessageAPIRequest) SetItemChangeMessage

func (r *CainiaoCntecItemChangeMessageAPIRequest) SetItemChangeMessage(_itemChangeMessage *SupplyItemChangeMessage) error

SetItemChangeMessage is ItemChangeMessage Setter 供应商商品变更信息

type CainiaoCntecItemChangeMessageAPIResponse

type CainiaoCntecItemChangeMessageAPIResponse struct {
	model.CommonResponse
	CainiaoCntecItemChangeMessageAPIResponseModel
}

CainiaoCntecItemChangeMessageAPIResponse 商品变更消息 API返回值 cainiao.cntec.item.change.message

供货商商品信息变更消息

type CainiaoCntecItemChangeMessageAPIResponseModel

type CainiaoCntecItemChangeMessageAPIResponseModel struct {
	XMLName xml.Name `xml:"cainiao_cntec_item_change_message_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 调用返回的result结构体
	Result *CainiaoCntecItemChangeMessageResult `json:"result,omitempty" xml:"result,omitempty"`
}

CainiaoCntecItemChangeMessageAPIResponseModel is 商品变更消息 成功返回结果

type CainiaoCntecItemChangeMessageResult

type CainiaoCntecItemChangeMessageResult struct {
	// 错误码
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 调用是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 是否成功接受到请求
	Model bool `json:"model,omitempty" xml:"model,omitempty"`
}

CainiaoCntecItemChangeMessageResult 结构体

type CertPicInfo

type CertPicInfo struct {
	// 认证图片的url地址
	PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"`
	// 认证类型的数值id
	CertType int64 `json:"cert_type,omitempty" xml:"cert_type,omitempty"`
}

CertPicInfo 结构体

type ChildPropertyKeyValueDto added in v1.2.9

type ChildPropertyKeyValueDto struct {
	// 属性键
	Key string `json:"key,omitempty" xml:"key,omitempty"`
	// 属性值
	Value string `json:"value,omitempty" xml:"value,omitempty"`
}

ChildPropertyKeyValueDto 结构体

type ClientInfoDto added in v1.2.5

type ClientInfoDto struct {
	// 平台ID数组,支持多端互通的客户端必须取该字段中的元素
	PlatformIds []string `json:"platform_ids,omitempty" xml:"platform_ids>string,omitempty"`
	// 平台ID,2:"安卓",3:"苹果",4,:"越狱",1:"其他",5:"PC",6:"XBOX - 主机",7:多端
	PlatformId int64 `json:"platform_id,omitempty" xml:"platform_id,omitempty"`
	// 客户端ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

ClientInfoDto 结构体

type DapeiDo

type DapeiDo struct {
	// items
	Items []DapeiTemplateItem `json:"items,omitempty" xml:"items>dapei_template_item,omitempty"`
	// title
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// desc
	Desc string `json:"desc,omitempty" xml:"desc,omitempty"`
	// url
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

DapeiDo 结构体

type DapeiTemplateItem

type DapeiTemplateItem struct {
	// img
	Img string `json:"img,omitempty" xml:"img,omitempty"`
	// itemId
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
}

DapeiTemplateItem 结构体

type DisplayQualifications

type DisplayQualifications struct {
	// 返回消息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 填充列表
	Model string `json:"model,omitempty" xml:"model,omitempty"`
	// 是否成功
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

DisplayQualifications 结构体

type ErrorCode added in v1.2.5

type ErrorCode struct {
	// 分组信息
	Fields []SeriesField `json:"fields,omitempty" xml:"fields>series_field,omitempty"`
	// 错误码
	MesCode string `json:"mes_code,omitempty" xml:"mes_code,omitempty"`
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 市场
	Market string `json:"market,omitempty" xml:"market,omitempty"`
	// 修改时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 系列名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 商品id
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// 用户id
	SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
	// 系列id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 系列扩展信息
	ItemSeriesExtend *ItemSeriesExtendDo `json:"item_series_extend,omitempty" xml:"item_series_extend,omitempty"`
	// 状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 排序值
	Sort int64 `json:"sort,omitempty" xml:"sort,omitempty"`
	// 系列id
	SeriesId int64 `json:"series_id,omitempty" xml:"series_id,omitempty"`
	// 特征
	Features int64 `json:"features,omitempty" xml:"features,omitempty"`
	// 分组id
	SegId int64 `json:"seg_id,omitempty" xml:"seg_id,omitempty"`
}

ErrorCode 结构体

type ExternalGoodsDetailDto added in v1.2.5

type ExternalGoodsDetailDto struct {
	// 商品图片url列表
	ImageList []GoodsImageDto `json:"image_list,omitempty" xml:"image_list>goods_image_dto,omitempty"`
	// 游戏属性对
	GoodsPropertyList []GoodsPropertyValueDto `json:"goods_property_list,omitempty" xml:"goods_property_list>goods_property_value_dto,omitempty"`
	// 卖家账号信息商品属性对
	SellerAccountPropertyList []GoodsPropertyValueDto `json:"seller_account_property_list,omitempty" xml:"seller_account_property_list>goods_property_value_dto,omitempty"`
	// 商品基本信息
	GoodsBaseInfo *GoodsBaseInfoDto `json:"goods_base_info,omitempty" xml:"goods_base_info,omitempty"`
	// 类目
	Category *GoodsCategoryDto `json:"category,omitempty" xml:"category,omitempty"`
	// 游戏属性
	GameProperty *GamePropertyDto `json:"game_property,omitempty" xml:"game_property,omitempty"`
	// 是否支持找回包赔
	SupportRetrieveCompensation bool `json:"support_retrieve_compensation,omitempty" xml:"support_retrieve_compensation,omitempty"`
	// 是否支持议价
	CanBargain bool `json:"can_bargain,omitempty" xml:"can_bargain,omitempty"`
}

ExternalGoodsDetailDto 结构体

type ExternalGoodsIdDto added in v1.2.5

type ExternalGoodsIdDto struct {
	// 外部商品ID,用于标识外部系统每次提交过来的商品
	ExternalGoodsId string `json:"external_goods_id,omitempty" xml:"external_goods_id,omitempty"`
	// 交易猫商品ID
	GoodsId int64 `json:"goods_id,omitempty" xml:"goods_id,omitempty"`
}

ExternalGoodsIdDto 结构体

type GamePropertyDto added in v1.2.5

type GamePropertyDto struct {
	// 服务器id
	ServerId int64 `json:"server_id,omitempty" xml:"server_id,omitempty"`
	// 客户端id
	ClientId int64 `json:"client_id,omitempty" xml:"client_id,omitempty"`
	// 平台id
	PlatformId int64 `json:"platform_id,omitempty" xml:"platform_id,omitempty"`
	// 游戏id
	GameId int64 `json:"game_id,omitempty" xml:"game_id,omitempty"`
}

GamePropertyDto 结构体

type GoodsBaseInfoDto added in v1.2.5

type GoodsBaseInfoDto struct {
	// 标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 价格
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 商品描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 库存
	Storage int64 `json:"storage,omitempty" xml:"storage,omitempty"`
}

GoodsBaseInfoDto 结构体

type GoodsBatchResultDto added in v1.2.5

type GoodsBatchResultDto struct {
	// 商品下架批次ID
	BatchId int64 `json:"batch_id,omitempty" xml:"batch_id,omitempty"`
}

GoodsBatchResultDto 结构体

type GoodsBatchSubTask added in v1.2.5

type GoodsBatchSubTask struct {
	// 子任务状态产生原因
	Reason string `json:"reason,omitempty" xml:"reason,omitempty"`
	// 外部商品ID,用于标识外部系统每次提交过来的商品
	ExternalGoodsId string `json:"external_goods_id,omitempty" xml:"external_goods_id,omitempty"`
	// 子任务状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 子任务id
	SubBatchId int64 `json:"sub_batch_id,omitempty" xml:"sub_batch_id,omitempty"`
	// 交易猫商品ID,如果商品发布失败则为空
	GoodsId int64 `json:"goods_id,omitempty" xml:"goods_id,omitempty"`
}

GoodsBatchSubTask 结构体

type GoodsBatchTaskQueryDto added in v1.2.5

type GoodsBatchTaskQueryDto struct {
	// 任务批次ID
	BatchId int64 `json:"batch_id,omitempty" xml:"batch_id,omitempty"`
}

GoodsBatchTaskQueryDto 结构体

type GoodsBatchTaskResultDto added in v1.2.5

type GoodsBatchTaskResultDto struct {
	// 商品批次子任务对象集合
	GoodsBatchSubTaskList []GoodsBatchSubTask `json:"goods_batch_sub_task_list,omitempty" xml:"goods_batch_sub_task_list>goods_batch_sub_task,omitempty"`
	// 任务状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
}

GoodsBatchTaskResultDto 结构体

type GoodsCategoryDto added in v1.2.5

type GoodsCategoryDto struct {
	// 二级类目名称
	SecondCategoryName string `json:"second_category_name,omitempty" xml:"second_category_name,omitempty"`
	// 一级类目名称
	FirstCategoryName string `json:"first_category_name,omitempty" xml:"first_category_name,omitempty"`
	// 二级类目ID
	SecondCategoryId int64 `json:"second_category_id,omitempty" xml:"second_category_id,omitempty"`
	// 一级类目ID
	FirstCategoryId int64 `json:"first_category_id,omitempty" xml:"first_category_id,omitempty"`
}

GoodsCategoryDto 结构体

type GoodsDeleteCommandDto added in v1.2.8

type GoodsDeleteCommandDto struct {
	// 批量删除商品id集合
	ExternalGoodsIdList []ExternalGoodsIdDto `json:"external_goods_id_list,omitempty" xml:"external_goods_id_list>external_goods_id_dto,omitempty"`
	// 外部批次ID,用于幂等
	ExternalBatchId string `json:"external_batch_id,omitempty" xml:"external_batch_id,omitempty"`
}

GoodsDeleteCommandDto 结构体

type GoodsDetailQueryDto added in v1.2.5

type GoodsDetailQueryDto struct {
	// 交易猫商品ID
	GoodsId int64 `json:"goods_id,omitempty" xml:"goods_id,omitempty"`
}

GoodsDetailQueryDto 结构体

type GoodsDetailResultDto added in v1.2.5

type GoodsDetailResultDto struct {
	// 商品详情信息
	GoodsDetail *ExternalGoodsDetailDto `json:"goods_detail,omitempty" xml:"goods_detail,omitempty"`
	// 商品ID
	GoodsId int64 `json:"goods_id,omitempty" xml:"goods_id,omitempty"`
}

GoodsDetailResultDto 结构体

type GoodsImageDto added in v1.2.5

type GoodsImageDto struct {
	// 原图url
	OriginImage string `json:"origin_image,omitempty" xml:"origin_image,omitempty"`
	// 备注
	Note string `json:"note,omitempty" xml:"note,omitempty"`
	// 图片id
	ImageId int64 `json:"image_id,omitempty" xml:"image_id,omitempty"`
}

GoodsImageDto 结构体

type GoodsOffSaleCommandDto added in v1.2.5

type GoodsOffSaleCommandDto struct {
	// 批量下架商品id集合
	ExternalGoodsIdList []ExternalGoodsIdDto `json:"external_goods_id_list,omitempty" xml:"external_goods_id_list>external_goods_id_dto,omitempty"`
	// 外部批次ID,用于幂等
	ExternalBatchId string `json:"external_batch_id,omitempty" xml:"external_batch_id,omitempty"`
}

GoodsOffSaleCommandDto 结构体

type GoodsOnSaleCommandDto added in v1.2.5

type GoodsOnSaleCommandDto struct {
	// 批量上架商品id集合
	ExternalGoodsIdList []ExternalGoodsIdDto `json:"external_goods_id_list,omitempty" xml:"external_goods_id_list>external_goods_id_dto,omitempty"`
	// 外部批次ID,用于幂等
	ExternalBatchId string `json:"external_batch_id,omitempty" xml:"external_batch_id,omitempty"`
}

GoodsOnSaleCommandDto 结构体

type GoodsPriceDto added in v1.2.5

type GoodsPriceDto struct {
	// 商品价格
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 外部商品id对象
	ExternalGoodsId *ExternalGoodsIdDto `json:"external_goods_id,omitempty" xml:"external_goods_id,omitempty"`
}

GoodsPriceDto 结构体

type GoodsPriceModifyCommandDto added in v1.2.5

type GoodsPriceModifyCommandDto struct {
	// 商品价格传输对象
	GoodsPriceList []GoodsPriceDto `json:"goods_price_list,omitempty" xml:"goods_price_list>goods_price_dto,omitempty"`
	// 外部批次ID,用于幂等
	ExternalBatchId string `json:"external_batch_id,omitempty" xml:"external_batch_id,omitempty"`
}

GoodsPriceModifyCommandDto 结构体

type GoodsPropertyDto added in v1.2.5

type GoodsPropertyDto struct {
	// 属性可选项
	Options []GoodsPropertyOptionDto `json:"options,omitempty" xml:"options>goods_property_option_dto,omitempty"`
	// 默认值
	DefaultValue string `json:"default_value,omitempty" xml:"default_value,omitempty"`
	// 商品属性单位
	AttrUnit string `json:"attr_unit,omitempty" xml:"attr_unit,omitempty"`
	// 属性名称
	PropertyName string `json:"property_name,omitempty" xml:"property_name,omitempty"`
	// 占位符
	Placeholder string `json:"placeholder,omitempty" xml:"placeholder,omitempty"`
	// 属性内容类型,1:"单选",2:"多选",3:"字符",4:"长字符",5:"数字",6:"日期"
	PropertyContentType int64 `json:"property_content_type,omitempty" xml:"property_content_type,omitempty"`
	// 属性类型
	CategoryAttrType int64 `json:"category_attr_type,omitempty" xml:"category_attr_type,omitempty"`
	// 属性规则对象
	PropertyRule *PropertyRuleDto `json:"property_rule,omitempty" xml:"property_rule,omitempty"`
	// 属性等级
	PropertyGrade int64 `json:"property_grade,omitempty" xml:"property_grade,omitempty"`
	// 属性ID
	PropertyId int64 `json:"property_id,omitempty" xml:"property_id,omitempty"`
	// 内容类型,1:"常规",2:"游戏帐号",3:"游戏密码",4:"QQ号",5:"单价数量",6:"买家服务器",7:"开始发货时间",8:"终止发货时间",9:"原价",10:"联系手机",11:"账户类型",12:"发货服务器",13:"角色名称",14:"备用名称",15:"第三名称"  ,16:"确认帐号",17:"解锁密码",18:"面额",19:"充值类型",20:"回收折扣",21:"帐号绑定",22:"多选"
	ContentType int64 `json:"content_type,omitempty" xml:"content_type,omitempty"`
	// 是否可见
	Visible bool `json:"visible,omitempty" xml:"visible,omitempty"`
}

GoodsPropertyDto 结构体

type GoodsPropertyOptionDto added in v1.2.5

type GoodsPropertyOptionDto struct {
	// 选项名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 属性值
	Value string `json:"value,omitempty" xml:"value,omitempty"`
	// 选项ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 属性ID
	AttrId int64 `json:"attr_id,omitempty" xml:"attr_id,omitempty"`
}

GoodsPropertyOptionDto 结构体

type GoodsPropertyValueDto added in v1.2.5

type GoodsPropertyValueDto struct {
	// 属性值
	Value string `json:"value,omitempty" xml:"value,omitempty"`
	// 属性值id,可不传
	ValueId int64 `json:"value_id,omitempty" xml:"value_id,omitempty"`
	// 属性id
	PropertyId int64 `json:"property_id,omitempty" xml:"property_id,omitempty"`
}

GoodsPropertyValueDto 结构体

type GoodsPublishCommandDto added in v1.2.5

type GoodsPublishCommandDto struct {
	// 商品发布数据体
	GoodsList []GoodsPublishDto `json:"goods_list,omitempty" xml:"goods_list>goods_publish_dto,omitempty"`
	// 外部批次ID,用于幂等
	ExternalBatchId string `json:"external_batch_id,omitempty" xml:"external_batch_id,omitempty"`
}

GoodsPublishCommandDto 结构体

type GoodsPublishDto added in v1.2.5

type GoodsPublishDto struct {
	// 卖家账号信息商品属性对象数组
	SellerAccountPropertyList []GoodsPropertyValueDto `json:"seller_account_property_list,omitempty" xml:"seller_account_property_list>goods_property_value_dto,omitempty"`
	// 商品属性对象数组
	GoodsPropertyList []GoodsPropertyValueDto `json:"goods_property_list,omitempty" xml:"goods_property_list>goods_property_value_dto,omitempty"`
	// 商品图片url列表
	ImageUrlList []GoodsPublishImageDto `json:"image_url_list,omitempty" xml:"image_url_list>goods_publish_image_dto,omitempty"`
	// 多子属性对象数组,仅在支持多子属性的类目使用
	MultiPropertyValueList []MultiPropertyValueDto `json:"multi_property_value_list,omitempty" xml:"multi_property_value_list>multi_property_value_dto,omitempty"`
	// 外部商品ID,用于标识外部系统每次提交过来的商品
	ExternalGoodsId string `json:"external_goods_id,omitempty" xml:"external_goods_id,omitempty"`
	// 游戏属性对象
	GameProperty *GamePropertyDto `json:"game_property,omitempty" xml:"game_property,omitempty"`
	// 二级类目ID
	SecondCategoryId int64 `json:"second_category_id,omitempty" xml:"second_category_id,omitempty"`
	// 一级类目ID
	FirstCategoryId int64 `json:"first_category_id,omitempty" xml:"first_category_id,omitempty"`
	// 商品基本信息
	GoodsBaseInfo *GoodsBaseInfoDto `json:"goods_base_info,omitempty" xml:"goods_base_info,omitempty"`
	// 入淘商品首图,可不传
	TaobaoFirstImage *GoodsPublishImageDto `json:"taobao_first_image,omitempty" xml:"taobao_first_image,omitempty"`
	// 是否支持找回包赔
	SupportRetrieveCompensation bool `json:"support_retrieve_compensation,omitempty" xml:"support_retrieve_compensation,omitempty"`
	// 是否支持议价
	CanBargain bool `json:"can_bargain,omitempty" xml:"can_bargain,omitempty"`
}

GoodsPublishDto 结构体

type GoodsPublishImageDto added in v1.2.5

type GoodsPublishImageDto struct {
	// 商品图片url
	ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"`
}

GoodsPublishImageDto 结构体

type GoodsPublishPropertyDefDetailDto added in v1.2.5

type GoodsPublishPropertyDefDetailDto struct {
	// 关键商品属性
	KeyProperties []GoodsPropertyDto `json:"key_properties,omitempty" xml:"key_properties>goods_property_dto,omitempty"`
	// 扩展商品属性
	ExtProperties []GoodsPropertyDto `json:"ext_properties,omitempty" xml:"ext_properties>goods_property_dto,omitempty"`
	// 账密相关属性
	SellerAccountProperties []GoodsPropertyDto `json:"seller_account_properties,omitempty" xml:"seller_account_properties>goods_property_dto,omitempty"`
	// 属性可选项
	Options []GoodsPropertyOptionDto `json:"options,omitempty" xml:"options>goods_property_option_dto,omitempty"`
	// 默认值
	DefaultValue string `json:"default_value,omitempty" xml:"default_value,omitempty"`
	// 商品属性单位
	AttrUnit string `json:"attr_unit,omitempty" xml:"attr_unit,omitempty"`
	// 属性名称
	PropertyName string `json:"property_name,omitempty" xml:"property_name,omitempty"`
	// 占位符
	Placeholder string `json:"placeholder,omitempty" xml:"placeholder,omitempty"`
	// 游戏ID
	GameId int64 `json:"game_id,omitempty" xml:"game_id,omitempty"`
	// 图片商品属性对象
	Image *GoodsPropertyDto `json:"image,omitempty" xml:"image,omitempty"`
	// 附加服务
	AddlService *AddlServiceDefDto `json:"addl_service,omitempty" xml:"addl_service,omitempty"`
	// 客户端信息
	ClientInfo *ClientInfoDto `json:"client_info,omitempty" xml:"client_info,omitempty"`
	// 描述商品属性对象
	Description *GoodsPropertyDto `json:"description,omitempty" xml:"description,omitempty"`
	// 库存属性
	Storage *GoodsPropertyDto `json:"storage,omitempty" xml:"storage,omitempty"`
	// 标题商品属性对象
	Title *GoodsPublishPropertyDefDetailDto `json:"title,omitempty" xml:"title,omitempty"`
	// 价格商品属性对象
	Price *GoodsPublishPropertyDefDetailDto `json:"price,omitempty" xml:"price,omitempty"`
	// 属性内容类型,1:"单选",2:"多选",3:"字符",4:"长字符",5:"数字",6:"日期"
	PropertyContentType int64 `json:"property_content_type,omitempty" xml:"property_content_type,omitempty"`
	// 属性类型
	CategoryAttrType int64 `json:"category_attr_type,omitempty" xml:"category_attr_type,omitempty"`
	// 属性规则对象
	PropertyRule *PropertyRuleDto `json:"property_rule,omitempty" xml:"property_rule,omitempty"`
	// 属性等级
	PropertyGrade int64 `json:"property_grade,omitempty" xml:"property_grade,omitempty"`
	// 属性ID
	PropertyId int64 `json:"property_id,omitempty" xml:"property_id,omitempty"`
	// 内容类型,1:"常规",2:"游戏帐号",3:"游戏密码",4:"QQ号",5:"单价数量",6:"买家服务器",7:"开始发货时间",8:"终止发货时间",9:"原价",10:"联系手机",11:"账户类型",12:"发货服务器",13:"角色名称",14:"备用名称",15:"第三名称"  ,16:"确认帐号",17:"解锁密码",18:"面额",19:"充值类型",20:"回收折扣",21:"帐号绑定",22:"多选"
	ContentType int64 `json:"content_type,omitempty" xml:"content_type,omitempty"`
	// 是否可见
	Visible bool `json:"visible,omitempty" xml:"visible,omitempty"`
}

GoodsPublishPropertyDefDetailDto 结构体

type GoodsServerDto added in v1.2.5

type GoodsServerDto struct {
	// 服务器名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 游戏ID
	GameId int64 `json:"game_id,omitempty" xml:"game_id,omitempty"`
	// 服务器ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

GoodsServerDto 结构体

type GoodsStatusDto added in v1.2.5

type GoodsStatusDto struct {
	// 价格
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 商品状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 商品ID
	GoodsId int64 `json:"goods_id,omitempty" xml:"goods_id,omitempty"`
}

GoodsStatusDto 结构体

type GroupItem added in v1.2.9

type GroupItem struct {
	// 分组名称
	Text string `json:"text,omitempty" xml:"text,omitempty"`
	// 分组id
	Value int64 `json:"value,omitempty" xml:"value,omitempty"`
}

GroupItem 结构体

type Item

type Item struct {
	// 商品图片列表(包括主图)。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"`
	// Sku列表。fields中只设置sku可以返回Sku结构体中所有字段,如果设置为sku.sku_id、sku.properties、sku.quantity等形式就只会返回相应的字段
	Skus []Sku `json:"skus,omitempty" xml:"skus>sku,omitempty"`
	// 商品视频列表(目前只支持单个视频关联)。fields中只设置video可以返回Video结构体中所有字段,如果设置为video.id、video.video_id、<br/>video.url等形式就只会返回相应的字段
	Videos []Video `json:"videos,omitempty" xml:"videos>video,omitempty"`
	// 商品id(注意:iid近期即将废弃,请用num_iid参数)
	Iid string `json:"iid,omitempty" xml:"iid,omitempty"`
	// 商品url
	DetailUrl string `json:"detail_url,omitempty" xml:"detail_url,omitempty"`
	// 商品标题,不能超过60字节
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 卖家昵称
	Nick string `json:"nick,omitempty" xml:"nick,omitempty"`
	// 商品类型(fixed:一口价;auction:拍卖)注:取消团购
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 商品所属的店铺内卖家自定义类目列表
	SellerCids string `json:"seller_cids,omitempty" xml:"seller_cids,omitempty"`
	// 商品属性 格式:pid:vid;pid:vid
	Props string `json:"props,omitempty" xml:"props,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"`
	// 商品主图片地址
	PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"`
	// 商品新旧程度(全新:new,闲置:unused,二手:second)
	StuffStatus string `json:"stuff_status,omitempty" xml:"stuff_status,omitempty"`
	// 商品上传后的状态。onsale出售中,instock库中
	ApproveStatus string `json:"approve_status,omitempty" xml:"approve_status,omitempty"`
	// 属性值别名
	PropertyAlias string `json:"property_alias,omitempty" xml:"property_alias,omitempty"`
	// 商家外部编码(可与商家外部系统对接)
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// 秒杀商品类型。打上秒杀标记的商品,用户只能下架并不能再上架,其他任何编辑或删除操作都不能进行。如果用户想取消秒杀标记,需要联系小二进行操作。如果秒杀结束需要自由编辑请联系活动负责人(小二)去掉秒杀标记。可选类型<br/>web_only(只能通过web网络秒杀)<br/>wap_only(只能通过wap网络秒杀)<br/>web_and_wap(既能通过web秒杀也能通过wap秒杀)
	SecondKill string `json:"second_kill,omitempty" xml:"second_kill,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"`
	// 商品级别的条形码
	Barcode string `json:"barcode,omitempty" xml:"barcode,omitempty"`
	// 商品优惠价格
	PromotedPrice string `json:"promoted_price,omitempty" xml:"promoted_price,omitempty"`
	// 商品3:4比例主图
	MainPic34 string `json:"main_pic34,omitempty" xml:"main_pic34,omitempty"`
	// 商品竖图
	UprightImageUrl string `json:"upright_image_url,omitempty" xml:"upright_image_url,omitempty"`
	// 商品数字id
	NumIid int64 `json:"num_iid,omitempty" xml:"num_iid,omitempty"`
	// 商品所属的叶子类目 id
	Cid int64 `json:"cid,omitempty" xml:"cid,omitempty"`
	// 商品价格,格式:5.00;单位:元;精确到:分
	Price float64 `json:"price,omitempty" xml:"price,omitempty"`
	// 宝贝所属产品的id(可能为空). 该字段可以通过taobao.products.search 得到
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// 返点比例
	AuctionPoint int64 `json:"auction_point,omitempty" xml:"auction_point,omitempty"`
	// 虚拟商品的状态字段
	IsVirtual bool `json:"is_virtual,omitempty" xml:"is_virtual,omitempty"`
}

Item 结构体

type ItemImg

type ItemImg struct {
	// 图片链接地址
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 图片放在第几张(多图时可设置)
	Position int64 `json:"position,omitempty" xml:"position,omitempty"`
}

ItemImg 结构体

type ItemPickPagingResult

type ItemPickPagingResult struct {
	// 返回类型
	Results []ItemSearchResult `json:"results,omitempty" xml:"results>item_search_result,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 页码
	PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"`
	// 总条数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 每页条数
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

ItemPickPagingResult 结构体

type ItemSalePropNew added in v1.2.5

type ItemSalePropNew struct {
	// 属性状态集合
	SalePropValueStatusList []SalePropValueStatus `json:"sale_prop_value_status_list,omitempty" xml:"sale_prop_value_status_list>sale_prop_value_status,omitempty"`
	// 属性文本
	PropertyValue string `json:"property_value,omitempty" xml:"property_value,omitempty"`
	// 属性ID
	PropertyId int64 `json:"property_id,omitempty" xml:"property_id,omitempty"`
}

ItemSalePropNew 结构体

type ItemSalePropSort added in v1.2.5

type ItemSalePropSort struct {
	// 属性值列表
	SalePropValueSorts []SalePropValueSort `json:"sale_prop_value_sorts,omitempty" xml:"sale_prop_value_sorts>sale_prop_value_sort,omitempty"`
	// 属性项名称
	PropertyValue string `json:"property_value,omitempty" xml:"property_value,omitempty"`
	// 属性项ID
	PropertyId int64 `json:"property_id,omitempty" xml:"property_id,omitempty"`
}

ItemSalePropSort 结构体

type ItemSearchResult

type ItemSearchResult struct {
	// 商品ID
	ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 商品标题
	ItemTitle string `json:"item_title,omitempty" xml:"item_title,omitempty"`
	// 商品链接
	ItemUrl string `json:"item_url,omitempty" xml:"item_url,omitempty"`
	// 商品主图
	ItemMainPic string `json:"item_main_pic,omitempty" xml:"item_main_pic,omitempty"`
	// 商品原价最低值
	ItemOriginPriceMin string `json:"item_origin_price_min,omitempty" xml:"item_origin_price_min,omitempty"`
	// 商品原价最高值
	ItemOriginPriceMax string `json:"item_origin_price_max,omitempty" xml:"item_origin_price_max,omitempty"`
	// 商品折扣价最低值
	ItemPriceDiscountMin string `json:"item_price_discount_min,omitempty" xml:"item_price_discount_min,omitempty"`
	// 商品折扣价最高值
	ItemPriceDiscountMax string `json:"item_price_discount_max,omitempty" xml:"item_price_discount_max,omitempty"`
	// 商品折扣率
	ItemDiscountRate string `json:"item_discount_rate,omitempty" xml:"item_discount_rate,omitempty"`
	// 商品发布时间
	PubTime string `json:"pub_time,omitempty" xml:"pub_time,omitempty"`
	// 商品评价分数
	CommentScore string `json:"comment_score,omitempty" xml:"comment_score,omitempty"`
	// 店铺URL
	ShopUrl string `json:"shop_url,omitempty" xml:"shop_url,omitempty"`
	// 佣金比例
	CommissionRate string `json:"commission_rate,omitempty" xml:"commission_rate,omitempty"`
	// 商品图片地址
	ItemPics string `json:"item_pics,omitempty" xml:"item_pics,omitempty"`
	// 商品视频地址
	ItemVideos string `json:"item_videos,omitempty" xml:"item_videos,omitempty"`
	// 卖家服务等级
	SellerLayer string `json:"seller_layer,omitempty" xml:"seller_layer,omitempty"`
	// 30天销量语义化信息
	Sales30DaySemantic string `json:"sales30_day_semantic,omitempty" xml:"sales30_day_semantic,omitempty"`
	// 30天评论数语义化信息
	Comment30DaySemantic string `json:"comment30_day_semantic,omitempty" xml:"comment30_day_semantic,omitempty"`
	// 收藏数语义化信息
	FavoriteCntSemantic string `json:"favorite_cnt_semantic,omitempty" xml:"favorite_cnt_semantic,omitempty"`
}

ItemSearchResult 结构体

type ItemSeriesExtendDo added in v1.2.9

type ItemSeriesExtendDo struct {
	// 分组信息
	GroupItemList []GroupItem `json:"group_item_list,omitempty" xml:"group_item_list>group_item,omitempty"`
	// 系列玩法
	Mode string `json:"mode,omitempty" xml:"mode,omitempty"`
	// 系列名称
	SeriesName string `json:"series_name,omitempty" xml:"series_name,omitempty"`
	// 系列描述
	SeriesDesc string `json:"series_desc,omitempty" xml:"series_desc,omitempty"`
	// 类目id
	CatId int64 `json:"cat_id,omitempty" xml:"cat_id,omitempty"`
}

ItemSeriesExtendDo 结构体

type ItemSeriesRequest added in v1.2.9

type ItemSeriesRequest struct {
	// 市场
	Market string `json:"market,omitempty" xml:"market,omitempty"`
	// 系列名称
	SeriesName string `json:"series_name,omitempty" xml:"series_name,omitempty"`
	// 系列描述
	SeriesDesc string `json:"series_desc,omitempty" xml:"series_desc,omitempty"`
	// 品牌值,当品牌作为聚合属性时生效
	BrandName string `json:"brand_name,omitempty" xml:"brand_name,omitempty"`
	// 类目id
	CatId int64 `json:"cat_id,omitempty" xml:"cat_id,omitempty"`
	// 系列id
	SeriesId int64 `json:"series_id,omitempty" xml:"series_id,omitempty"`
	// 系列状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
}

ItemSeriesRequest 结构体

type ItemSkuStatus added in v1.2.5

type ItemSkuStatus struct {
	// sku集合
	SkuStatusList []SkuStatus `json:"sku_status_list,omitempty" xml:"sku_status_list>sku_status,omitempty"`
	// 商品标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 商品状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
}

ItemSkuStatus 结构体

type MultiPropertyValueDto added in v1.2.9

type MultiPropertyValueDto struct {
	// 属性值对象数组
	PropertyValueList []PropertyValueDto `json:"property_value_list,omitempty" xml:"property_value_list>property_value_dto,omitempty"`
	// 父属性名
	PropertyName string `json:"property_name,omitempty" xml:"property_name,omitempty"`
}

MultiPropertyValueDto 结构体

type Product

type Product struct {
	// 产品的子图片.目前最多支持4张。fields中设置为product_imgs.id、product_imgs.url、product_imgs.position 等形式就会返回相应的字段
	ProductImgs []ProductImg `json:"product_imgs,omitempty" xml:"product_imgs>product_img,omitempty"`
	// 产品的属性图片.比如说黄色对应的产品图片,绿色对应的产品图片。fields中设置为product_prop_imgs.id、 <br/>product_prop_imgs.props、product_prop_imgs.url、product_prop_imgs.position等形式就会返回相应的字段
	ProductPropImgs []ProductPropImg `json:"product_prop_imgs,omitempty" xml:"product_prop_imgs>product_prop_img,omitempty"`
	// 创建时间.格式: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"`
	// 淘宝标准产品编码
	Tsc string `json:"tsc,omitempty" xml:"tsc,omitempty"`
	// 商品类目名称
	CatName string `json:"cat_name,omitempty" xml:"cat_name,omitempty"`
	// 产品的关键属性列表.格式:pid:vid;pid:vid
	Props string `json:"props,omitempty" xml:"props,omitempty"`
	// 产品的关键属性字符串列表.比如:品牌:诺基亚;型号:N73(<strong>注:</strong><font color="red">属性名称中的冒号":"被转换为:"#cln#";  分号";"被转换为:"#scln#"</font>)
	PropsStr string `json:"props_str,omitempty" xml:"props_str,omitempty"`
	// 产品名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 产品的非关键属性列表.格式:pid:vid;pid:vid.
	Binds string `json:"binds,omitempty" xml:"binds,omitempty"`
	// 产品的非关键属性字符串列表.格式同props_str(<strong>注:</strong><font color="red">属性名称中的冒号":"被转换为:"#cln#";  分号";"被转换为:"#scln#"</font>)
	BindsStr string `json:"binds_str,omitempty" xml:"binds_str,omitempty"`
	// 产品的销售属性列表.格式:pid:vid;pid:vid
	SaleProps string `json:"sale_props,omitempty" xml:"sale_props,omitempty"`
	// 产品的销售属性字符串列表.格式同props_str(<strong>注:</strong><font color="red">属性名称中的冒号":"被转换为:"#cln#";  分号";"被转换为:"#scln#"</font>)
	SalePropsStr string `json:"sale_props_str,omitempty" xml:"sale_props_str,omitempty"`
	// 产品的市场价.单位为元.精确到2位小数;如:200.07
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 产品的描述.最大25000个字节
	Desc string `json:"desc,omitempty" xml:"desc,omitempty"`
	// 产品的主图片地址.(绝对地址,格式:http://host/image_path)
	PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"`
	// 修改时间.格式:yyyy-mm-dd hh:mm:ss
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 销售属性值别名。格式为pid1:vid1:alias1;pid1:vid2:alia2。
	PropertyAlias string `json:"property_alias,omitempty" xml:"property_alias,omitempty"`
	// 用户自定义属性,结构:pid1:value1;pid2:value2 例如:“20000:优衣库”,表示“品牌:优衣库”
	CustomerProps string `json:"customer_props,omitempty" xml:"customer_props,omitempty"`
	// 产品卖点描述,长度限制20个汉字
	SellPt string `json:"sell_pt,omitempty" xml:"sell_pt,omitempty"`
	// 产品ID
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// 商品类目ID.必须是叶子类目ID
	Cid int64 `json:"cid,omitempty" xml:"cid,omitempty"`
	// 当前状态(0 商家确认 1 屏蔽 3 小二确认 2 未确认 -1 删除)
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 垂直市场,如:3(3C),4(鞋城)
	VerticalMarket int64 `json:"vertical_market,omitempty" xml:"vertical_market,omitempty"`
}

Product 结构体

type ProductImg

type ProductImg struct {
	// 图片地址.(绝对地址,格式:http://host/image_path)
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 添加时间.格式: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"`
	// 产品图片ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 图片所属产品的ID
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// 图片序号。产品里的图片展示顺序,数据越小越靠前。要求是正整数。
	Position int64 `json:"position,omitempty" xml:"position,omitempty"`
}

ProductImg 结构体

type ProductPropImg

type ProductPropImg struct {
	// 属性串(pid:vid),目前只有颜色属性.如:颜色:红色表示为 1627207:28326
	Props string `json:"props,omitempty" xml:"props,omitempty"`
	// 图片地址.(绝对地址,格式:http://host/image_path)
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 添加时间.格式: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"`
	// 产品属性图片ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 图片所属产品的ID
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// 图片序号。产品里的图片展示顺序,数据越小越靠前。要求是正整数。
	Position int64 `json:"position,omitempty" xml:"position,omitempty"`
}

ProductPropImg 结构体

type ProductSpec

type ProductSpec struct {
	// 认证图片列表
	CertifiedPics []CertPicInfo `json:"certified_pics,omitempty" xml:"certified_pics>cert_pic_info,omitempty"`
	// 产品规格的销售属性组合。格式为:pid:vid;pid:vid。其中:pid是销售属性id,vid是销售属性值id。如果该类目品牌下面没有销售属性,可以不用填写。销售属性通过tmall.brandcat.salespro.get接口获取。
	SpecProps string `json:"spec_props,omitempty" xml:"spec_props,omitempty"`
	// 销售属性值别名。格式为:pid1:vid1:别名1;pid2:vid2:别名2。其中:pid是销售属性id,vid是销售属性值id。别名长度不可以超过30个字符。目前只有颜色销售属性支持别名。
	SpecPropsAlias string `json:"spec_props_alias,omitempty" xml:"spec_props_alias,omitempty"`
	// 用户输入的属性值存放位置,例如可输入的销售属性,当用户获取pid vid后,应该先从spec_props_alias中获取,然后通过类目属性获取,获取不到,可以通过这个字段获取。
	CustomePropsName string `json:"custome_props_name,omitempty" xml:"custome_props_name,omitempty"`
	// 产品的主图片地址。绝对地址,格式:http://host/image_path
	PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"`
	// 产品规格条形码,支持EAN-13格式。
	Barcode string `json:"barcode,omitempty" xml:"barcode,omitempty"`
	// 产品货号
	ProductCode string `json:"product_code,omitempty" xml:"product_code,omitempty"`
	// 上市时间
	MarketTime string `json:"market_time,omitempty" xml:"market_time,omitempty"`
	// 产品规格ID。
	SpecId int64 `json:"spec_id,omitempty" xml:"spec_id,omitempty"`
	// 产品ID。
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// 1:表示可以使用的数据,也就是审核通过的。<br/>3:表示等待小二审核的产品规格,这个数据暂时还不能使用,要等待审核通过后,才能使用。
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 产品品牌id
	BrandId int64 `json:"brand_id,omitempty" xml:"brand_id,omitempty"`
}

ProductSpec 结构体

type PromotionDisplayTop

type PromotionDisplayTop struct {
	// 单品级优惠信息
	PromotionInItem []PromotionInItem `json:"promotion_in_item,omitempty" xml:"promotion_in_item>promotion_in_item,omitempty"`
	// 店铺级优惠信息
	PromotionInShop []PromotionInShop `json:"promotion_in_shop,omitempty" xml:"promotion_in_shop>promotion_in_shop,omitempty"`
}

PromotionDisplayTop 结构体

type PromotionInItem

type PromotionInItem struct {
	// sku价格列表
	SkuPriceList []string `json:"sku_price_list,omitempty" xml:"sku_price_list>string,omitempty"`
	// sku价格对应的id(保证二者顺序相同)
	SkuIdList []string `json:"sku_id_list,omitempty" xml:"sku_id_list>string,omitempty"`
	// idValue的值
	PromotionId string `json:"promotion_id,omitempty" xml:"promotion_id,omitempty"`
	// 优惠展示名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 优惠折后价格
	ItemPromoPrice string `json:"item_promo_price,omitempty" xml:"item_promo_price,omitempty"`
	// 优惠描述
	Desc string `json:"desc,omitempty" xml:"desc,omitempty"`
	// 优惠开始时间
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 优惠结束时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 需要支付附加物,显示为+xxx。如:+20淘金币
	OtherNeed string `json:"other_need,omitempty" xml:"other_need,omitempty"`
	// 赠送东西。如:送10商城积分
	OtherSend string `json:"other_send,omitempty" xml:"other_send,omitempty"`
}

PromotionInItem 结构体

type PromotionInShop

type PromotionInShop struct {
	// 优惠活动名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// idValue值
	PromotionId string `json:"promotion_id,omitempty" xml:"promotion_id,omitempty"`
	// 优惠详情描述。
	PromotionDetailDesc string `json:"promotion_detail_desc,omitempty" xml:"promotion_detail_desc,omitempty"`
}

PromotionInShop 结构体

type PropImg

type PropImg struct {
	// 图片链接地址
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 图片所对应的属性组合的字符串
	Properties string `json:"properties,omitempty" xml:"properties,omitempty"`
	// 图片放在第几张(多图时可设置)
	Position int64 `json:"position,omitempty" xml:"position,omitempty"`
}

PropImg 结构体

type PropertyRuleDto added in v1.2.5

type PropertyRuleDto struct {
	// 字符串规则,正则表达式
	Pattern string `json:"pattern,omitempty" xml:"pattern,omitempty"`
	// 正则表达式,校验提示
	PatternMsg string `json:"pattern_msg,omitempty" xml:"pattern_msg,omitempty"`
	// 价格规则,最大值
	HighestPrice int64 `json:"highest_price,omitempty" xml:"highest_price,omitempty"`
	// 价格规则,最小值
	LowestPrice int64 `json:"lowest_price,omitempty" xml:"lowest_price,omitempty"`
	// 数字规则,最小值
	Min int64 `json:"min,omitempty" xml:"min,omitempty"`
	// 数字规则,最大值
	Max int64 `json:"max,omitempty" xml:"max,omitempty"`
	// 图片规则,最小长度
	MinLength int64 `json:"min_length,omitempty" xml:"min_length,omitempty"`
	// 图片规则,单图片最大体积
	MaxSize int64 `json:"max_size,omitempty" xml:"max_size,omitempty"`
	// 图片规则,最大图片数
	MaxCount int64 `json:"max_count,omitempty" xml:"max_count,omitempty"`
	// 字符串规则,最大长度
	MaxLength int64 `json:"max_length,omitempty" xml:"max_length,omitempty"`
	// 通用规则,是否必填
	Required bool `json:"required,omitempty" xml:"required,omitempty"`
}

PropertyRuleDto 结构体

type PropertyValueDto added in v1.2.9

type PropertyValueDto struct {
	// 子属性列表
	ChildPropertyKeyValueList []ChildPropertyKeyValueDto `json:"child_property_key_value_list,omitempty" xml:"child_property_key_value_list>child_property_key_value_dto,omitempty"`
	// 属性值
	Value string `json:"value,omitempty" xml:"value,omitempty"`
}

PropertyValueDto 结构体

type ResourceData

type ResourceData struct {
	// 资源列表
	Datas []ResourceDataRecord `json:"datas,omitempty" xml:"datas>resource_data_record,omitempty"`
	// 资源名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 资源类型
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
}

ResourceData 结构体

type ResourceDataRecord

type ResourceDataRecord struct {
	// 扩展属性,包括城市名称,外部编码等
	ValueMap string `json:"value_map,omitempty" xml:"value_map,omitempty"`
	// 映射id
	MappingId int64 `json:"mapping_id,omitempty" xml:"mapping_id,omitempty"`
	// 项目id
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// 次数
	Num int64 `json:"num,omitempty" xml:"num,omitempty"`
	// 资源类型
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
	// 资源id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

ResourceDataRecord 结构体

type ResultDo added in v1.2.9

type ResultDo struct {
	// 错误码集合
	ErrorCodes []ErrorCode `json:"error_codes,omitempty" xml:"error_codes>error_code,omitempty"`
	// 实际返回值
	Model *ErrorCode `json:"model,omitempty" xml:"model,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

ResultDo 结构体

type SalePropValueSort added in v1.2.5

type SalePropValueSort struct {
	// 属性值文本
	Text string `json:"text,omitempty" xml:"text,omitempty"`
	// 属性值ID
	Value int64 `json:"value,omitempty" xml:"value,omitempty"`
}

SalePropValueSort 结构体

type SalePropValueStatus added in v1.2.5

type SalePropValueStatus struct {
	// 属性文本
	Text string `json:"text,omitempty" xml:"text,omitempty"`
	// 属性值ID
	Value int64 `json:"value,omitempty" xml:"value,omitempty"`
	// 是否新品
	IsNew bool `json:"is_new,omitempty" xml:"is_new,omitempty"`
}

SalePropValueStatus 结构体

type SeriesField added in v1.2.9

type SeriesField struct {
	// 文本
	Text string `json:"text,omitempty" xml:"text,omitempty"`
	// 值
	Value string `json:"value,omitempty" xml:"value,omitempty"`
	// key
	Key string `json:"key,omitempty" xml:"key,omitempty"`
	// type
	Type string `json:"type,omitempty" xml:"type,omitempty"`
}

SeriesField 结构体

type SeriesItemRequest added in v1.2.9

type SeriesItemRequest struct {
	// 市场
	Market string `json:"market,omitempty" xml:"market,omitempty"`
	// 商品id
	ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 分组名称
	GroupName string `json:"group_name,omitempty" xml:"group_name,omitempty"`
	// 定制展示名称
	CustomVersion string `json:"custom_version,omitempty" xml:"custom_version,omitempty"`
	// 排序
	Sort int64 `json:"sort,omitempty" xml:"sort,omitempty"`
	// 系列id
	SeriesId int64 `json:"series_id,omitempty" xml:"series_id,omitempty"`
}

SeriesItemRequest 结构体

type SizeMappingTemplate

type SizeMappingTemplate struct {
	// 尺码表模板名称
	TemplateName string `json:"template_name,omitempty" xml:"template_name,omitempty"`
	// 尺码表模板内容,格式为"尺码值:维度名称:数值,尺码值:维度名称:数值"。其中,数值的单位,长度单位为厘米(cm),体重单位为公斤(kg)。
	TemplateContent string `json:"template_content,omitempty" xml:"template_content,omitempty"`
	// 尺码表模板ID
	TemplateId int64 `json:"template_id,omitempty" xml:"template_id,omitempty"`
}

SizeMappingTemplate 结构体

type SizeMappingTemplateDo

type SizeMappingTemplateDo struct {
	// 尺码表模板名称
	TemplateName string `json:"template_name,omitempty" xml:"template_name,omitempty"`
	// 尺码表模板内容,格式为"尺码值:维度名称:数值,尺码值:维度名称:数值"。其中,数值的单位,长度单位为厘米(cm),体重单位为公斤(kg)。
	TemplateContent string `json:"template_content,omitempty" xml:"template_content,omitempty"`
	// 尺码表模板ID
	TemplateId int64 `json:"template_id,omitempty" xml:"template_id,omitempty"`
}

SizeMappingTemplateDo 结构体

type Sku

type Sku struct {
	// 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的商品的价格 取值范围:0-100000000;精确到2位小数;单位:元。如:200.07,表示:200元7分。
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 商家设置的外部id。天猫和集市的卖家,需要登录才能获取到自己的商家编码,不能获取到他人的商家编码。
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// 商品级别的条形码
	Barcode string `json:"barcode,omitempty" xml:"barcode,omitempty"`
	// 商品SKU优惠价格
	PromotedPrice string `json:"promoted_price,omitempty" xml:"promoted_price,omitempty"`
	// SKU图片
	PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"`
	// sku的id
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

Sku 结构体

type SkuStatus added in v1.2.5

type SkuStatus struct {
	// sku状态描述
	Desc string `json:"desc,omitempty" xml:"desc,omitempty"`
	// 商家编码
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// sku商家编码和sku_id两者取一
	Barcode string `json:"barcode,omitempty" xml:"barcode,omitempty"`
	// outerId
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// sku状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
}

SkuStatus 结构体

type SpuTemplateDo

type SpuTemplateDo struct {
	// 产品关键属性,内容为属性ID(PID)的列表,注意关键属性可以在类目上不存在。不存在的PID,默认为输入,没有子属性。属性名称在prop_name_str中取
	KeyProperties []int64 `json:"key_properties,omitempty" xml:"key_properties>int64,omitempty"`
	// 产品绑定属性,内容为属性ID(PID)的列表,绑定属性肯定在类目上有,对应属性的类目特征,子属性请根据PID到类目上去取
	AffectProperties []int64 `json:"affect_properties,omitempty" xml:"affect_properties>int64,omitempty"`
	// 过滤属性,内容有属性ID(PID)列表,很重要的属性,filter_properties包含的属性,必须填写
	FilterProperties []int64 `json:"filter_properties,omitempty" xml:"filter_properties>int64,omitempty"`
	// 属性名称扁平化结构,只保证不在类目上的CP有值
	PropNameStr string `json:"prop_name_str,omitempty" xml:"prop_name_str,omitempty"`
	// 预留
	PropFeatures string `json:"prop_features,omitempty" xml:"prop_features,omitempty"`
	// 类目ID
	CategoryId int64 `json:"category_id,omitempty" xml:"category_id,omitempty"`
	// 模板ID,发布产品,必须放到Product中
	TemplateId int64 `json:"template_id,omitempty" xml:"template_id,omitempty"`
	// 品类ID,和类目ID类似
	CommodityId int64 `json:"commodity_id,omitempty" xml:"commodity_id,omitempty"`
}

SpuTemplateDo 结构体

type SupplyItemChangeMessage

type SupplyItemChangeMessage struct {
	// 货号列表
	ProductCodes []string `json:"product_codes,omitempty" xml:"product_codes>string,omitempty"`
	// 供应商门店,最大20个
	SupplyStoreId string `json:"supply_store_id,omitempty" xml:"supply_store_id,omitempty"`
}

SupplyItemChangeMessage 结构体

type TaobaoAftersaleGetAPIRequest

type TaobaoAftersaleGetAPIRequest struct {
	model.Params
}

TaobaoAftersaleGetAPIRequest 查询用户售后服务模板 API请求 taobao.aftersale.get

查询用户设置的售后服务模板,仅返回标题和id

func NewTaobaoAftersaleGetRequest

func NewTaobaoAftersaleGetRequest() *TaobaoAftersaleGetAPIRequest

NewTaobaoAftersaleGetRequest 初始化TaobaoAftersaleGetAPIRequest对象

func (TaobaoAftersaleGetAPIRequest) GetApiMethodName

func (r TaobaoAftersaleGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoAftersaleGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoAftersaleGetAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoAftersaleGetAPIRequest) GetRawParams() model.Params

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

type TaobaoAftersaleGetAPIResponse

type TaobaoAftersaleGetAPIResponse struct {
	model.CommonResponse
	TaobaoAftersaleGetAPIResponseModel
}

TaobaoAftersaleGetAPIResponse 查询用户售后服务模板 API返回值 taobao.aftersale.get

查询用户设置的售后服务模板,仅返回标题和id

type TaobaoAftersaleGetAPIResponseModel

type TaobaoAftersaleGetAPIResponseModel struct {
	XMLName xml.Name `xml:"aftersale_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 售后服务返回对象
	AfterSales []AfterSale `json:"after_sales,omitempty" xml:"after_sales>after_sale,omitempty"`
}

TaobaoAftersaleGetAPIResponseModel is 查询用户售后服务模板 成功返回结果

type TaobaoBaikeImportZhubaoDataAPIRequest

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

TaobaoBaikeImportZhubaoDataAPIRequest 导入数据到商品百科服务 API请求 taobao.baike.import.zhubao.data

用于接入外部数据录入到商品百科中

func NewTaobaoBaikeImportZhubaoDataRequest

func NewTaobaoBaikeImportZhubaoDataRequest() *TaobaoBaikeImportZhubaoDataAPIRequest

NewTaobaoBaikeImportZhubaoDataRequest 初始化TaobaoBaikeImportZhubaoDataAPIRequest对象

func (TaobaoBaikeImportZhubaoDataAPIRequest) GetApiMethodName

func (r TaobaoBaikeImportZhubaoDataAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoBaikeImportZhubaoDataAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoBaikeImportZhubaoDataAPIRequest) GetDataJsonStr

func (r TaobaoBaikeImportZhubaoDataAPIRequest) GetDataJsonStr() string

GetDataJsonStr DataJsonStr Getter

func (TaobaoBaikeImportZhubaoDataAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoBaikeImportZhubaoDataAPIRequest) SetDataJsonStr

func (r *TaobaoBaikeImportZhubaoDataAPIRequest) SetDataJsonStr(_dataJsonStr string) error

SetDataJsonStr is DataJsonStr Setter 约定的Json数据

type TaobaoBaikeImportZhubaoDataAPIResponse

type TaobaoBaikeImportZhubaoDataAPIResponse struct {
	model.CommonResponse
	TaobaoBaikeImportZhubaoDataAPIResponseModel
}

TaobaoBaikeImportZhubaoDataAPIResponse 导入数据到商品百科服务 API返回值 taobao.baike.import.zhubao.data

用于接入外部数据录入到商品百科中

type TaobaoBaikeImportZhubaoDataAPIResponseModel

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

TaobaoBaikeImportZhubaoDataAPIResponseModel is 导入数据到商品百科服务 成功返回结果

type TaobaoBaikeImportZhubaoDataResult

type TaobaoBaikeImportZhubaoDataResult struct {
	// messageCode
	MessageCode string `json:"message_code,omitempty" xml:"message_code,omitempty"`
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// module
	Module string `json:"module,omitempty" xml:"module,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoBaikeImportZhubaoDataResult 结构体

type TaobaoBaikeImportZhubaoPictureAPIRequest

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

TaobaoBaikeImportZhubaoPictureAPIRequest 百科图片数据导入 API请求 taobao.baike.import.zhubao.picture

用于接入外部--图片--录入到商品百科中

func NewTaobaoBaikeImportZhubaoPictureRequest

func NewTaobaoBaikeImportZhubaoPictureRequest() *TaobaoBaikeImportZhubaoPictureAPIRequest

NewTaobaoBaikeImportZhubaoPictureRequest 初始化TaobaoBaikeImportZhubaoPictureAPIRequest对象

func (TaobaoBaikeImportZhubaoPictureAPIRequest) GetApiMethodName

func (r TaobaoBaikeImportZhubaoPictureAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoBaikeImportZhubaoPictureAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoBaikeImportZhubaoPictureAPIRequest) GetPicture

GetPicture Picture Getter

func (TaobaoBaikeImportZhubaoPictureAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoBaikeImportZhubaoPictureAPIRequest) SetPicture

func (r *TaobaoBaikeImportZhubaoPictureAPIRequest) SetPicture(_picture *model.File) error

SetPicture is Picture Setter 图片二进制数据

type TaobaoBaikeImportZhubaoPictureAPIResponse

type TaobaoBaikeImportZhubaoPictureAPIResponse struct {
	model.CommonResponse
	TaobaoBaikeImportZhubaoPictureAPIResponseModel
}

TaobaoBaikeImportZhubaoPictureAPIResponse 百科图片数据导入 API返回值 taobao.baike.import.zhubao.picture

用于接入外部--图片--录入到商品百科中

type TaobaoBaikeImportZhubaoPictureAPIResponseModel

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

TaobaoBaikeImportZhubaoPictureAPIResponseModel is 百科图片数据导入 成功返回结果

type TaobaoBaikeImportZhubaoPictureResult

type TaobaoBaikeImportZhubaoPictureResult struct {
	// messageCode
	MessageCode string `json:"message_code,omitempty" xml:"message_code,omitempty"`
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// module
	Module string `json:"module,omitempty" xml:"module,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoBaikeImportZhubaoPictureResult 结构体

type TaobaoBanamadpcItemAddAPIRequest

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

TaobaoBanamadpcItemAddAPIRequest 新发商品 API请求 taobao.banamadpc.item.add

巴拿马供应商通过此接口新发商品

func NewTaobaoBanamadpcItemAddRequest

func NewTaobaoBanamadpcItemAddRequest() *TaobaoBanamadpcItemAddAPIRequest

NewTaobaoBanamadpcItemAddRequest 初始化TaobaoBanamadpcItemAddAPIRequest对象

func (TaobaoBanamadpcItemAddAPIRequest) GetApiMethodName

func (r TaobaoBanamadpcItemAddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoBanamadpcItemAddAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoBanamadpcItemAddAPIRequest) GetCatId

GetCatId CatId Getter

func (TaobaoBanamadpcItemAddAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoBanamadpcItemAddAPIRequest) GetXml

GetXml Xml Getter

func (*TaobaoBanamadpcItemAddAPIRequest) SetCatId

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

SetCatId is CatId Setter 类目id

func (*TaobaoBanamadpcItemAddAPIRequest) SetXml

SetXml is Xml Setter 商品的schema xml

type TaobaoBanamadpcItemAddAPIResponse

type TaobaoBanamadpcItemAddAPIResponse struct {
	model.CommonResponse
	TaobaoBanamadpcItemAddAPIResponseModel
}

TaobaoBanamadpcItemAddAPIResponse 新发商品 API返回值 taobao.banamadpc.item.add

巴拿马供应商通过此接口新发商品

type TaobaoBanamadpcItemAddAPIResponseModel

type TaobaoBanamadpcItemAddAPIResponseModel struct {
	XMLName xml.Name `xml:"banamadpc_item_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 无
	ApiResult *TaobaoBanamadpcItemAddApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"`
}

TaobaoBanamadpcItemAddAPIResponseModel is 新发商品 成功返回结果

type TaobaoBanamadpcItemAddApiResult

type TaobaoBanamadpcItemAddApiResult struct {
	// 错误信息
	ErMsg string `json:"er_msg,omitempty" xml:"er_msg,omitempty"`
	// 错误码
	ErCode string `json:"er_code,omitempty" xml:"er_code,omitempty"`
	// 商品id
	Result int64 `json:"result,omitempty" xml:"result,omitempty"`
	// 成功
	Error bool `json:"error,omitempty" xml:"error,omitempty"`
}

TaobaoBanamadpcItemAddApiResult 结构体

type TaobaoBanamadpcItemEditRenderAPIRequest

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

TaobaoBanamadpcItemEditRenderAPIRequest 编辑商品发布页 API请求 taobao.banamadpc.item.edit.render

巴拿马供应商通过此接口获取编辑商品发布页

func NewTaobaoBanamadpcItemEditRenderRequest

func NewTaobaoBanamadpcItemEditRenderRequest() *TaobaoBanamadpcItemEditRenderAPIRequest

NewTaobaoBanamadpcItemEditRenderRequest 初始化TaobaoBanamadpcItemEditRenderAPIRequest对象

func (TaobaoBanamadpcItemEditRenderAPIRequest) GetApiMethodName

func (r TaobaoBanamadpcItemEditRenderAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoBanamadpcItemEditRenderAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoBanamadpcItemEditRenderAPIRequest) GetItemId

GetItemId ItemId Getter

func (TaobaoBanamadpcItemEditRenderAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoBanamadpcItemEditRenderAPIRequest) SetItemId

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

SetItemId is ItemId Setter 商品id

type TaobaoBanamadpcItemEditRenderAPIResponse

type TaobaoBanamadpcItemEditRenderAPIResponse struct {
	model.CommonResponse
	TaobaoBanamadpcItemEditRenderAPIResponseModel
}

TaobaoBanamadpcItemEditRenderAPIResponse 编辑商品发布页 API返回值 taobao.banamadpc.item.edit.render

巴拿马供应商通过此接口获取编辑商品发布页

type TaobaoBanamadpcItemEditRenderAPIResponseModel

type TaobaoBanamadpcItemEditRenderAPIResponseModel struct {
	XMLName xml.Name `xml:"banamadpc_item_edit_render_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 无
	ApiResult *TaobaoBanamadpcItemEditRenderApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"`
}

TaobaoBanamadpcItemEditRenderAPIResponseModel is 编辑商品发布页 成功返回结果

type TaobaoBanamadpcItemEditRenderApiResult

type TaobaoBanamadpcItemEditRenderApiResult struct {
	// 错误信息
	ErMsg string `json:"er_msg,omitempty" xml:"er_msg,omitempty"`
	// 错误码
	ErCode string `json:"er_code,omitempty" xml:"er_code,omitempty"`
	// 商品标题,价格,图片等商品数据的schema xml
	Result string `json:"result,omitempty" xml:"result,omitempty"`
	// 成功
	Error bool `json:"error,omitempty" xml:"error,omitempty"`
}

TaobaoBanamadpcItemEditRenderApiResult 结构体

type TaobaoBanamadpcItemRenderAPIRequest

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

TaobaoBanamadpcItemRenderAPIRequest 新发商品发布页 API请求 taobao.banamadpc.item.render

巴拿马供应商通过此接口新发商品发布页

func NewTaobaoBanamadpcItemRenderRequest

func NewTaobaoBanamadpcItemRenderRequest() *TaobaoBanamadpcItemRenderAPIRequest

NewTaobaoBanamadpcItemRenderRequest 初始化TaobaoBanamadpcItemRenderAPIRequest对象

func (TaobaoBanamadpcItemRenderAPIRequest) GetApiMethodName

func (r TaobaoBanamadpcItemRenderAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoBanamadpcItemRenderAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoBanamadpcItemRenderAPIRequest) GetCatId

GetCatId CatId Getter

func (TaobaoBanamadpcItemRenderAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoBanamadpcItemRenderAPIRequest) SetCatId

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

SetCatId is CatId Setter 类目ID

type TaobaoBanamadpcItemRenderAPIResponse

type TaobaoBanamadpcItemRenderAPIResponse struct {
	model.CommonResponse
	TaobaoBanamadpcItemRenderAPIResponseModel
}

TaobaoBanamadpcItemRenderAPIResponse 新发商品发布页 API返回值 taobao.banamadpc.item.render

巴拿马供应商通过此接口新发商品发布页

type TaobaoBanamadpcItemRenderAPIResponseModel

type TaobaoBanamadpcItemRenderAPIResponseModel struct {
	XMLName xml.Name `xml:"banamadpc_item_render_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 根据站点名称查询产品
	ApiResult *TaobaoBanamadpcItemRenderApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"`
}

TaobaoBanamadpcItemRenderAPIResponseModel is 新发商品发布页 成功返回结果

type TaobaoBanamadpcItemRenderApiResult

type TaobaoBanamadpcItemRenderApiResult struct {
	// 错误信息
	ErMsg string `json:"er_msg,omitempty" xml:"er_msg,omitempty"`
	// 错误码
	ErCode string `json:"er_code,omitempty" xml:"er_code,omitempty"`
	// 返回类目新发下需要填写的商品信息
	Result string `json:"result,omitempty" xml:"result,omitempty"`
	// 错误
	Error bool `json:"error,omitempty" xml:"error,omitempty"`
}

TaobaoBanamadpcItemRenderApiResult 结构体

type TaobaoBanamadpcItemSelectPropAPIRequest

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

TaobaoBanamadpcItemSelectPropAPIRequest 获取子属性 API请求 taobao.banamadpc.item.select.prop

巴拿马供应商通过此接口获取子属性

func NewTaobaoBanamadpcItemSelectPropRequest

func NewTaobaoBanamadpcItemSelectPropRequest() *TaobaoBanamadpcItemSelectPropAPIRequest

NewTaobaoBanamadpcItemSelectPropRequest 初始化TaobaoBanamadpcItemSelectPropAPIRequest对象

func (TaobaoBanamadpcItemSelectPropAPIRequest) GetApiMethodName

func (r TaobaoBanamadpcItemSelectPropAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoBanamadpcItemSelectPropAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoBanamadpcItemSelectPropAPIRequest) GetCatId

GetCatId CatId Getter

func (TaobaoBanamadpcItemSelectPropAPIRequest) GetPropId

GetPropId PropId Getter

func (TaobaoBanamadpcItemSelectPropAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoBanamadpcItemSelectPropAPIRequest) GetXml

GetXml Xml Getter

func (*TaobaoBanamadpcItemSelectPropAPIRequest) SetCatId

SetCatId is CatId Setter 类目id

func (*TaobaoBanamadpcItemSelectPropAPIRequest) SetPropId

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

SetPropId is PropId Setter 属性id

func (*TaobaoBanamadpcItemSelectPropAPIRequest) SetXml

SetXml is Xml Setter 子属性的schema xml

type TaobaoBanamadpcItemSelectPropAPIResponse

type TaobaoBanamadpcItemSelectPropAPIResponse struct {
	model.CommonResponse
	TaobaoBanamadpcItemSelectPropAPIResponseModel
}

TaobaoBanamadpcItemSelectPropAPIResponse 获取子属性 API返回值 taobao.banamadpc.item.select.prop

巴拿马供应商通过此接口获取子属性

type TaobaoBanamadpcItemSelectPropAPIResponseModel

type TaobaoBanamadpcItemSelectPropAPIResponseModel struct {
	XMLName xml.Name `xml:"banamadpc_item_select_prop_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 无
	ApiResult *TaobaoBanamadpcItemSelectPropApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"`
}

TaobaoBanamadpcItemSelectPropAPIResponseModel is 获取子属性 成功返回结果

type TaobaoBanamadpcItemSelectPropApiResult

type TaobaoBanamadpcItemSelectPropApiResult struct {
	// 错误信息
	ErMsg string `json:"er_msg,omitempty" xml:"er_msg,omitempty"`
	// 错误码
	ErCode string `json:"er_code,omitempty" xml:"er_code,omitempty"`
	// 入参类目下入参属性的子属性schema xml
	Result string `json:"result,omitempty" xml:"result,omitempty"`
	// 成功
	Error bool `json:"error,omitempty" xml:"error,omitempty"`
}

TaobaoBanamadpcItemSelectPropApiResult 结构体

type TaobaoBanamadpcItemUpdateAPIRequest

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

TaobaoBanamadpcItemUpdateAPIRequest 编辑商品 API请求 taobao.banamadpc.item.update

巴拿马供应商通过此接口编辑商品

func NewTaobaoBanamadpcItemUpdateRequest

func NewTaobaoBanamadpcItemUpdateRequest() *TaobaoBanamadpcItemUpdateAPIRequest

NewTaobaoBanamadpcItemUpdateRequest 初始化TaobaoBanamadpcItemUpdateAPIRequest对象

func (TaobaoBanamadpcItemUpdateAPIRequest) GetApiMethodName

func (r TaobaoBanamadpcItemUpdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoBanamadpcItemUpdateAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoBanamadpcItemUpdateAPIRequest) GetItemId

GetItemId ItemId Getter

func (TaobaoBanamadpcItemUpdateAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoBanamadpcItemUpdateAPIRequest) GetXml

GetXml Xml Getter

func (*TaobaoBanamadpcItemUpdateAPIRequest) SetItemId

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

SetItemId is ItemId Setter 商品id

func (*TaobaoBanamadpcItemUpdateAPIRequest) SetXml

SetXml is Xml Setter 商品的schema xml

type TaobaoBanamadpcItemUpdateAPIResponse

type TaobaoBanamadpcItemUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoBanamadpcItemUpdateAPIResponseModel
}

TaobaoBanamadpcItemUpdateAPIResponse 编辑商品 API返回值 taobao.banamadpc.item.update

巴拿马供应商通过此接口编辑商品

type TaobaoBanamadpcItemUpdateAPIResponseModel

type TaobaoBanamadpcItemUpdateAPIResponseModel struct {
	XMLName xml.Name `xml:"banamadpc_item_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 无
	ApiResult *TaobaoBanamadpcItemUpdateApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"`
}

TaobaoBanamadpcItemUpdateAPIResponseModel is 编辑商品 成功返回结果

type TaobaoBanamadpcItemUpdateApiResult

type TaobaoBanamadpcItemUpdateApiResult struct {
	// 错误信息
	ErMsg string `json:"er_msg,omitempty" xml:"er_msg,omitempty"`
	// 错误码
	ErCode string `json:"er_code,omitempty" xml:"er_code,omitempty"`
	// 商品id
	Result int64 `json:"result,omitempty" xml:"result,omitempty"`
	// 成功
	Error bool `json:"error,omitempty" xml:"error,omitempty"`
}

TaobaoBanamadpcItemUpdateApiResult 结构体

type TaobaoItemCarturlGetAPIRequest

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

TaobaoItemCarturlGetAPIRequest 加购URL获取 API请求 taobao.item.carturl.get

获取加购URL,支持添加商品到购物车

func NewTaobaoItemCarturlGetRequest

func NewTaobaoItemCarturlGetRequest() *TaobaoItemCarturlGetAPIRequest

NewTaobaoItemCarturlGetRequest 初始化TaobaoItemCarturlGetAPIRequest对象

func (TaobaoItemCarturlGetAPIRequest) GetApiMethodName

func (r TaobaoItemCarturlGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoItemCarturlGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoItemCarturlGetAPIRequest) GetCallbackUrl

func (r TaobaoItemCarturlGetAPIRequest) GetCallbackUrl() string

GetCallbackUrl CallbackUrl Getter

func (TaobaoItemCarturlGetAPIRequest) GetExtParams

func (r TaobaoItemCarturlGetAPIRequest) GetExtParams() string

GetExtParams ExtParams Getter

func (TaobaoItemCarturlGetAPIRequest) GetItemIds

func (r TaobaoItemCarturlGetAPIRequest) GetItemIds() []string

GetItemIds ItemIds Getter

func (TaobaoItemCarturlGetAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoItemCarturlGetAPIRequest) GetRawParams() model.Params

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

func (TaobaoItemCarturlGetAPIRequest) GetType

GetType Type Getter

func (TaobaoItemCarturlGetAPIRequest) GetUserId

func (r TaobaoItemCarturlGetAPIRequest) GetUserId() int64

GetUserId UserId Getter

func (TaobaoItemCarturlGetAPIRequest) GetUserNick

func (r TaobaoItemCarturlGetAPIRequest) GetUserNick() string

GetUserNick UserNick Getter

func (*TaobaoItemCarturlGetAPIRequest) SetCallbackUrl

func (r *TaobaoItemCarturlGetAPIRequest) SetCallbackUrl(_callbackUrl string) error

SetCallbackUrl is CallbackUrl Setter 回调地址,需要是EWS域名地址。可不填,默认到购物车页面

func (*TaobaoItemCarturlGetAPIRequest) SetExtParams

func (r *TaobaoItemCarturlGetAPIRequest) SetExtParams(_extParams string) error

SetExtParams is ExtParams Setter 扩展属性,关注店铺的时候会传递下去,格式为K:V|K:V格式

func (*TaobaoItemCarturlGetAPIRequest) SetItemIds

func (r *TaobaoItemCarturlGetAPIRequest) SetItemIds(_itemIds []string) error

SetItemIds is ItemIds Setter 商品信息,格式为 商品ID_SKU ID_数量,多条记录以逗号(,)分割

func (*TaobaoItemCarturlGetAPIRequest) SetType

func (r *TaobaoItemCarturlGetAPIRequest) SetType(_type string) error

SetType is Type Setter 端类型,默认是tb,可选tb,hm

func (*TaobaoItemCarturlGetAPIRequest) SetUserId

func (r *TaobaoItemCarturlGetAPIRequest) SetUserId(_userId int64) error

SetUserId is UserId Setter 商家ID

func (*TaobaoItemCarturlGetAPIRequest) SetUserNick

func (r *TaobaoItemCarturlGetAPIRequest) SetUserNick(_userNick string) error

SetUserNick is UserNick Setter 商家Nick,优先使用user_id

type TaobaoItemCarturlGetAPIResponse

type TaobaoItemCarturlGetAPIResponse struct {
	model.CommonResponse
	TaobaoItemCarturlGetAPIResponseModel
}

TaobaoItemCarturlGetAPIResponse 加购URL获取 API返回值 taobao.item.carturl.get

获取加购URL,支持添加商品到购物车

type TaobaoItemCarturlGetAPIResponseModel

type TaobaoItemCarturlGetAPIResponseModel struct {
	XMLName xml.Name `xml:"item_carturl_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 加购的URL地址
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoItemCarturlGetAPIResponseModel is 加购URL获取 成功返回结果

type TaobaoItemQualificationDisplayGetAPIRequest

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

TaobaoItemQualificationDisplayGetAPIRequest 资质采集配置异步获取接口 API请求 taobao.item.qualification.display.get

根据类目,商品,属性等参与动态获得资质采集配置

func NewTaobaoItemQualificationDisplayGetRequest

func NewTaobaoItemQualificationDisplayGetRequest() *TaobaoItemQualificationDisplayGetAPIRequest

NewTaobaoItemQualificationDisplayGetRequest 初始化TaobaoItemQualificationDisplayGetAPIRequest对象

func (TaobaoItemQualificationDisplayGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoItemQualificationDisplayGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoItemQualificationDisplayGetAPIRequest) GetCategoryId

GetCategoryId CategoryId Getter

func (TaobaoItemQualificationDisplayGetAPIRequest) GetItemId

GetItemId ItemId Getter

func (TaobaoItemQualificationDisplayGetAPIRequest) GetParam

GetParam Param Getter

func (TaobaoItemQualificationDisplayGetAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoItemQualificationDisplayGetAPIRequest) SetCategoryId

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

SetCategoryId is CategoryId Setter 类目id

func (*TaobaoItemQualificationDisplayGetAPIRequest) SetItemId

SetItemId is ItemId Setter 商品id

func (*TaobaoItemQualificationDisplayGetAPIRequest) SetParam

SetParam is Param Setter 参数列表,为key和value都是string的map的转化的json格式

type TaobaoItemQualificationDisplayGetAPIResponse

type TaobaoItemQualificationDisplayGetAPIResponse struct {
	model.CommonResponse
	TaobaoItemQualificationDisplayGetAPIResponseModel
}

TaobaoItemQualificationDisplayGetAPIResponse 资质采集配置异步获取接口 API返回值 taobao.item.qualification.display.get

根据类目,商品,属性等参与动态获得资质采集配置

type TaobaoItemQualificationDisplayGetAPIResponseModel

type TaobaoItemQualificationDisplayGetAPIResponseModel struct {
	XMLName xml.Name `xml:"item_qualification_display_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回资质采集配置
	DisplayConf *DisplayQualifications `json:"display_conf,omitempty" xml:"display_conf,omitempty"`
}

TaobaoItemQualificationDisplayGetAPIResponseModel is 资质采集配置异步获取接口 成功返回结果

type TaobaoMiniappItemsGetAPIRequest

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

TaobaoMiniappItemsGetAPIRequest 批量获取商品信息 API请求 taobao.miniapp.items.get

获取商品公开属性,只允许在商家应用环境中使用

func NewTaobaoMiniappItemsGetRequest

func NewTaobaoMiniappItemsGetRequest() *TaobaoMiniappItemsGetAPIRequest

NewTaobaoMiniappItemsGetRequest 初始化TaobaoMiniappItemsGetAPIRequest对象

func (TaobaoMiniappItemsGetAPIRequest) GetApiMethodName

func (r TaobaoMiniappItemsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappItemsGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniappItemsGetAPIRequest) GetFields

func (r TaobaoMiniappItemsGetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaoMiniappItemsGetAPIRequest) GetNumIids

func (r TaobaoMiniappItemsGetAPIRequest) GetNumIids() []string

GetNumIids NumIids Getter

func (TaobaoMiniappItemsGetAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoMiniappItemsGetAPIRequest) GetRawParams() model.Params

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

func (*TaobaoMiniappItemsGetAPIRequest) SetFields

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

SetFields is Fields Setter 需要返回的商品对象字段。可选值:Item商品结构体中字段均可返回(其中item_weight,item_size,sold_quantity暂未返回);多个字段用“,”分隔。如果想返回整个子对象,fields设置相应字段,如itemimg;如果想返回子对象里面的某个字段,那字段设为某个值,如itemimg.url。

func (*TaobaoMiniappItemsGetAPIRequest) SetNumIids

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

SetNumIids is NumIids Setter 商品数字id列表,多个num_iid用逗号隔开,一次不超过50个。

type TaobaoMiniappItemsGetAPIResponse

type TaobaoMiniappItemsGetAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappItemsGetAPIResponseModel
}

TaobaoMiniappItemsGetAPIResponse 批量获取商品信息 API返回值 taobao.miniapp.items.get

获取商品公开属性,只允许在商家应用环境中使用

type TaobaoMiniappItemsGetAPIResponseModel

type TaobaoMiniappItemsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"miniapp_items_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// Item(商品)结构
	Items []Item `json:"items,omitempty" xml:"items>item,omitempty"`
}

TaobaoMiniappItemsGetAPIResponseModel is 批量获取商品信息 成功返回结果

type TaobaoProductAddAPIRequest

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

TaobaoProductAddAPIRequest 上传一个产品,不包括产品非主图和属性图片 API请求 taobao.product.add

获取类目ID,必需是叶子类目ID;调用taobao.itemcats.get.v2获取 <br/>传入关键属性,结构:pid:vid;pid:vid.调用taobao.itemprops.get.v2获取pid,<br/>调用taobao.itempropvalues.get获取vid;如果碰到用户自定义属性,请用customer_props.<br/>新增:套装产品发布,目前支持单件多个即 A*2 形式的套装

func NewTaobaoProductAddRequest

func NewTaobaoProductAddRequest() *TaobaoProductAddAPIRequest

NewTaobaoProductAddRequest 初始化TaobaoProductAddAPIRequest对象

func (TaobaoProductAddAPIRequest) GetApiMethodName

func (r TaobaoProductAddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoProductAddAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoProductAddAPIRequest) GetBinds

func (r TaobaoProductAddAPIRequest) GetBinds() string

GetBinds Binds Getter

func (TaobaoProductAddAPIRequest) GetCid

func (r TaobaoProductAddAPIRequest) GetCid() int64

GetCid Cid Getter

func (TaobaoProductAddAPIRequest) GetCustomerProps

func (r TaobaoProductAddAPIRequest) GetCustomerProps() string

GetCustomerProps CustomerProps Getter

func (TaobaoProductAddAPIRequest) GetDesc

func (r TaobaoProductAddAPIRequest) GetDesc() string

GetDesc Desc Getter

func (TaobaoProductAddAPIRequest) GetImage

func (r TaobaoProductAddAPIRequest) GetImage() *model.File

GetImage Image Getter

func (TaobaoProductAddAPIRequest) GetMajor

func (r TaobaoProductAddAPIRequest) GetMajor() bool

GetMajor Major Getter

func (TaobaoProductAddAPIRequest) GetMarketTime

func (r TaobaoProductAddAPIRequest) GetMarketTime() string

GetMarketTime MarketTime Getter

func (TaobaoProductAddAPIRequest) GetName

func (r TaobaoProductAddAPIRequest) GetName() string

GetName Name Getter

func (TaobaoProductAddAPIRequest) GetNativeUnkeyprops

func (r TaobaoProductAddAPIRequest) GetNativeUnkeyprops() string

GetNativeUnkeyprops NativeUnkeyprops Getter

func (TaobaoProductAddAPIRequest) GetOuterId

func (r TaobaoProductAddAPIRequest) GetOuterId() string

GetOuterId OuterId Getter

func (TaobaoProductAddAPIRequest) GetPrice

func (r TaobaoProductAddAPIRequest) GetPrice() string

GetPrice Price Getter

func (TaobaoProductAddAPIRequest) GetPropertyAlias

func (r TaobaoProductAddAPIRequest) GetPropertyAlias() string

GetPropertyAlias PropertyAlias Getter

func (TaobaoProductAddAPIRequest) GetProps

func (r TaobaoProductAddAPIRequest) GetProps() string

GetProps Props Getter

func (TaobaoProductAddAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoProductAddAPIRequest) GetRawParams() model.Params

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

func (TaobaoProductAddAPIRequest) GetSaleProps

func (r TaobaoProductAddAPIRequest) GetSaleProps() string

GetSaleProps SaleProps Getter

func (*TaobaoProductAddAPIRequest) SetBinds

func (r *TaobaoProductAddAPIRequest) SetBinds(_binds string) error

SetBinds is Binds Setter 非关键属性结构:pid:vid;pid:vid.<br>非关键属性<font color=red>不包含</font>关键属性、销售属性、用户自定义属性、商品属性;<br>调用taobao.itemprops.get获取pid,调用taobao.itempropvalues.get获取vid.<br><font color=red>注:支持最大长度为512字节</font>

func (*TaobaoProductAddAPIRequest) SetCid

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

SetCid is Cid Setter 商品类目ID.调用taobao.itemcats.get获取;注意:必须是叶子类目 id.

func (*TaobaoProductAddAPIRequest) SetCustomerProps

func (r *TaobaoProductAddAPIRequest) SetCustomerProps(_customerProps string) error

SetCustomerProps is CustomerProps Setter 用户自定义属性,结构:pid1:value1;pid2:value2,如果有型号,系列等子属性用: 隔开 例如:“20000:优衣库:型号:001;632501:1234”,表示“品牌:优衣库:型号:001;货号:1234”<br><font color=red>注:包含所有自定义属性的传入</font>

func (*TaobaoProductAddAPIRequest) SetDesc

func (r *TaobaoProductAddAPIRequest) SetDesc(_desc string) error

SetDesc is Desc Setter 产品描述.最大不超过25000个字符

func (*TaobaoProductAddAPIRequest) SetImage

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

SetImage is Image Setter 产品主图片.最大1M,目前仅支持GIF,JPG.

func (*TaobaoProductAddAPIRequest) SetMajor

func (r *TaobaoProductAddAPIRequest) SetMajor(_major bool) error

SetMajor is Major Setter 是不是主图

func (*TaobaoProductAddAPIRequest) SetMarketTime

func (r *TaobaoProductAddAPIRequest) SetMarketTime(_marketTime string) error

SetMarketTime is MarketTime Setter 上市时间。目前只支持鞋城类目传入此参数

func (*TaobaoProductAddAPIRequest) SetName

func (r *TaobaoProductAddAPIRequest) SetName(_name string) error

SetName is Name Setter 产品名称,最大30个字符.

func (*TaobaoProductAddAPIRequest) SetNativeUnkeyprops

func (r *TaobaoProductAddAPIRequest) SetNativeUnkeyprops(_nativeUnkeyprops string) error

SetNativeUnkeyprops is NativeUnkeyprops Setter native_unkeyprops

func (*TaobaoProductAddAPIRequest) SetOuterId

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

SetOuterId is OuterId Setter 外部产品ID

func (*TaobaoProductAddAPIRequest) SetPrice

func (r *TaobaoProductAddAPIRequest) SetPrice(_price string) error

SetPrice is Price Setter 产品市场价.精确到2位小数;单位为元.如:200.07

func (*TaobaoProductAddAPIRequest) SetPropertyAlias

func (r *TaobaoProductAddAPIRequest) SetPropertyAlias(_propertyAlias string) error

SetPropertyAlias is PropertyAlias Setter 销售属性值别名。格式为pid1:vid1:alias1;pid1:vid2:alia2。只有少数销售属性值支持传入别名,比如颜色和尺寸

func (*TaobaoProductAddAPIRequest) SetProps

func (r *TaobaoProductAddAPIRequest) SetProps(_props string) error

SetProps is Props Setter 关键属性 结构:pid:vid;pid:vid.调用taobao.itemprops.get获取pid,调用taobao.itempropvalues.get获取vid;如果碰到用户自定义属性,请用customer_props.

func (*TaobaoProductAddAPIRequest) SetSaleProps

func (r *TaobaoProductAddAPIRequest) SetSaleProps(_saleProps string) error

SetSaleProps is SaleProps Setter 销售属性结构:pid:vid;pid:vid.调用taobao.itemprops.get获取is_sale_prop=true的pid,调用taobao.itempropvalues.get获取vid.

type TaobaoProductAddAPIResponse

type TaobaoProductAddAPIResponse struct {
	model.CommonResponse
	TaobaoProductAddAPIResponseModel
}

TaobaoProductAddAPIResponse 上传一个产品,不包括产品非主图和属性图片 API返回值 taobao.product.add

获取类目ID,必需是叶子类目ID;调用taobao.itemcats.get.v2获取 <br/>传入关键属性,结构:pid:vid;pid:vid.调用taobao.itemprops.get.v2获取pid,<br/>调用taobao.itempropvalues.get获取vid;如果碰到用户自定义属性,请用customer_props.<br/>新增:套装产品发布,目前支持单件多个即 A*2 形式的套装

type TaobaoProductAddAPIResponseModel

type TaobaoProductAddAPIResponseModel struct {
	XMLName xml.Name `xml:"product_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 产品结构
	Product *Product `json:"product,omitempty" xml:"product,omitempty"`
}

TaobaoProductAddAPIResponseModel is 上传一个产品,不包括产品非主图和属性图片 成功返回结果

type TaobaoProductGetAPIRequest

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

TaobaoProductGetAPIRequest 获取一个产品的信息 API请求 taobao.product.get

天猫商家发布商品时,查询关联产品信息时使用,非商品查询接口。商品查询接口:taobao.item.seller.get<br> 两种方式查看一个产品详细信息: 传入product_id来查询;传入cid和props来查询 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=itemapi" target="_blank">点击查看更多商品API说明</a></strong>

func NewTaobaoProductGetRequest

func NewTaobaoProductGetRequest() *TaobaoProductGetAPIRequest

NewTaobaoProductGetRequest 初始化TaobaoProductGetAPIRequest对象

func (TaobaoProductGetAPIRequest) GetApiMethodName

func (r TaobaoProductGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoProductGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoProductGetAPIRequest) GetCid

func (r TaobaoProductGetAPIRequest) GetCid() int64

GetCid Cid Getter

func (TaobaoProductGetAPIRequest) GetFields

func (r TaobaoProductGetAPIRequest) GetFields() string

GetFields Fields Getter

func (TaobaoProductGetAPIRequest) GetProductId

func (r TaobaoProductGetAPIRequest) GetProductId() int64

GetProductId ProductId Getter

func (TaobaoProductGetAPIRequest) GetProps

func (r TaobaoProductGetAPIRequest) GetProps() string

GetProps Props Getter

func (TaobaoProductGetAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoProductGetAPIRequest) GetRawParams() model.Params

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

func (*TaobaoProductGetAPIRequest) SetCid

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

SetCid is Cid Setter 商品类目id.调用taobao.itemcats.get获取;必须是叶子类目id,如果没有传product_id,那么cid和props必须要传.

func (*TaobaoProductGetAPIRequest) SetFields

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

SetFields is Fields Setter 需返回的字段列表.可选值:Product数据结构中的所有字段;多个字段之间用","分隔.

func (*TaobaoProductGetAPIRequest) SetProductId

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

SetProductId is ProductId Setter Product的id.两种方式来查看一个产品:1.传入product_id来查询 2.传入cid和props来查询

func (*TaobaoProductGetAPIRequest) SetProps

func (r *TaobaoProductGetAPIRequest) SetProps(_props string) error

SetProps is Props Setter 比如:诺基亚N73这个产品的关键属性列表就是:品牌:诺基亚;型号:N73,对应的PV值就是10005:10027;10006:29729.

type TaobaoProductGetAPIResponse

type TaobaoProductGetAPIResponse struct {
	model.CommonResponse
	TaobaoProductGetAPIResponseModel
}

TaobaoProductGetAPIResponse 获取一个产品的信息 API返回值 taobao.product.get

天猫商家发布商品时,查询关联产品信息时使用,非商品查询接口。商品查询接口:taobao.item.seller.get<br> 两种方式查看一个产品详细信息: 传入product_id来查询;传入cid和props来查询 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=itemapi" target="_blank">点击查看更多商品API说明</a></strong>

type TaobaoProductGetAPIResponseModel

type TaobaoProductGetAPIResponseModel struct {
	XMLName xml.Name `xml:"product_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回具体信息为入参fields请求的字段信息
	Product *Product `json:"product,omitempty" xml:"product,omitempty"`
}

TaobaoProductGetAPIResponseModel is 获取一个产品的信息 成功返回结果

type TaobaoProductImgUploadAPIRequest

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

TaobaoProductImgUploadAPIRequest 上传单张产品非主图,如果需要传多张,可调多次 API请求 taobao.product.img.upload

1.传入产品ID <br/>2.传入图片内容 <br/>注意:图片最大为500K,只支持JPG,GIF格式,如果需要传多张,可调多次

func NewTaobaoProductImgUploadRequest

func NewTaobaoProductImgUploadRequest() *TaobaoProductImgUploadAPIRequest

NewTaobaoProductImgUploadRequest 初始化TaobaoProductImgUploadAPIRequest对象

func (TaobaoProductImgUploadAPIRequest) GetApiMethodName

func (r TaobaoProductImgUploadAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoProductImgUploadAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoProductImgUploadAPIRequest) GetId

GetId Id Getter

func (TaobaoProductImgUploadAPIRequest) GetImage

GetImage Image Getter

func (TaobaoProductImgUploadAPIRequest) GetIsMajor

func (r TaobaoProductImgUploadAPIRequest) GetIsMajor() bool

GetIsMajor IsMajor Getter

func (TaobaoProductImgUploadAPIRequest) GetPosition

func (r TaobaoProductImgUploadAPIRequest) GetPosition() int64

GetPosition Position Getter

func (TaobaoProductImgUploadAPIRequest) GetProductId

func (r TaobaoProductImgUploadAPIRequest) GetProductId() int64

GetProductId ProductId Getter

func (TaobaoProductImgUploadAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoProductImgUploadAPIRequest) SetId

SetId is Id Setter 产品图片ID.修改图片时需要传入

func (*TaobaoProductImgUploadAPIRequest) SetImage

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

SetImage is Image Setter 图片内容.图片最大为500K,只支持JPG,GIF格式.

func (*TaobaoProductImgUploadAPIRequest) SetIsMajor

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

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

func (*TaobaoProductImgUploadAPIRequest) SetPosition

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

SetPosition is Position Setter 图片序号

func (*TaobaoProductImgUploadAPIRequest) SetProductId

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

SetProductId is ProductId Setter 产品ID.Product的id

type TaobaoProductImgUploadAPIResponse

type TaobaoProductImgUploadAPIResponse struct {
	model.CommonResponse
	TaobaoProductImgUploadAPIResponseModel
}

TaobaoProductImgUploadAPIResponse 上传单张产品非主图,如果需要传多张,可调多次 API返回值 taobao.product.img.upload

1.传入产品ID <br/>2.传入图片内容 <br/>注意:图片最大为500K,只支持JPG,GIF格式,如果需要传多张,可调多次

type TaobaoProductImgUploadAPIResponseModel

type TaobaoProductImgUploadAPIResponseModel struct {
	XMLName xml.Name `xml:"product_img_upload_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回产品图片结构中的:url,id,created,modified
	ProductImg *ProductImg `json:"product_img,omitempty" xml:"product_img,omitempty"`
}

TaobaoProductImgUploadAPIResponseModel is 上传单张产品非主图,如果需要传多张,可调多次 成功返回结果

type TaobaoProductPropimgUploadAPIRequest

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

TaobaoProductPropimgUploadAPIRequest 上传单张产品属性图片,如果需要传多张,可调多次 API请求 taobao.product.propimg.upload

传入产品ID <br/>传入props,目前仅支持颜色属性.调用taobao.itemprops.get.v2取得颜色属性pid,<br/>再用taobao.itempropvalues.get取得vid;格式:pid:vid,只能传入一个颜色pid:vid串; <br/>传入图片内容 <br/>注意:图片最大为2M,只支持JPG,GIF,如果需要传多张,可调多次

func NewTaobaoProductPropimgUploadRequest

func NewTaobaoProductPropimgUploadRequest() *TaobaoProductPropimgUploadAPIRequest

NewTaobaoProductPropimgUploadRequest 初始化TaobaoProductPropimgUploadAPIRequest对象

func (TaobaoProductPropimgUploadAPIRequest) GetApiMethodName

func (r TaobaoProductPropimgUploadAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoProductPropimgUploadAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoProductPropimgUploadAPIRequest) GetId

GetId Id Getter

func (TaobaoProductPropimgUploadAPIRequest) GetImage

GetImage Image Getter

func (TaobaoProductPropimgUploadAPIRequest) GetPosition

GetPosition Position Getter

func (TaobaoProductPropimgUploadAPIRequest) GetProductId

GetProductId ProductId Getter

func (TaobaoProductPropimgUploadAPIRequest) GetProps

GetProps Props Getter

func (TaobaoProductPropimgUploadAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoProductPropimgUploadAPIRequest) SetId

SetId is Id Setter 产品属性图片ID

func (*TaobaoProductPropimgUploadAPIRequest) SetImage

SetImage is Image Setter 图片内容.图片最大为2M,只支持JPG,GIF.

func (*TaobaoProductPropimgUploadAPIRequest) SetPosition

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

SetPosition is Position Setter 图片序号

func (*TaobaoProductPropimgUploadAPIRequest) SetProductId

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

SetProductId is ProductId Setter 产品ID.Product的id

func (*TaobaoProductPropimgUploadAPIRequest) SetProps

SetProps is Props Setter 属性串.目前仅支持颜色属性.调用taobao.itemprops.get获取类目属性,取得颜色属性pid,再用taobao.itempropvalues.get取得vid;格式:pid:vid,只能传入一个颜色pid:vid串;

type TaobaoProductPropimgUploadAPIResponse

type TaobaoProductPropimgUploadAPIResponse struct {
	model.CommonResponse
	TaobaoProductPropimgUploadAPIResponseModel
}

TaobaoProductPropimgUploadAPIResponse 上传单张产品属性图片,如果需要传多张,可调多次 API返回值 taobao.product.propimg.upload

传入产品ID <br/>传入props,目前仅支持颜色属性.调用taobao.itemprops.get.v2取得颜色属性pid,<br/>再用taobao.itempropvalues.get取得vid;格式:pid:vid,只能传入一个颜色pid:vid串; <br/>传入图片内容 <br/>注意:图片最大为2M,只支持JPG,GIF,如果需要传多张,可调多次

type TaobaoProductPropimgUploadAPIResponseModel

type TaobaoProductPropimgUploadAPIResponseModel struct {
	XMLName xml.Name `xml:"product_propimg_upload_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 支持返回产品属性图片中的:url,id,created,modified
	ProductPropImg *ProductPropImg `json:"product_prop_img,omitempty" xml:"product_prop_img,omitempty"`
}

TaobaoProductPropimgUploadAPIResponseModel is 上传单张产品属性图片,如果需要传多张,可调多次 成功返回结果

type TaobaoProductUpdateAPIRequest

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

TaobaoProductUpdateAPIRequest 修改一个产品,可以修改主图,不能修改子图片 API请求 taobao.product.update

传入产品ID <br/>可修改字段:outer_id,binds,sale_props,name,price,desc,image <br/>注意:1.可以修改主图,不能修改子图片,主图最大500K,目前仅支持GIF,JPG<br/> 2.商城卖家产品发布24小时后不能作删除或修改操作

func NewTaobaoProductUpdateRequest

func NewTaobaoProductUpdateRequest() *TaobaoProductUpdateAPIRequest

NewTaobaoProductUpdateRequest 初始化TaobaoProductUpdateAPIRequest对象

func (TaobaoProductUpdateAPIRequest) GetApiMethodName

func (r TaobaoProductUpdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoProductUpdateAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoProductUpdateAPIRequest) GetBinds

GetBinds Binds Getter

func (TaobaoProductUpdateAPIRequest) GetDesc

GetDesc Desc Getter

func (TaobaoProductUpdateAPIRequest) GetImage

GetImage Image Getter

func (TaobaoProductUpdateAPIRequest) GetMajor

func (r TaobaoProductUpdateAPIRequest) GetMajor() bool

GetMajor Major Getter

func (TaobaoProductUpdateAPIRequest) GetName

GetName Name Getter

func (TaobaoProductUpdateAPIRequest) GetNativeUnkeyprops

func (r TaobaoProductUpdateAPIRequest) GetNativeUnkeyprops() string

GetNativeUnkeyprops NativeUnkeyprops Getter

func (TaobaoProductUpdateAPIRequest) GetOuterId

func (r TaobaoProductUpdateAPIRequest) GetOuterId() string

GetOuterId OuterId Getter

func (TaobaoProductUpdateAPIRequest) GetPrice

GetPrice Price Getter

func (TaobaoProductUpdateAPIRequest) GetProductId

func (r TaobaoProductUpdateAPIRequest) GetProductId() int64

GetProductId ProductId Getter

func (TaobaoProductUpdateAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoProductUpdateAPIRequest) GetRawParams() model.Params

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

func (TaobaoProductUpdateAPIRequest) GetSaleProps

func (r TaobaoProductUpdateAPIRequest) GetSaleProps() string

GetSaleProps SaleProps Getter

func (*TaobaoProductUpdateAPIRequest) SetBinds

func (r *TaobaoProductUpdateAPIRequest) SetBinds(_binds string) error

SetBinds is Binds Setter 非关键属性.调用taobao.itemprops.get获取pid,调用taobao.itempropvalues.get获取vid;格式:pid:vid;pid:vid

func (*TaobaoProductUpdateAPIRequest) SetDesc

func (r *TaobaoProductUpdateAPIRequest) SetDesc(_desc string) error

SetDesc is Desc Setter 产品描述.最大不超过25000个字符

func (*TaobaoProductUpdateAPIRequest) SetImage

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

SetImage is Image Setter 产品主图.最大500K,目前仅支持GIF,JPG

func (*TaobaoProductUpdateAPIRequest) SetMajor

func (r *TaobaoProductUpdateAPIRequest) SetMajor(_major bool) error

SetMajor is Major Setter 是否是主图

func (*TaobaoProductUpdateAPIRequest) SetName

func (r *TaobaoProductUpdateAPIRequest) SetName(_name string) error

SetName is Name Setter 产品名称.最大不超过30个字符

func (*TaobaoProductUpdateAPIRequest) SetNativeUnkeyprops

func (r *TaobaoProductUpdateAPIRequest) SetNativeUnkeyprops(_nativeUnkeyprops string) error

SetNativeUnkeyprops is NativeUnkeyprops Setter 自定义非关键属性

func (*TaobaoProductUpdateAPIRequest) SetOuterId

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

SetOuterId is OuterId Setter 外部产品ID

func (*TaobaoProductUpdateAPIRequest) SetPrice

func (r *TaobaoProductUpdateAPIRequest) SetPrice(_price string) error

SetPrice is Price Setter 产品市场价.精确到2位小数;单位为元.如:200.07

func (*TaobaoProductUpdateAPIRequest) SetProductId

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

SetProductId is ProductId Setter 产品ID

func (*TaobaoProductUpdateAPIRequest) SetSaleProps

func (r *TaobaoProductUpdateAPIRequest) SetSaleProps(_saleProps string) error

SetSaleProps is SaleProps Setter 销售属性.调用taobao.itemprops.get获取pid,调用taobao.itempropvalues.get获取vid;格式:pid:vid;pid:vid

type TaobaoProductUpdateAPIResponse

type TaobaoProductUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoProductUpdateAPIResponseModel
}

TaobaoProductUpdateAPIResponse 修改一个产品,可以修改主图,不能修改子图片 API返回值 taobao.product.update

传入产品ID <br/>可修改字段:outer_id,binds,sale_props,name,price,desc,image <br/>注意:1.可以修改主图,不能修改子图片,主图最大500K,目前仅支持GIF,JPG<br/> 2.商城卖家产品发布24小时后不能作删除或修改操作

type TaobaoProductUpdateAPIResponseModel

type TaobaoProductUpdateAPIResponseModel struct {
	XMLName xml.Name `xml:"product_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回product数据结构中的:product_id,modified
	Product *Product `json:"product,omitempty" xml:"product,omitempty"`
}

TaobaoProductUpdateAPIResponseModel is 修改一个产品,可以修改主图,不能修改子图片 成功返回结果

type TaobaoProductsGetAPIRequest

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

TaobaoProductsGetAPIRequest 获取产品列表 API请求 taobao.products.get

根据淘宝会员帐号搜索所有产品信息,推荐使用taobao.products.search 注意:支持分页,每页最多返回100条,默认值为40,页码从1开始,默认为第一页

func NewTaobaoProductsGetRequest

func NewTaobaoProductsGetRequest() *TaobaoProductsGetAPIRequest

NewTaobaoProductsGetRequest 初始化TaobaoProductsGetAPIRequest对象

func (TaobaoProductsGetAPIRequest) GetApiMethodName

func (r TaobaoProductsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoProductsGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoProductsGetAPIRequest) GetFields

func (r TaobaoProductsGetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaoProductsGetAPIRequest) GetNick

func (r TaobaoProductsGetAPIRequest) GetNick() string

GetNick Nick Getter

func (TaobaoProductsGetAPIRequest) GetPageNo

func (r TaobaoProductsGetAPIRequest) GetPageNo() int64

GetPageNo PageNo Getter

func (TaobaoProductsGetAPIRequest) GetPageSize

func (r TaobaoProductsGetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaoProductsGetAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoProductsGetAPIRequest) GetRawParams() model.Params

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

func (*TaobaoProductsGetAPIRequest) SetFields

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

SetFields is Fields Setter 需返回的字段列表.可选值:Product数据结构中的所有字段;多个字段之间用","分隔

func (*TaobaoProductsGetAPIRequest) SetNick

func (r *TaobaoProductsGetAPIRequest) SetNick(_nick string) error

SetNick is Nick Setter 用户昵称

func (*TaobaoProductsGetAPIRequest) SetPageNo

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

SetPageNo is PageNo Setter 页码.传入值为1代表第一页,传入值为2代表第二页,依此类推.默认返回的数据是从第一页开始.

func (*TaobaoProductsGetAPIRequest) SetPageSize

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

SetPageSize is PageSize Setter 每页条数.每页返回最多返回100条,默认值为40

type TaobaoProductsGetAPIResponse

type TaobaoProductsGetAPIResponse struct {
	model.CommonResponse
	TaobaoProductsGetAPIResponseModel
}

TaobaoProductsGetAPIResponse 获取产品列表 API返回值 taobao.products.get

根据淘宝会员帐号搜索所有产品信息,推荐使用taobao.products.search 注意:支持分页,每页最多返回100条,默认值为40,页码从1开始,默认为第一页

type TaobaoProductsGetAPIResponseModel

type TaobaoProductsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"products_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回具体信息为入参fields请求的字段信息
	Products []Product `json:"products,omitempty" xml:"products>product,omitempty"`
}

TaobaoProductsGetAPIResponseModel is 获取产品列表 成功返回结果

type TaobaoProductsSearchAPIRequest

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

TaobaoProductsSearchAPIRequest 搜索产品信息 API请求 taobao.products.search

只有天猫商家发布商品时才需要用到,并非商品搜索api,当前暂不提供商品搜索api。<br/>二种方式搜索所有产品信息(二种至少传一种): <br/> 传入关键字q搜索<br/> 传入cid和props搜索<br/> 返回值支持:product_id,name,pic_path,cid,props,price,tsc<br/> 当用户指定了cid并且cid为垂直市场(3C电器城、鞋城)的类目id时,默认只返回小二确认<br/>的产品。如果用户没有指定cid,或cid为普通的类目,默认返回商家确认或小二确认的产<br/>品。如果用户自定了status字段,以指定的status类型为准。 <br/>新增一:

传入suite_items_str 按规格搜索套装产品。
返回字段增加suite_items_str,is_suite_effecitve支持。

func NewTaobaoProductsSearchRequest

func NewTaobaoProductsSearchRequest() *TaobaoProductsSearchAPIRequest

NewTaobaoProductsSearchRequest 初始化TaobaoProductsSearchAPIRequest对象

func (TaobaoProductsSearchAPIRequest) GetApiMethodName

func (r TaobaoProductsSearchAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoProductsSearchAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoProductsSearchAPIRequest) GetBarcodeStr

func (r TaobaoProductsSearchAPIRequest) GetBarcodeStr() string

GetBarcodeStr BarcodeStr Getter

func (TaobaoProductsSearchAPIRequest) GetCid

GetCid Cid Getter

func (TaobaoProductsSearchAPIRequest) GetCustomerProps

func (r TaobaoProductsSearchAPIRequest) GetCustomerProps() string

GetCustomerProps CustomerProps Getter

func (TaobaoProductsSearchAPIRequest) GetFields

func (r TaobaoProductsSearchAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaoProductsSearchAPIRequest) GetMarketId

func (r TaobaoProductsSearchAPIRequest) GetMarketId() string

GetMarketId MarketId Getter

func (TaobaoProductsSearchAPIRequest) GetPageNo

func (r TaobaoProductsSearchAPIRequest) GetPageNo() int64

GetPageNo PageNo Getter

func (TaobaoProductsSearchAPIRequest) GetPageSize

func (r TaobaoProductsSearchAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaoProductsSearchAPIRequest) GetProps

GetProps Props Getter

func (TaobaoProductsSearchAPIRequest) GetQ

GetQ Q Getter

func (TaobaoProductsSearchAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoProductsSearchAPIRequest) GetRawParams() model.Params

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

func (TaobaoProductsSearchAPIRequest) GetStatus

func (r TaobaoProductsSearchAPIRequest) GetStatus() string

GetStatus Status Getter

func (TaobaoProductsSearchAPIRequest) GetSuiteItemsStr

func (r TaobaoProductsSearchAPIRequest) GetSuiteItemsStr() string

GetSuiteItemsStr SuiteItemsStr Getter

func (TaobaoProductsSearchAPIRequest) GetVerticalMarket

func (r TaobaoProductsSearchAPIRequest) GetVerticalMarket() int64

GetVerticalMarket VerticalMarket Getter

func (*TaobaoProductsSearchAPIRequest) SetBarcodeStr

func (r *TaobaoProductsSearchAPIRequest) SetBarcodeStr(_barcodeStr string) error

SetBarcodeStr is BarcodeStr Setter 按条码搜索产品信息,多个逗号隔开,不支持条码为全零的方式

func (*TaobaoProductsSearchAPIRequest) SetCid

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

SetCid is Cid Setter 商品类目ID.调用taobao.itemcats.get获取.

func (*TaobaoProductsSearchAPIRequest) SetCustomerProps

func (r *TaobaoProductsSearchAPIRequest) SetCustomerProps(_customerProps string) error

SetCustomerProps is CustomerProps Setter 用户自定义关键属性,结构:pid1:value1;pid2:value2,如果有型号,系列等子属性用: 隔开 例如:“20000:优衣库:型号:001;632501:1234”,表示“品牌:优衣库:型号:001;货号:1234”

func (*TaobaoProductsSearchAPIRequest) SetFields

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

SetFields is Fields Setter 需返回的字段列表.可选值:Product数据结构中的以下字段:product_id,name,pic_url,cid,props,price,tsc;多个字段之间用","分隔.新增字段status(product的当前状态)

func (*TaobaoProductsSearchAPIRequest) SetMarketId

func (r *TaobaoProductsSearchAPIRequest) SetMarketId(_marketId string) error

SetMarketId is MarketId Setter 市场ID,1为取C2C市场的产品信息, 2为取B2C市场的产品信息。 不填写此值则默认取C2C的产品信息。

func (*TaobaoProductsSearchAPIRequest) SetPageNo

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

SetPageNo is PageNo Setter 页码.传入值为1代表第一页,传入值为2代表第二页,依此类推.默认返回的数据是从第一页开始.

func (*TaobaoProductsSearchAPIRequest) SetPageSize

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

SetPageSize is PageSize Setter 每页条数.每页返回最多返回100条,默认值为40.

func (*TaobaoProductsSearchAPIRequest) SetProps

func (r *TaobaoProductsSearchAPIRequest) SetProps(_props string) error

SetProps is Props Setter 属性,属性值的组合.格式:pid:vid;pid:vid;调用taobao.itemprops.get获取类目属性pid <br/>,再用taobao.itempropvalues.get取得vid.

func (*TaobaoProductsSearchAPIRequest) SetQ

SetQ is Q Setter 搜索的关键词是用来搜索产品的title. 注:q,cid和props至少传入一个

func (*TaobaoProductsSearchAPIRequest) SetStatus

func (r *TaobaoProductsSearchAPIRequest) SetStatus(_status string) error

SetStatus is Status Setter 想要获取的产品的状态列表,支持多个状态并列获取,多个状态之间用","分隔,最多同时指定5种状态。例如,只获取小二确认的spu传入"3",只要商家确认的传入"0",既要小二确认又要商家确认的传入"0,3"。目前只支持者两种类型的状态搜索,输入其他状态无效。

func (*TaobaoProductsSearchAPIRequest) SetSuiteItemsStr

func (r *TaobaoProductsSearchAPIRequest) SetSuiteItemsStr(_suiteItemsStr string) error

SetSuiteItemsStr is SuiteItemsStr Setter 按关联产品规格specs搜索套装产品

func (*TaobaoProductsSearchAPIRequest) SetVerticalMarket

func (r *TaobaoProductsSearchAPIRequest) SetVerticalMarket(_verticalMarket int64) error

SetVerticalMarket is VerticalMarket Setter 传入值为:3表示3C表示3C垂直市场产品,4表示鞋城垂直市场产品,8表示网游垂直市场产品。一次只能指定一种垂直市场类型

type TaobaoProductsSearchAPIResponse

type TaobaoProductsSearchAPIResponse struct {
	model.CommonResponse
	TaobaoProductsSearchAPIResponseModel
}

TaobaoProductsSearchAPIResponse 搜索产品信息 API返回值 taobao.products.search

只有天猫商家发布商品时才需要用到,并非商品搜索api,当前暂不提供商品搜索api。<br/>二种方式搜索所有产品信息(二种至少传一种): <br/> 传入关键字q搜索<br/> 传入cid和props搜索<br/> 返回值支持:product_id,name,pic_path,cid,props,price,tsc<br/> 当用户指定了cid并且cid为垂直市场(3C电器城、鞋城)的类目id时,默认只返回小二确认<br/>的产品。如果用户没有指定cid,或cid为普通的类目,默认返回商家确认或小二确认的产<br/>品。如果用户自定了status字段,以指定的status类型为准。 <br/>新增一:

传入suite_items_str 按规格搜索套装产品。
返回字段增加suite_items_str,is_suite_effecitve支持。

type TaobaoProductsSearchAPIResponseModel

type TaobaoProductsSearchAPIResponseModel struct {
	XMLName xml.Name `xml:"products_search_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回具体信息为入参fields请求的字段信息
	Products []Product `json:"products,omitempty" xml:"products>product,omitempty"`
	// 结果总数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaoProductsSearchAPIResponseModel is 搜索产品信息 成功返回结果

type TaobaoUmpPromotionGetAPIRequest

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

TaobaoUmpPromotionGetAPIRequest 商品优惠详情查询 API请求 taobao.ump.promotion.get

商品优惠详情查询,可查询商品设置的详细优惠。包括限时折扣,满就送等官方优惠以及第三方优惠。

func NewTaobaoUmpPromotionGetRequest

func NewTaobaoUmpPromotionGetRequest() *TaobaoUmpPromotionGetAPIRequest

NewTaobaoUmpPromotionGetRequest 初始化TaobaoUmpPromotionGetAPIRequest对象

func (TaobaoUmpPromotionGetAPIRequest) GetApiMethodName

func (r TaobaoUmpPromotionGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpPromotionGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpPromotionGetAPIRequest) GetItemId

func (r TaobaoUmpPromotionGetAPIRequest) GetItemId() int64

GetItemId ItemId Getter

func (TaobaoUmpPromotionGetAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoUmpPromotionGetAPIRequest) GetRawParams() model.Params

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

func (*TaobaoUmpPromotionGetAPIRequest) SetItemId

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

SetItemId is ItemId Setter 商品id

type TaobaoUmpPromotionGetAPIResponse

type TaobaoUmpPromotionGetAPIResponse struct {
	model.CommonResponse
	TaobaoUmpPromotionGetAPIResponseModel
}

TaobaoUmpPromotionGetAPIResponse 商品优惠详情查询 API返回值 taobao.ump.promotion.get

商品优惠详情查询,可查询商品设置的详细优惠。包括限时折扣,满就送等官方优惠以及第三方优惠。

type TaobaoUmpPromotionGetAPIResponseModel

type TaobaoUmpPromotionGetAPIResponseModel struct {
	XMLName xml.Name `xml:"ump_promotion_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 优惠详细信息
	Promotions *PromotionDisplayTop `json:"promotions,omitempty" xml:"promotions,omitempty"`
}

TaobaoUmpPromotionGetAPIResponseModel is 商品优惠详情查询 成功返回结果

type TaobaoUmpPromotionSkuGetAPIRequest added in v1.2.5

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

TaobaoUmpPromotionSkuGetAPIRequest 商品优惠详情查询 API请求 taobao.ump.promotion.sku.get

商品优惠详情查询,可查询商品设置的详细优惠。包括限时折扣,满就送等官方优惠以及第三方优惠。

func NewTaobaoUmpPromotionSkuGetRequest added in v1.2.5

func NewTaobaoUmpPromotionSkuGetRequest() *TaobaoUmpPromotionSkuGetAPIRequest

NewTaobaoUmpPromotionSkuGetRequest 初始化TaobaoUmpPromotionSkuGetAPIRequest对象

func (TaobaoUmpPromotionSkuGetAPIRequest) GetApiMethodName added in v1.2.5

func (r TaobaoUmpPromotionSkuGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpPromotionSkuGetAPIRequest) GetApiParams added in v1.2.5

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpPromotionSkuGetAPIRequest) GetBuyerId added in v1.2.5

GetBuyerId BuyerId Getter

func (TaobaoUmpPromotionSkuGetAPIRequest) GetChannelKey added in v1.2.5

func (r TaobaoUmpPromotionSkuGetAPIRequest) GetChannelKey() string

GetChannelKey ChannelKey Getter

func (TaobaoUmpPromotionSkuGetAPIRequest) GetItemId added in v1.2.5

GetItemId ItemId Getter

func (TaobaoUmpPromotionSkuGetAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoUmpPromotionSkuGetAPIRequest) GetSkuList added in v1.2.5

GetSkuList SkuList Getter

func (*TaobaoUmpPromotionSkuGetAPIRequest) SetBuyerId added in v1.2.5

func (r *TaobaoUmpPromotionSkuGetAPIRequest) SetBuyerId(_buyerId string) error

SetBuyerId is BuyerId Setter 买家id

func (*TaobaoUmpPromotionSkuGetAPIRequest) SetChannelKey added in v1.2.5

func (r *TaobaoUmpPromotionSkuGetAPIRequest) SetChannelKey(_channelKey string) error

SetChannelKey is ChannelKey Setter 渠道

func (*TaobaoUmpPromotionSkuGetAPIRequest) SetItemId added in v1.2.5

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

SetItemId is ItemId Setter 商品id

func (*TaobaoUmpPromotionSkuGetAPIRequest) SetSkuList added in v1.2.5

func (r *TaobaoUmpPromotionSkuGetAPIRequest) SetSkuList(_skuList string) error

SetSkuList is SkuList Setter skuId

type TaobaoUmpPromotionSkuGetAPIResponse added in v1.2.5

type TaobaoUmpPromotionSkuGetAPIResponse struct {
	model.CommonResponse
	TaobaoUmpPromotionSkuGetAPIResponseModel
}

TaobaoUmpPromotionSkuGetAPIResponse 商品优惠详情查询 API返回值 taobao.ump.promotion.sku.get

商品优惠详情查询,可查询商品设置的详细优惠。包括限时折扣,满就送等官方优惠以及第三方优惠。

type TaobaoUmpPromotionSkuGetAPIResponseModel added in v1.2.5

type TaobaoUmpPromotionSkuGetAPIResponseModel struct {
	XMLName xml.Name `xml:"ump_promotion_sku_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回对象
	Models string `json:"models,omitempty" xml:"models,omitempty"`
	// 默认key值
	DefaultModelKey string `json:"default_model_key,omitempty" xml:"default_model_key,omitempty"`
	// 调用失败信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 是否调用成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoUmpPromotionSkuGetAPIResponseModel is 商品优惠详情查询 成功返回结果

type Ticket

type Ticket struct {
	// 审核原因
	Reason string `json:"reason,omitempty" xml:"reason,omitempty"`
	// 关于审核原因,更详细的说明
	Memo string `json:"memo,omitempty" xml:"memo,omitempty"`
	// 产品规格申请时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 产品规格审核单最后修改时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 产品规格ID
	SpecId int64 `json:"spec_id,omitempty" xml:"spec_id,omitempty"`
	// 创建人ID
	CreateUserId int64 `json:"create_user_id,omitempty" xml:"create_user_id,omitempty"`
	// 如果产品规格,需要商家审核,为商家审核用户ID
	AuditSellerId int64 `json:"audit_seller_id,omitempty" xml:"audit_seller_id,omitempty"`
	// 1, "商家确认"<br/>2, "商家拒绝"<br/>3, "小二确认"<br/>4, "小二拒绝"<br/>5, "待商家处理"<br/>6, "商家审核超时"<br/>7, "待小二审核"<br/>9, "品牌商确认"<br/>10, "免审通过"<br/>14, "免审拒绝"
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
}

Ticket 结构体

type TmallItemAddSchemaGetAPIRequest

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

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

通过类目以及productId获取商品发布规则;

func NewTmallItemAddSchemaGetRequest

func NewTmallItemAddSchemaGetRequest() *TmallItemAddSchemaGetAPIRequest

NewTmallItemAddSchemaGetRequest 初始化TmallItemAddSchemaGetAPIRequest对象

func (TmallItemAddSchemaGetAPIRequest) GetApiMethodName

func (r TmallItemAddSchemaGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemAddSchemaGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemAddSchemaGetAPIRequest) GetCategoryId

func (r TmallItemAddSchemaGetAPIRequest) GetCategoryId() int64

GetCategoryId CategoryId Getter

func (TmallItemAddSchemaGetAPIRequest) GetIsvInit

func (r TmallItemAddSchemaGetAPIRequest) GetIsvInit() bool

GetIsvInit IsvInit Getter

func (TmallItemAddSchemaGetAPIRequest) GetProductId

func (r TmallItemAddSchemaGetAPIRequest) GetProductId() int64

GetProductId ProductId Getter

func (TmallItemAddSchemaGetAPIRequest) GetRawParams added in v1.2.8

func (r TmallItemAddSchemaGetAPIRequest) GetRawParams() model.Params

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

func (TmallItemAddSchemaGetAPIRequest) GetType

GetType Type Getter

func (*TmallItemAddSchemaGetAPIRequest) SetCategoryId

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

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

func (*TmallItemAddSchemaGetAPIRequest) SetIsvInit

func (r *TmallItemAddSchemaGetAPIRequest) SetIsvInit(_isvInit bool) error

SetIsvInit is IsvInit Setter 正常接口调用时,请忽略这个参数或者填FALSE。这个参数提供给ISV对接Schema时,如果想先获取了解所有字段和规则,可以将此字段设置为true,product_id也就不需要提供了,设置为0即可

func (*TmallItemAddSchemaGetAPIRequest) SetProductId

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

SetProductId is ProductId Setter 商品发布的目标product_id

func (*TmallItemAddSchemaGetAPIRequest) SetType

func (r *TmallItemAddSchemaGetAPIRequest) SetType(_type string) error

SetType is Type Setter 发布商品类型,一口价填“b”,拍卖填"a"

type TmallItemAddSchemaGetAPIResponse

type TmallItemAddSchemaGetAPIResponse struct {
	model.CommonResponse
	TmallItemAddSchemaGetAPIResponseModel
}

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

通过类目以及productId获取商品发布规则;

type TmallItemAddSchemaGetAPIResponseModel

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

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

type TmallItemDapeiTemplateQueryAPIRequest

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

TmallItemDapeiTemplateQueryAPIRequest 搭配查询接口 API请求 tmall.item.dapei.template.query

根据条件获取搭配内容

func NewTmallItemDapeiTemplateQueryRequest

func NewTmallItemDapeiTemplateQueryRequest() *TmallItemDapeiTemplateQueryAPIRequest

NewTmallItemDapeiTemplateQueryRequest 初始化TmallItemDapeiTemplateQueryAPIRequest对象

func (TmallItemDapeiTemplateQueryAPIRequest) GetApiMethodName

func (r TmallItemDapeiTemplateQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemDapeiTemplateQueryAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemDapeiTemplateQueryAPIRequest) GetPageIndex

GetPageIndex PageIndex Getter

func (TmallItemDapeiTemplateQueryAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (TmallItemDapeiTemplateQueryAPIRequest) GetRawParams added in v1.2.8

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

func (TmallItemDapeiTemplateQueryAPIRequest) GetTitle

GetTitle Title Getter

func (*TmallItemDapeiTemplateQueryAPIRequest) SetPageIndex

func (r *TmallItemDapeiTemplateQueryAPIRequest) SetPageIndex(_pageIndex int64) error

SetPageIndex is PageIndex Setter 页码

func (*TmallItemDapeiTemplateQueryAPIRequest) SetPageSize

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

SetPageSize is PageSize Setter 分页大小

func (*TmallItemDapeiTemplateQueryAPIRequest) SetTitle

SetTitle is Title Setter 搭配标题

type TmallItemDapeiTemplateQueryAPIResponse

type TmallItemDapeiTemplateQueryAPIResponse struct {
	model.CommonResponse
	TmallItemDapeiTemplateQueryAPIResponseModel
}

TmallItemDapeiTemplateQueryAPIResponse 搭配查询接口 API返回值 tmall.item.dapei.template.query

根据条件获取搭配内容

type TmallItemDapeiTemplateQueryAPIResponseModel

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

TmallItemDapeiTemplateQueryAPIResponseModel is 搭配查询接口 成功返回结果

type TmallItemDapeiTemplateQueryResultSet

type TmallItemDapeiTemplateQueryResultSet struct {
	// firstResult
	Results []DapeiDo `json:"results,omitempty" xml:"results>dapei_do,omitempty"`
	// errorMsg
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// errorCode
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// totalResults
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
	// totalPage
	TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"`
	// pageIndex
	PageIndex int64 `json:"page_index,omitempty" xml:"page_index,omitempty"`
	// error
	Error bool `json:"error,omitempty" xml:"error,omitempty"`
}

TmallItemDapeiTemplateQueryResultSet 结构体

type TmallItemSeriesItemseriesInsertorupdateAPIRequest added in v1.2.9

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

TmallItemSeriesItemseriesInsertorupdateAPIRequest 商品系列增删改接口 API请求 tmall.item.series.itemseries.insertorupdate

商品系列增删改接口

func NewTmallItemSeriesItemseriesInsertorupdateRequest added in v1.2.9

func NewTmallItemSeriesItemseriesInsertorupdateRequest() *TmallItemSeriesItemseriesInsertorupdateAPIRequest

NewTmallItemSeriesItemseriesInsertorupdateRequest 初始化TmallItemSeriesItemseriesInsertorupdateAPIRequest对象

func (TmallItemSeriesItemseriesInsertorupdateAPIRequest) GetApiMethodName added in v1.2.9

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemSeriesItemseriesInsertorupdateAPIRequest) GetApiParams added in v1.2.9

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemSeriesItemseriesInsertorupdateAPIRequest) GetItemSeriesRequest added in v1.2.9

GetItemSeriesRequest ItemSeriesRequest Getter

func (TmallItemSeriesItemseriesInsertorupdateAPIRequest) GetRawParams added in v1.2.9

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

func (*TmallItemSeriesItemseriesInsertorupdateAPIRequest) SetItemSeriesRequest added in v1.2.9

func (r *TmallItemSeriesItemseriesInsertorupdateAPIRequest) SetItemSeriesRequest(_itemSeriesRequest *ItemSeriesRequest) error

SetItemSeriesRequest is ItemSeriesRequest Setter 商品系列创建或修改请求入参

type TmallItemSeriesItemseriesInsertorupdateAPIResponse added in v1.2.9

type TmallItemSeriesItemseriesInsertorupdateAPIResponse struct {
	model.CommonResponse
	TmallItemSeriesItemseriesInsertorupdateAPIResponseModel
}

TmallItemSeriesItemseriesInsertorupdateAPIResponse 商品系列增删改接口 API返回值 tmall.item.series.itemseries.insertorupdate

商品系列增删改接口

type TmallItemSeriesItemseriesInsertorupdateAPIResponseModel added in v1.2.9

type TmallItemSeriesItemseriesInsertorupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_series_itemseries_insertorupdate_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值
	Result *ResultDo `json:"result,omitempty" xml:"result,omitempty"`
}

TmallItemSeriesItemseriesInsertorupdateAPIResponseModel is 商品系列增删改接口 成功返回结果

type TmallItemSeriesItemseriesInsertseriesitemAPIRequest added in v1.2.9

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

TmallItemSeriesItemseriesInsertseriesitemAPIRequest 向系列中添加系列商品 API请求 tmall.item.series.itemseries.insertseriesitem

向系列中添加系列商品

func NewTmallItemSeriesItemseriesInsertseriesitemRequest added in v1.2.9

func NewTmallItemSeriesItemseriesInsertseriesitemRequest() *TmallItemSeriesItemseriesInsertseriesitemAPIRequest

NewTmallItemSeriesItemseriesInsertseriesitemRequest 初始化TmallItemSeriesItemseriesInsertseriesitemAPIRequest对象

func (TmallItemSeriesItemseriesInsertseriesitemAPIRequest) GetApiMethodName added in v1.2.9

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemSeriesItemseriesInsertseriesitemAPIRequest) GetApiParams added in v1.2.9

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemSeriesItemseriesInsertseriesitemAPIRequest) GetRawParams added in v1.2.9

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

func (TmallItemSeriesItemseriesInsertseriesitemAPIRequest) GetSeriesItemRequest added in v1.2.9

GetSeriesItemRequest SeriesItemRequest Getter

func (*TmallItemSeriesItemseriesInsertseriesitemAPIRequest) SetSeriesItemRequest added in v1.2.9

func (r *TmallItemSeriesItemseriesInsertseriesitemAPIRequest) SetSeriesItemRequest(_seriesItemRequest *SeriesItemRequest) error

SetSeriesItemRequest is SeriesItemRequest Setter 系列商品编辑入参

type TmallItemSeriesItemseriesInsertseriesitemAPIResponse added in v1.2.9

type TmallItemSeriesItemseriesInsertseriesitemAPIResponse struct {
	model.CommonResponse
	TmallItemSeriesItemseriesInsertseriesitemAPIResponseModel
}

TmallItemSeriesItemseriesInsertseriesitemAPIResponse 向系列中添加系列商品 API返回值 tmall.item.series.itemseries.insertseriesitem

向系列中添加系列商品

type TmallItemSeriesItemseriesInsertseriesitemAPIResponseModel added in v1.2.9

type TmallItemSeriesItemseriesInsertseriesitemAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_series_itemseries_insertseriesitem_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值
	Result *ResultDo `json:"result,omitempty" xml:"result,omitempty"`
}

TmallItemSeriesItemseriesInsertseriesitemAPIResponseModel is 向系列中添加系列商品 成功返回结果

type TmallItemSeriesItemseriesRemoveitemfromseriesAPIRequest added in v1.2.9

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

TmallItemSeriesItemseriesRemoveitemfromseriesAPIRequest 从商品系列中移除商品 API请求 tmall.item.series.itemseries.removeitemfromseries

从商品系列中移除商品

func NewTmallItemSeriesItemseriesRemoveitemfromseriesRequest added in v1.2.9

func NewTmallItemSeriesItemseriesRemoveitemfromseriesRequest() *TmallItemSeriesItemseriesRemoveitemfromseriesAPIRequest

NewTmallItemSeriesItemseriesRemoveitemfromseriesRequest 初始化TmallItemSeriesItemseriesRemoveitemfromseriesAPIRequest对象

func (TmallItemSeriesItemseriesRemoveitemfromseriesAPIRequest) GetApiMethodName added in v1.2.9

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemSeriesItemseriesRemoveitemfromseriesAPIRequest) GetApiParams added in v1.2.9

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemSeriesItemseriesRemoveitemfromseriesAPIRequest) GetItemId added in v1.2.9

GetItemId ItemId Getter

func (TmallItemSeriesItemseriesRemoveitemfromseriesAPIRequest) GetMarket added in v1.2.9

GetMarket Market Getter

func (TmallItemSeriesItemseriesRemoveitemfromseriesAPIRequest) GetRawParams added in v1.2.9

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

func (TmallItemSeriesItemseriesRemoveitemfromseriesAPIRequest) GetSeriesId added in v1.2.9

GetSeriesId SeriesId Getter

func (*TmallItemSeriesItemseriesRemoveitemfromseriesAPIRequest) SetItemId added in v1.2.9

SetItemId is ItemId Setter 商品id

func (*TmallItemSeriesItemseriesRemoveitemfromseriesAPIRequest) SetMarket added in v1.2.9

SetMarket is Market Setter 市场

func (*TmallItemSeriesItemseriesRemoveitemfromseriesAPIRequest) SetSeriesId added in v1.2.9

SetSeriesId is SeriesId Setter 商品系列id

type TmallItemSeriesItemseriesRemoveitemfromseriesAPIResponse added in v1.2.9

type TmallItemSeriesItemseriesRemoveitemfromseriesAPIResponse struct {
	model.CommonResponse
	TmallItemSeriesItemseriesRemoveitemfromseriesAPIResponseModel
}

TmallItemSeriesItemseriesRemoveitemfromseriesAPIResponse 从商品系列中移除商品 API返回值 tmall.item.series.itemseries.removeitemfromseries

从商品系列中移除商品

type TmallItemSeriesItemseriesRemoveitemfromseriesAPIResponseModel added in v1.2.9

type TmallItemSeriesItemseriesRemoveitemfromseriesAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_series_itemseries_removeitemfromseries_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求返回值
	Result *ResultDo `json:"result,omitempty" xml:"result,omitempty"`
}

TmallItemSeriesItemseriesRemoveitemfromseriesAPIResponseModel is 从商品系列中移除商品 成功返回结果

type TmallItemSetscombinesEditAPIRequest added in v1.2.5

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

TmallItemSetscombinesEditAPIRequest 普通商品转套装商品&套装商品编辑接口 API请求 tmall.item.setscombines.edit

普通商品转套装商品&套装商品编辑接口

func NewTmallItemSetscombinesEditRequest added in v1.2.5

func NewTmallItemSetscombinesEditRequest() *TmallItemSetscombinesEditAPIRequest

NewTmallItemSetscombinesEditRequest 初始化TmallItemSetscombinesEditAPIRequest对象

func (TmallItemSetscombinesEditAPIRequest) GetApiMethodName added in v1.2.5

func (r TmallItemSetscombinesEditAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemSetscombinesEditAPIRequest) GetApiParams added in v1.2.5

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemSetscombinesEditAPIRequest) GetItemId added in v1.2.5

GetItemId ItemId Getter

func (TmallItemSetscombinesEditAPIRequest) GetRawParams added in v1.2.8

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

func (TmallItemSetscombinesEditAPIRequest) GetUpdateSkuScProduct added in v1.2.5

func (r TmallItemSetscombinesEditAPIRequest) GetUpdateSkuScProduct() *UpdateSkuScProduct

GetUpdateSkuScProduct UpdateSkuScProduct Getter

func (*TmallItemSetscombinesEditAPIRequest) SetItemId added in v1.2.5

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

SetItemId is ItemId Setter 商品ID

func (*TmallItemSetscombinesEditAPIRequest) SetUpdateSkuScProduct added in v1.2.5

func (r *TmallItemSetscombinesEditAPIRequest) SetUpdateSkuScProduct(_updateSkuScProduct *UpdateSkuScProduct) error

SetUpdateSkuScProduct is UpdateSkuScProduct Setter 商品SKU更新套装货品时候用的数据

type TmallItemSetscombinesEditAPIResponse added in v1.2.5

type TmallItemSetscombinesEditAPIResponse struct {
	model.CommonResponse
	TmallItemSetscombinesEditAPIResponseModel
}

TmallItemSetscombinesEditAPIResponse 普通商品转套装商品&套装商品编辑接口 API返回值 tmall.item.setscombines.edit

普通商品转套装商品&套装商品编辑接口

type TmallItemSetscombinesEditAPIResponseModel added in v1.2.5

type TmallItemSetscombinesEditAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_setscombines_edit_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 套装货品更新结果
	SetscombineUpdateResult string `json:"setscombine_update_result,omitempty" xml:"setscombine_update_result,omitempty"`
}

TmallItemSetscombinesEditAPIResponseModel is 普通商品转套装商品&套装商品编辑接口 成功返回结果

type TmallItemSizemappingTemplateCreateAPIRequest

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

TmallItemSizemappingTemplateCreateAPIRequest 新增天猫商品尺码表模板 API请求 tmall.item.sizemapping.template.create

新增天猫商品尺码表模板<br/><br/>男鞋、女鞋、运动鞋、户外鞋类目,尺码表维度为:<br/>脚长(cm) 必选<br/><br/>内衣-文胸类目,尺码表维度为:<br/>上胸围(cm) 必选<br/>下胸围(cm) 必选<br/>上下胸围差(cm) 必选<br/>身高(cm)<br/>体重(公斤)<br/><br/>内衣-内裤类目,尺码表维度为:<br/>腰围(cm) 必选<br/>臀围(cm) 必选<br/>身高(cm)<br/>体重(公斤)<br/>裤长(cm)<br/>裆部(cm)<br/>脚口(cm)<br/>腿围(cm)<br/><br/>内衣-睡衣上衣/保暖上衣/睡袍类目,尺码表维度为:<br/>身高(cm) 必选<br/>胸围(cm) 必选<br/>体重(公斤)<br/>腰围(cm)<br/>肩宽(cm)<br/>袖长(cm)<br/>衣长(cm)<br/>背宽(cm)<br/>前长(cm)<br/>下摆围(cm)<br/>袖口(cm)<br/>袖肥(cm)<br/>领口(cm)<br/><br/>内衣-睡裤/保暖裤类目,尺码维度为:<br/>身高(cm) 必选<br/>腰围(cm) 必选<br/>体重(公斤)<br/>臀围(cm)<br/>裆部(cm)<br/>裤长(cm)<br/>脚口(cm)<br/>腿围(cm)<br/>裤侧长(cm)<br/><br/>内衣-睡裙类目,尺码维度为:<br/>身高(cm) 必选<br/>胸围(cm) 必选<br/>体重(公斤)<br/>裙长(cm)<br/>腰围(cm)<br/>袖长(cm)<br/>肩宽(cm)<br/>背宽(cm)<br/>腿围(cm)<br/>臀围(cm)<br/>底摆(cm)<br/><br/>男装、女装、运动服、户外服等上装类目,尺码维度为(至少两项必选):<br/>身高(cm)<br/>体重(公斤)<br/>肩宽(cm)<br/>胸围(cm)<br/>腰围(cm)<br/>袖长(cm)<br/>衣长(cm)<br/>背宽(cm)<br/>前长(cm)<br/>摆围(cm)<br/>下摆围(cm)<br/>袖口(cm)<br/>袖肥(cm)<br/>中腰(cm)<br/>领深(cm)<br/>领高(cm)<br/>领宽(cm)<br/>领围(cm)<br/>圆摆后中长(cm)<br/>平摆衣长(cm)<br/>圆摆衣长(cm)<br/><br/>男装、女装、运动服、户外服等下装类目,尺码维度为(至少两项必选):<br/>身高(cm)<br/>体重(公斤)<br/>腰围(cm)<br/>臀围(cm)<br/>裤长(cm)<br/>裙长(cm)<br/>裙摆长(cm)<br/>腿围(cm)<br/>膝围(cm)<br/>小脚围(cm)<br/>拉伸腰围(cm)<br/>坐围(cm)<br/>拉伸坐围(cm)<br/>脚口(cm)<br/>前浪(cm)<br/>后浪(cm)<br/>横档(cm)<br/><br/>如果上述维度满足,可以自定义最多5个维度。<br/><br/>模板格式为:<br/>尺码值:维度名称:数值<br/>如:M:身高(cm):160,L:身高(cm):170

func NewTmallItemSizemappingTemplateCreateRequest

func NewTmallItemSizemappingTemplateCreateRequest() *TmallItemSizemappingTemplateCreateAPIRequest

NewTmallItemSizemappingTemplateCreateRequest 初始化TmallItemSizemappingTemplateCreateAPIRequest对象

func (TmallItemSizemappingTemplateCreateAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemSizemappingTemplateCreateAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemSizemappingTemplateCreateAPIRequest) GetRawParams added in v1.2.8

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

func (TmallItemSizemappingTemplateCreateAPIRequest) GetTemplateContent

GetTemplateContent TemplateContent Getter

func (TmallItemSizemappingTemplateCreateAPIRequest) GetTemplateName

GetTemplateName TemplateName Getter

func (*TmallItemSizemappingTemplateCreateAPIRequest) SetTemplateContent

func (r *TmallItemSizemappingTemplateCreateAPIRequest) SetTemplateContent(_templateContent string) error

SetTemplateContent is TemplateContent Setter 尺码表模板内容,格式为"尺码值:维度名称:数值,尺码值:维度名称:数值"。其中,数值的单位,长度单位为厘米(cm),体重单位为公斤(kg)。尺码值,维度数据不能包含数字,特殊字符。数值为0-999.9的数字,且最多一位小数。

func (*TmallItemSizemappingTemplateCreateAPIRequest) SetTemplateName

func (r *TmallItemSizemappingTemplateCreateAPIRequest) SetTemplateName(_templateName string) error

SetTemplateName is TemplateName Setter 尺码表模板名称

type TmallItemSizemappingTemplateCreateAPIResponse

type TmallItemSizemappingTemplateCreateAPIResponse struct {
	model.CommonResponse
	TmallItemSizemappingTemplateCreateAPIResponseModel
}

TmallItemSizemappingTemplateCreateAPIResponse 新增天猫商品尺码表模板 API返回值 tmall.item.sizemapping.template.create

新增天猫商品尺码表模板<br/><br/>男鞋、女鞋、运动鞋、户外鞋类目,尺码表维度为:<br/>脚长(cm) 必选<br/><br/>内衣-文胸类目,尺码表维度为:<br/>上胸围(cm) 必选<br/>下胸围(cm) 必选<br/>上下胸围差(cm) 必选<br/>身高(cm)<br/>体重(公斤)<br/><br/>内衣-内裤类目,尺码表维度为:<br/>腰围(cm) 必选<br/>臀围(cm) 必选<br/>身高(cm)<br/>体重(公斤)<br/>裤长(cm)<br/>裆部(cm)<br/>脚口(cm)<br/>腿围(cm)<br/><br/>内衣-睡衣上衣/保暖上衣/睡袍类目,尺码表维度为:<br/>身高(cm) 必选<br/>胸围(cm) 必选<br/>体重(公斤)<br/>腰围(cm)<br/>肩宽(cm)<br/>袖长(cm)<br/>衣长(cm)<br/>背宽(cm)<br/>前长(cm)<br/>下摆围(cm)<br/>袖口(cm)<br/>袖肥(cm)<br/>领口(cm)<br/><br/>内衣-睡裤/保暖裤类目,尺码维度为:<br/>身高(cm) 必选<br/>腰围(cm) 必选<br/>体重(公斤)<br/>臀围(cm)<br/>裆部(cm)<br/>裤长(cm)<br/>脚口(cm)<br/>腿围(cm)<br/>裤侧长(cm)<br/><br/>内衣-睡裙类目,尺码维度为:<br/>身高(cm) 必选<br/>胸围(cm) 必选<br/>体重(公斤)<br/>裙长(cm)<br/>腰围(cm)<br/>袖长(cm)<br/>肩宽(cm)<br/>背宽(cm)<br/>腿围(cm)<br/>臀围(cm)<br/>底摆(cm)<br/><br/>男装、女装、运动服、户外服等上装类目,尺码维度为(至少两项必选):<br/>身高(cm)<br/>体重(公斤)<br/>肩宽(cm)<br/>胸围(cm)<br/>腰围(cm)<br/>袖长(cm)<br/>衣长(cm)<br/>背宽(cm)<br/>前长(cm)<br/>摆围(cm)<br/>下摆围(cm)<br/>袖口(cm)<br/>袖肥(cm)<br/>中腰(cm)<br/>领深(cm)<br/>领高(cm)<br/>领宽(cm)<br/>领围(cm)<br/>圆摆后中长(cm)<br/>平摆衣长(cm)<br/>圆摆衣长(cm)<br/><br/>男装、女装、运动服、户外服等下装类目,尺码维度为(至少两项必选):<br/>身高(cm)<br/>体重(公斤)<br/>腰围(cm)<br/>臀围(cm)<br/>裤长(cm)<br/>裙长(cm)<br/>裙摆长(cm)<br/>腿围(cm)<br/>膝围(cm)<br/>小脚围(cm)<br/>拉伸腰围(cm)<br/>坐围(cm)<br/>拉伸坐围(cm)<br/>脚口(cm)<br/>前浪(cm)<br/>后浪(cm)<br/>横档(cm)<br/><br/>如果上述维度满足,可以自定义最多5个维度。<br/><br/>模板格式为:<br/>尺码值:维度名称:数值<br/>如:M:身高(cm):160,L:身高(cm):170

type TmallItemSizemappingTemplateCreateAPIResponseModel

type TmallItemSizemappingTemplateCreateAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_sizemapping_template_create_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 尺码表模板
	SizeMappingTemplate *SizeMappingTemplateDo `json:"size_mapping_template,omitempty" xml:"size_mapping_template,omitempty"`
}

TmallItemSizemappingTemplateCreateAPIResponseModel is 新增天猫商品尺码表模板 成功返回结果

type TmallItemSizemappingTemplateDeleteAPIRequest

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

TmallItemSizemappingTemplateDeleteAPIRequest 删除天猫商品尺码表模板 API请求 tmall.item.sizemapping.template.delete

删除天猫商品尺码表模板

func NewTmallItemSizemappingTemplateDeleteRequest

func NewTmallItemSizemappingTemplateDeleteRequest() *TmallItemSizemappingTemplateDeleteAPIRequest

NewTmallItemSizemappingTemplateDeleteRequest 初始化TmallItemSizemappingTemplateDeleteAPIRequest对象

func (TmallItemSizemappingTemplateDeleteAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemSizemappingTemplateDeleteAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemSizemappingTemplateDeleteAPIRequest) GetRawParams added in v1.2.8

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

func (TmallItemSizemappingTemplateDeleteAPIRequest) GetTemplateId

GetTemplateId TemplateId Getter

func (*TmallItemSizemappingTemplateDeleteAPIRequest) SetTemplateId

func (r *TmallItemSizemappingTemplateDeleteAPIRequest) SetTemplateId(_templateId int64) error

SetTemplateId is TemplateId Setter 尺码表模板ID

type TmallItemSizemappingTemplateDeleteAPIResponse

type TmallItemSizemappingTemplateDeleteAPIResponse struct {
	model.CommonResponse
	TmallItemSizemappingTemplateDeleteAPIResponseModel
}

TmallItemSizemappingTemplateDeleteAPIResponse 删除天猫商品尺码表模板 API返回值 tmall.item.sizemapping.template.delete

删除天猫商品尺码表模板

type TmallItemSizemappingTemplateDeleteAPIResponseModel

type TmallItemSizemappingTemplateDeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_sizemapping_template_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 尺码表模板ID
	TemplateId int64 `json:"template_id,omitempty" xml:"template_id,omitempty"`
}

TmallItemSizemappingTemplateDeleteAPIResponseModel is 删除天猫商品尺码表模板 成功返回结果

type TmallItemSizemappingTemplateGetAPIRequest

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

TmallItemSizemappingTemplateGetAPIRequest 获取天猫商品尺码表模板 API请求 tmall.item.sizemapping.template.get

获取天猫商品尺码表模板

func NewTmallItemSizemappingTemplateGetRequest

func NewTmallItemSizemappingTemplateGetRequest() *TmallItemSizemappingTemplateGetAPIRequest

NewTmallItemSizemappingTemplateGetRequest 初始化TmallItemSizemappingTemplateGetAPIRequest对象

func (TmallItemSizemappingTemplateGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemSizemappingTemplateGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemSizemappingTemplateGetAPIRequest) GetRawParams added in v1.2.8

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

func (TmallItemSizemappingTemplateGetAPIRequest) GetTemplateId

GetTemplateId TemplateId Getter

func (*TmallItemSizemappingTemplateGetAPIRequest) SetTemplateId

func (r *TmallItemSizemappingTemplateGetAPIRequest) SetTemplateId(_templateId int64) error

SetTemplateId is TemplateId Setter 尺码表模板ID

type TmallItemSizemappingTemplateGetAPIResponse

type TmallItemSizemappingTemplateGetAPIResponse struct {
	model.CommonResponse
	TmallItemSizemappingTemplateGetAPIResponseModel
}

TmallItemSizemappingTemplateGetAPIResponse 获取天猫商品尺码表模板 API返回值 tmall.item.sizemapping.template.get

获取天猫商品尺码表模板

type TmallItemSizemappingTemplateGetAPIResponseModel

type TmallItemSizemappingTemplateGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_sizemapping_template_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 尺码表模板
	SizeMappingTemplate *TmallItemSizemappingTemplateGetModel `json:"size_mapping_template,omitempty" xml:"size_mapping_template,omitempty"`
}

TmallItemSizemappingTemplateGetAPIResponseModel is 获取天猫商品尺码表模板 成功返回结果

type TmallItemSizemappingTemplateGetModel

type TmallItemSizemappingTemplateGetModel struct {
	// 尺码表模板内容,格式为"尺码值:维度名称:数值,尺码值:维度名称:数值"。其中,数值的单位,长度单位为厘米(cm),体重单位为公斤(kg)。
	TemplateContent string `json:"template_content,omitempty" xml:"template_content,omitempty"`
	// 尺码表模板名称
	TemplateName string `json:"template_name,omitempty" xml:"template_name,omitempty"`
	// 尺码表模板ID
	TemplateId int64 `json:"template_id,omitempty" xml:"template_id,omitempty"`
}

TmallItemSizemappingTemplateGetModel 结构体

type TmallItemSizemappingTemplateUpdateAPIRequest

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

TmallItemSizemappingTemplateUpdateAPIRequest 更新天猫商品尺码表模板 API请求 tmall.item.sizemapping.template.update

更新天猫商品尺码表模板

func NewTmallItemSizemappingTemplateUpdateRequest

func NewTmallItemSizemappingTemplateUpdateRequest() *TmallItemSizemappingTemplateUpdateAPIRequest

NewTmallItemSizemappingTemplateUpdateRequest 初始化TmallItemSizemappingTemplateUpdateAPIRequest对象

func (TmallItemSizemappingTemplateUpdateAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemSizemappingTemplateUpdateAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemSizemappingTemplateUpdateAPIRequest) GetRawParams added in v1.2.8

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

func (TmallItemSizemappingTemplateUpdateAPIRequest) GetTemplateContent

GetTemplateContent TemplateContent Getter

func (TmallItemSizemappingTemplateUpdateAPIRequest) GetTemplateId

GetTemplateId TemplateId Getter

func (TmallItemSizemappingTemplateUpdateAPIRequest) GetTemplateName

GetTemplateName TemplateName Getter

func (*TmallItemSizemappingTemplateUpdateAPIRequest) SetTemplateContent

func (r *TmallItemSizemappingTemplateUpdateAPIRequest) SetTemplateContent(_templateContent string) error

SetTemplateContent is TemplateContent Setter 尺码表模板内容,格式为"尺码值:维度名称:数值,尺码值:维度名称:数值"。其中,数值的单位,长度单位为厘米(cm),体重单位为公斤(kg)。尺码值,维度数据不能包含数字,特殊字符。数值为0-999.9的数字,且最多一位小数。

func (*TmallItemSizemappingTemplateUpdateAPIRequest) SetTemplateId

func (r *TmallItemSizemappingTemplateUpdateAPIRequest) SetTemplateId(_templateId int64) error

SetTemplateId is TemplateId Setter 尺码表模板ID

func (*TmallItemSizemappingTemplateUpdateAPIRequest) SetTemplateName

func (r *TmallItemSizemappingTemplateUpdateAPIRequest) SetTemplateName(_templateName string) error

SetTemplateName is TemplateName Setter 尺码表模板名称

type TmallItemSizemappingTemplateUpdateAPIResponse

type TmallItemSizemappingTemplateUpdateAPIResponse struct {
	model.CommonResponse
	TmallItemSizemappingTemplateUpdateAPIResponseModel
}

TmallItemSizemappingTemplateUpdateAPIResponse 更新天猫商品尺码表模板 API返回值 tmall.item.sizemapping.template.update

更新天猫商品尺码表模板

type TmallItemSizemappingTemplateUpdateAPIResponseModel

type TmallItemSizemappingTemplateUpdateAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_sizemapping_template_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 尺码表模板
	SizeMappingTemplate *SizeMappingTemplateDo `json:"size_mapping_template,omitempty" xml:"size_mapping_template,omitempty"`
}

TmallItemSizemappingTemplateUpdateAPIResponseModel is 更新天猫商品尺码表模板 成功返回结果

type TmallItemSizemappingTemplatesListAPIRequest

type TmallItemSizemappingTemplatesListAPIRequest struct {
	model.Params
}

TmallItemSizemappingTemplatesListAPIRequest 获取天猫商品尺码表模板列表 API请求 tmall.item.sizemapping.templates.list

获取所有尺码表模板列表。

func NewTmallItemSizemappingTemplatesListRequest

func NewTmallItemSizemappingTemplatesListRequest() *TmallItemSizemappingTemplatesListAPIRequest

NewTmallItemSizemappingTemplatesListRequest 初始化TmallItemSizemappingTemplatesListAPIRequest对象

func (TmallItemSizemappingTemplatesListAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemSizemappingTemplatesListAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemSizemappingTemplatesListAPIRequest) GetRawParams added in v1.2.8

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

type TmallItemSizemappingTemplatesListAPIResponse

type TmallItemSizemappingTemplatesListAPIResponse struct {
	model.CommonResponse
	TmallItemSizemappingTemplatesListAPIResponseModel
}

TmallItemSizemappingTemplatesListAPIResponse 获取天猫商品尺码表模板列表 API返回值 tmall.item.sizemapping.templates.list

获取所有尺码表模板列表。

type TmallItemSizemappingTemplatesListAPIResponseModel

type TmallItemSizemappingTemplatesListAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_sizemapping_templates_list_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 尺码表模板列表
	SizeMappingTemplates []SizeMappingTemplate `json:"size_mapping_templates,omitempty" xml:"size_mapping_templates>size_mapping_template,omitempty"`
}

TmallItemSizemappingTemplatesListAPIResponseModel is 获取天猫商品尺码表模板列表 成功返回结果

type TmallItemSkuNewGetAPIRequest added in v1.2.5

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

TmallItemSkuNewGetAPIRequest 查询sku销售属性标新信息 API请求 tmall.item.sku.new.get

查询sku销售属性标新信息

func NewTmallItemSkuNewGetRequest added in v1.2.5

func NewTmallItemSkuNewGetRequest() *TmallItemSkuNewGetAPIRequest

NewTmallItemSkuNewGetRequest 初始化TmallItemSkuNewGetAPIRequest对象

func (TmallItemSkuNewGetAPIRequest) GetApiMethodName added in v1.2.5

func (r TmallItemSkuNewGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemSkuNewGetAPIRequest) GetApiParams added in v1.2.5

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemSkuNewGetAPIRequest) GetItemId added in v1.2.5

func (r TmallItemSkuNewGetAPIRequest) GetItemId() int64

GetItemId ItemId Getter

func (TmallItemSkuNewGetAPIRequest) GetRawParams added in v1.2.8

func (r TmallItemSkuNewGetAPIRequest) GetRawParams() model.Params

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

func (*TmallItemSkuNewGetAPIRequest) SetItemId added in v1.2.5

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

SetItemId is ItemId Setter 商品ID

type TmallItemSkuNewGetAPIResponse added in v1.2.5

type TmallItemSkuNewGetAPIResponse struct {
	model.CommonResponse
	TmallItemSkuNewGetAPIResponseModel
}

TmallItemSkuNewGetAPIResponse 查询sku销售属性标新信息 API返回值 tmall.item.sku.new.get

查询sku销售属性标新信息

type TmallItemSkuNewGetAPIResponseModel added in v1.2.5

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

TmallItemSkuNewGetAPIResponseModel is 查询sku销售属性标新信息 成功返回结果

type TmallItemSkuNewGetApiResult added in v1.2.5

type TmallItemSkuNewGetApiResult struct {
	// 错误码集合
	ErrorCodes []ErrorCode `json:"error_codes,omitempty" xml:"error_codes>error_code,omitempty"`
	// sku标新信息集合
	Model []ItemSalePropNew `json:"model,omitempty" xml:"model>item_sale_prop_new,omitempty"`
	// 执行结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TmallItemSkuNewGetApiResult 结构体

type TmallItemSkuNewUpdateAPIRequest added in v1.2.5

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

TmallItemSkuNewUpdateAPIRequest 更新sku销售属性标新状态 API请求 tmall.item.sku.new.update

更新sku销售属性标新状态

func NewTmallItemSkuNewUpdateRequest added in v1.2.5

func NewTmallItemSkuNewUpdateRequest() *TmallItemSkuNewUpdateAPIRequest

NewTmallItemSkuNewUpdateRequest 初始化TmallItemSkuNewUpdateAPIRequest对象

func (TmallItemSkuNewUpdateAPIRequest) GetApiMethodName added in v1.2.5

func (r TmallItemSkuNewUpdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemSkuNewUpdateAPIRequest) GetApiParams added in v1.2.5

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemSkuNewUpdateAPIRequest) GetItemId added in v1.2.5

func (r TmallItemSkuNewUpdateAPIRequest) GetItemId() int64

GetItemId ItemId Getter

func (TmallItemSkuNewUpdateAPIRequest) GetItemSalePropNew added in v1.2.5

func (r TmallItemSkuNewUpdateAPIRequest) GetItemSalePropNew() *ItemSalePropNew

GetItemSalePropNew ItemSalePropNew Getter

func (TmallItemSkuNewUpdateAPIRequest) GetRawParams added in v1.2.8

func (r TmallItemSkuNewUpdateAPIRequest) GetRawParams() model.Params

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

func (*TmallItemSkuNewUpdateAPIRequest) SetItemId added in v1.2.5

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

SetItemId is ItemId Setter 商品ID

func (*TmallItemSkuNewUpdateAPIRequest) SetItemSalePropNew added in v1.2.5

func (r *TmallItemSkuNewUpdateAPIRequest) SetItemSalePropNew(_itemSalePropNew *ItemSalePropNew) error

SetItemSalePropNew is ItemSalePropNew Setter 商品销售属性集合

type TmallItemSkuNewUpdateAPIResponse added in v1.2.5

type TmallItemSkuNewUpdateAPIResponse struct {
	model.CommonResponse
	TmallItemSkuNewUpdateAPIResponseModel
}

TmallItemSkuNewUpdateAPIResponse 更新sku销售属性标新状态 API返回值 tmall.item.sku.new.update

更新sku销售属性标新状态

type TmallItemSkuNewUpdateAPIResponseModel added in v1.2.5

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

TmallItemSkuNewUpdateAPIResponseModel is 更新sku销售属性标新状态 成功返回结果

type TmallItemSkuNewUpdateApiResult added in v1.2.5

type TmallItemSkuNewUpdateApiResult struct {
	// 错误码信息集合
	ErrorCodes []ErrorCode `json:"error_codes,omitempty" xml:"error_codes>error_code,omitempty"`
	// 执行结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TmallItemSkuNewUpdateApiResult 结构体

type TmallItemSkuSortGetAPIRequest added in v1.2.5

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

TmallItemSkuSortGetAPIRequest sku销售属性顺序获取 API请求 tmall.item.sku.sort.get

sku销售属性顺序获取

func NewTmallItemSkuSortGetRequest added in v1.2.5

func NewTmallItemSkuSortGetRequest() *TmallItemSkuSortGetAPIRequest

NewTmallItemSkuSortGetRequest 初始化TmallItemSkuSortGetAPIRequest对象

func (TmallItemSkuSortGetAPIRequest) GetApiMethodName added in v1.2.5

func (r TmallItemSkuSortGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemSkuSortGetAPIRequest) GetApiParams added in v1.2.5

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemSkuSortGetAPIRequest) GetItemId added in v1.2.5

func (r TmallItemSkuSortGetAPIRequest) GetItemId() int64

GetItemId ItemId Getter

func (TmallItemSkuSortGetAPIRequest) GetRawParams added in v1.2.8

func (r TmallItemSkuSortGetAPIRequest) GetRawParams() model.Params

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

func (*TmallItemSkuSortGetAPIRequest) SetItemId added in v1.2.5

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

SetItemId is ItemId Setter 商品ID

type TmallItemSkuSortGetAPIResponse added in v1.2.5

type TmallItemSkuSortGetAPIResponse struct {
	model.CommonResponse
	TmallItemSkuSortGetAPIResponseModel
}

TmallItemSkuSortGetAPIResponse sku销售属性顺序获取 API返回值 tmall.item.sku.sort.get

sku销售属性顺序获取

type TmallItemSkuSortGetAPIResponseModel added in v1.2.5

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

TmallItemSkuSortGetAPIResponseModel is sku销售属性顺序获取 成功返回结果

type TmallItemSkuSortGetApiResult added in v1.2.5

type TmallItemSkuSortGetApiResult struct {
	// 错误信息集合
	ErrorCodes []ErrorCode `json:"error_codes,omitempty" xml:"error_codes>error_code,omitempty"`
	// 属性排序结果信息
	Model []ItemSalePropSort `json:"model,omitempty" xml:"model>item_sale_prop_sort,omitempty"`
	// 执行结果
	Success string `json:"success,omitempty" xml:"success,omitempty"`
}

TmallItemSkuSortGetApiResult 结构体

type TmallItemSkuSortUpdateAPIRequest added in v1.2.5

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

TmallItemSkuSortUpdateAPIRequest 商品销售属性排序更新 API请求 tmall.item.sku.sort.update

商品销售属性排序更新

func NewTmallItemSkuSortUpdateRequest added in v1.2.5

func NewTmallItemSkuSortUpdateRequest() *TmallItemSkuSortUpdateAPIRequest

NewTmallItemSkuSortUpdateRequest 初始化TmallItemSkuSortUpdateAPIRequest对象

func (TmallItemSkuSortUpdateAPIRequest) GetApiMethodName added in v1.2.5

func (r TmallItemSkuSortUpdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemSkuSortUpdateAPIRequest) GetApiParams added in v1.2.5

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemSkuSortUpdateAPIRequest) GetItemId added in v1.2.5

GetItemId ItemId Getter

func (TmallItemSkuSortUpdateAPIRequest) GetItemSalePropSort added in v1.2.5

func (r TmallItemSkuSortUpdateAPIRequest) GetItemSalePropSort() *ItemSalePropSort

GetItemSalePropSort ItemSalePropSort Getter

func (TmallItemSkuSortUpdateAPIRequest) GetRawParams added in v1.2.8

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

func (*TmallItemSkuSortUpdateAPIRequest) SetItemId added in v1.2.5

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

SetItemId is ItemId Setter 商品ID

func (*TmallItemSkuSortUpdateAPIRequest) SetItemSalePropSort added in v1.2.5

func (r *TmallItemSkuSortUpdateAPIRequest) SetItemSalePropSort(_itemSalePropSort *ItemSalePropSort) error

SetItemSalePropSort is ItemSalePropSort Setter 销售属性排序集合

type TmallItemSkuSortUpdateAPIResponse added in v1.2.5

type TmallItemSkuSortUpdateAPIResponse struct {
	model.CommonResponse
	TmallItemSkuSortUpdateAPIResponseModel
}

TmallItemSkuSortUpdateAPIResponse 商品销售属性排序更新 API返回值 tmall.item.sku.sort.update

商品销售属性排序更新

type TmallItemSkuSortUpdateAPIResponseModel added in v1.2.5

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

TmallItemSkuSortUpdateAPIResponseModel is 商品销售属性排序更新 成功返回结果

type TmallItemSkuSortUpdateApiResult added in v1.2.5

type TmallItemSkuSortUpdateApiResult struct {
	// 错误信息集合
	ErrorCodes []ErrorCode `json:"error_codes,omitempty" xml:"error_codes>error_code,omitempty"`
	// 执行结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TmallItemSkuSortUpdateApiResult 结构体

type TmallItemSkuStatusGetAPIRequest added in v1.2.5

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

TmallItemSkuStatusGetAPIRequest 商品sku上下架查询 API请求 tmall.item.sku.status.get

商品sku上下架状态查询

func NewTmallItemSkuStatusGetRequest added in v1.2.5

func NewTmallItemSkuStatusGetRequest() *TmallItemSkuStatusGetAPIRequest

NewTmallItemSkuStatusGetRequest 初始化TmallItemSkuStatusGetAPIRequest对象

func (TmallItemSkuStatusGetAPIRequest) GetApiMethodName added in v1.2.5

func (r TmallItemSkuStatusGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemSkuStatusGetAPIRequest) GetApiParams added in v1.2.5

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemSkuStatusGetAPIRequest) GetItemId added in v1.2.5

func (r TmallItemSkuStatusGetAPIRequest) GetItemId() int64

GetItemId ItemId Getter

func (TmallItemSkuStatusGetAPIRequest) GetRawParams added in v1.2.8

func (r TmallItemSkuStatusGetAPIRequest) GetRawParams() model.Params

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

func (*TmallItemSkuStatusGetAPIRequest) SetItemId added in v1.2.5

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

SetItemId is ItemId Setter 商品ID

type TmallItemSkuStatusGetAPIResponse added in v1.2.5

type TmallItemSkuStatusGetAPIResponse struct {
	model.CommonResponse
	TmallItemSkuStatusGetAPIResponseModel
}

TmallItemSkuStatusGetAPIResponse 商品sku上下架查询 API返回值 tmall.item.sku.status.get

商品sku上下架状态查询

type TmallItemSkuStatusGetAPIResponseModel added in v1.2.5

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

TmallItemSkuStatusGetAPIResponseModel is 商品sku上下架查询 成功返回结果

type TmallItemSkuStatusGetApiResult added in v1.2.5

type TmallItemSkuStatusGetApiResult struct {
	// 错误信息
	ErrorCodes []ErrorCode `json:"error_codes,omitempty" xml:"error_codes>error_code,omitempty"`
	// 执行结果
	Success string `json:"success,omitempty" xml:"success,omitempty"`
	// 返回内容
	ItemSkuStatus *ItemSkuStatus `json:"item_sku_status,omitempty" xml:"item_sku_status,omitempty"`
}

TmallItemSkuStatusGetApiResult 结构体

type TmallItemSkuStatusUpdateAPIRequest added in v1.2.5

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

TmallItemSkuStatusUpdateAPIRequest 商品sku状态更新 API请求 tmall.item.sku.status.update

商品sku上下架状态更新

func NewTmallItemSkuStatusUpdateRequest added in v1.2.5

func NewTmallItemSkuStatusUpdateRequest() *TmallItemSkuStatusUpdateAPIRequest

NewTmallItemSkuStatusUpdateRequest 初始化TmallItemSkuStatusUpdateAPIRequest对象

func (TmallItemSkuStatusUpdateAPIRequest) GetApiMethodName added in v1.2.5

func (r TmallItemSkuStatusUpdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemSkuStatusUpdateAPIRequest) GetApiParams added in v1.2.5

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemSkuStatusUpdateAPIRequest) GetItemId added in v1.2.5

GetItemId ItemId Getter

func (TmallItemSkuStatusUpdateAPIRequest) GetItemSkuStatus added in v1.2.5

func (r TmallItemSkuStatusUpdateAPIRequest) GetItemSkuStatus() *ItemSkuStatus

GetItemSkuStatus ItemSkuStatus Getter

func (TmallItemSkuStatusUpdateAPIRequest) GetRawParams added in v1.2.8

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

func (*TmallItemSkuStatusUpdateAPIRequest) SetItemId added in v1.2.5

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

SetItemId is ItemId Setter 商品ID

func (*TmallItemSkuStatusUpdateAPIRequest) SetItemSkuStatus added in v1.2.5

func (r *TmallItemSkuStatusUpdateAPIRequest) SetItemSkuStatus(_itemSkuStatus *ItemSkuStatus) error

SetItemSkuStatus is ItemSkuStatus Setter sku状态信息

type TmallItemSkuStatusUpdateAPIResponse added in v1.2.5

type TmallItemSkuStatusUpdateAPIResponse struct {
	model.CommonResponse
	TmallItemSkuStatusUpdateAPIResponseModel
}

TmallItemSkuStatusUpdateAPIResponse 商品sku状态更新 API返回值 tmall.item.sku.status.update

商品sku上下架状态更新

type TmallItemSkuStatusUpdateAPIResponseModel added in v1.2.5

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

TmallItemSkuStatusUpdateAPIResponseModel is 商品sku状态更新 成功返回结果

type TmallItemSkuStatusUpdateApiResult added in v1.2.5

type TmallItemSkuStatusUpdateApiResult struct {
	// 错误码集合,如有
	ErrorCodes []ErrorCode `json:"error_codes,omitempty" xml:"error_codes>error_code,omitempty"`
	// 执行结果信息
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TmallItemSkuStatusUpdateApiResult 结构体

type TmallItemStoreSchemaUpdateAPIRequest

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

TmallItemStoreSchemaUpdateAPIRequest 天猫门店商品编辑 API请求 tmall.item.store.schema.update

天猫门店商品编辑

func NewTmallItemStoreSchemaUpdateRequest

func NewTmallItemStoreSchemaUpdateRequest() *TmallItemStoreSchemaUpdateAPIRequest

NewTmallItemStoreSchemaUpdateRequest 初始化TmallItemStoreSchemaUpdateAPIRequest对象

func (TmallItemStoreSchemaUpdateAPIRequest) GetApiMethodName

func (r TmallItemStoreSchemaUpdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemStoreSchemaUpdateAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemStoreSchemaUpdateAPIRequest) GetMainItemId

func (r TmallItemStoreSchemaUpdateAPIRequest) GetMainItemId() int64

GetMainItemId MainItemId Getter

func (TmallItemStoreSchemaUpdateAPIRequest) GetRawParams added in v1.2.8

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

func (TmallItemStoreSchemaUpdateAPIRequest) GetStoreId

GetStoreId StoreId Getter

func (TmallItemStoreSchemaUpdateAPIRequest) GetXml

GetXml Xml Getter

func (*TmallItemStoreSchemaUpdateAPIRequest) SetMainItemId

func (r *TmallItemStoreSchemaUpdateAPIRequest) SetMainItemId(_mainItemId int64) error

SetMainItemId is MainItemId Setter 主商品ID

func (*TmallItemStoreSchemaUpdateAPIRequest) SetStoreId

func (r *TmallItemStoreSchemaUpdateAPIRequest) SetStoreId(_storeId int64) error

SetStoreId is StoreId Setter 门店ID

func (*TmallItemStoreSchemaUpdateAPIRequest) SetXml

SetXml is Xml Setter 商品的schema xml

type TmallItemStoreSchemaUpdateAPIResponse

type TmallItemStoreSchemaUpdateAPIResponse struct {
	model.CommonResponse
	TmallItemStoreSchemaUpdateAPIResponseModel
}

TmallItemStoreSchemaUpdateAPIResponse 天猫门店商品编辑 API返回值 tmall.item.store.schema.update

天猫门店商品编辑

type TmallItemStoreSchemaUpdateAPIResponseModel

type TmallItemStoreSchemaUpdateAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_store_schema_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 无
	ApiResult *TmallItemStoreSchemaUpdateApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"`
}

TmallItemStoreSchemaUpdateAPIResponseModel is 天猫门店商品编辑 成功返回结果

type TmallItemStoreSchemaUpdateApiResult

type TmallItemStoreSchemaUpdateApiResult struct {
	// 错误信息
	ErMsg string `json:"er_msg,omitempty" xml:"er_msg,omitempty"`
	// 错误码
	ErCode string `json:"er_code,omitempty" xml:"er_code,omitempty"`
	// 错误信息
	MappedErrorMessages string `json:"mapped_error_messages,omitempty" xml:"mapped_error_messages,omitempty"`
	// 商品ID
	Result int64 `json:"result,omitempty" xml:"result,omitempty"`
	// 成功
	Error bool `json:"error,omitempty" xml:"error,omitempty"`
}

TmallItemStoreSchemaUpdateApiResult 结构体

type TmallItemStoreUpdateSchemaGetAPIRequest

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

TmallItemStoreUpdateSchemaGetAPIRequest 天猫门店商品修改规则获取 API请求 tmall.item.store.update.schema.get

天猫门店商品修改规则获取

func NewTmallItemStoreUpdateSchemaGetRequest

func NewTmallItemStoreUpdateSchemaGetRequest() *TmallItemStoreUpdateSchemaGetAPIRequest

NewTmallItemStoreUpdateSchemaGetRequest 初始化TmallItemStoreUpdateSchemaGetAPIRequest对象

func (TmallItemStoreUpdateSchemaGetAPIRequest) GetApiMethodName

func (r TmallItemStoreUpdateSchemaGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemStoreUpdateSchemaGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemStoreUpdateSchemaGetAPIRequest) GetMainItemId

GetMainItemId MainItemId Getter

func (TmallItemStoreUpdateSchemaGetAPIRequest) GetRawParams added in v1.2.8

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

func (TmallItemStoreUpdateSchemaGetAPIRequest) GetStoreId

GetStoreId StoreId Getter

func (*TmallItemStoreUpdateSchemaGetAPIRequest) SetMainItemId

func (r *TmallItemStoreUpdateSchemaGetAPIRequest) SetMainItemId(_mainItemId int64) error

SetMainItemId is MainItemId Setter 主商品ID

func (*TmallItemStoreUpdateSchemaGetAPIRequest) SetStoreId

func (r *TmallItemStoreUpdateSchemaGetAPIRequest) SetStoreId(_storeId int64) error

SetStoreId is StoreId Setter 门店ID

type TmallItemStoreUpdateSchemaGetAPIResponse

type TmallItemStoreUpdateSchemaGetAPIResponse struct {
	model.CommonResponse
	TmallItemStoreUpdateSchemaGetAPIResponseModel
}

TmallItemStoreUpdateSchemaGetAPIResponse 天猫门店商品修改规则获取 API返回值 tmall.item.store.update.schema.get

天猫门店商品修改规则获取

type TmallItemStoreUpdateSchemaGetAPIResponseModel

type TmallItemStoreUpdateSchemaGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_store_update_schema_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 无
	ApiResult *TmallItemStoreUpdateSchemaGetApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"`
}

TmallItemStoreUpdateSchemaGetAPIResponseModel is 天猫门店商品修改规则获取 成功返回结果

type TmallItemStoreUpdateSchemaGetApiResult

type TmallItemStoreUpdateSchemaGetApiResult struct {
	// 错误信息
	ErMsg string `json:"er_msg,omitempty" xml:"er_msg,omitempty"`
	// 错误码
	ErCode string `json:"er_code,omitempty" xml:"er_code,omitempty"`
	// 商品标题,价格,图片等商品数据的schema xml
	Result string `json:"result,omitempty" xml:"result,omitempty"`
	// 错误信息
	MappedErrorMessages string `json:"mapped_error_messages,omitempty" xml:"mapped_error_messages,omitempty"`
	// 成功
	Error bool `json:"error,omitempty" xml:"error,omitempty"`
}

TmallItemStoreUpdateSchemaGetApiResult 结构体

type TmallItemUpdateSimpleschemaGetAPIRequest

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

TmallItemUpdateSimpleschemaGetAPIRequest 官网同购编辑商品的get接口 API请求 tmall.item.update.simpleschema.get

官网同购编辑商品的get接口

func NewTmallItemUpdateSimpleschemaGetRequest

func NewTmallItemUpdateSimpleschemaGetRequest() *TmallItemUpdateSimpleschemaGetAPIRequest

NewTmallItemUpdateSimpleschemaGetRequest 初始化TmallItemUpdateSimpleschemaGetAPIRequest对象

func (TmallItemUpdateSimpleschemaGetAPIRequest) GetApiMethodName

func (r TmallItemUpdateSimpleschemaGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemUpdateSimpleschemaGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemUpdateSimpleschemaGetAPIRequest) GetItemId

GetItemId ItemId Getter

func (TmallItemUpdateSimpleschemaGetAPIRequest) GetRawParams added in v1.2.8

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

func (*TmallItemUpdateSimpleschemaGetAPIRequest) SetItemId

SetItemId is ItemId Setter 商品id

type TmallItemUpdateSimpleschemaGetAPIResponse

type TmallItemUpdateSimpleschemaGetAPIResponse struct {
	model.CommonResponse
	TmallItemUpdateSimpleschemaGetAPIResponseModel
}

TmallItemUpdateSimpleschemaGetAPIResponse 官网同购编辑商品的get接口 API返回值 tmall.item.update.simpleschema.get

官网同购编辑商品的get接口

type TmallItemUpdateSimpleschemaGetAPIResponseModel

type TmallItemUpdateSimpleschemaGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_update_simpleschema_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 商品信息
	Result string `json:"result,omitempty" xml:"result,omitempty"`
	// 返回结果
	Error bool `json:"error,omitempty" xml:"error,omitempty"`
}

TmallItemUpdateSimpleschemaGetAPIResponseModel is 官网同购编辑商品的get接口 成功返回结果

type TmallItemVipAddSchemaGetAPIRequest

type TmallItemVipAddSchemaGetAPIRequest struct {
	model.Params
}

TmallItemVipAddSchemaGetAPIRequest vip商家发布商品的获取规则接口 API请求 tmall.item.vip.add.schema.get

获取vip商家发布商品的规则

func NewTmallItemVipAddSchemaGetRequest

func NewTmallItemVipAddSchemaGetRequest() *TmallItemVipAddSchemaGetAPIRequest

NewTmallItemVipAddSchemaGetRequest 初始化TmallItemVipAddSchemaGetAPIRequest对象

func (TmallItemVipAddSchemaGetAPIRequest) GetApiMethodName

func (r TmallItemVipAddSchemaGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemVipAddSchemaGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemVipAddSchemaGetAPIRequest) GetRawParams added in v1.2.8

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

type TmallItemVipAddSchemaGetAPIResponse

type TmallItemVipAddSchemaGetAPIResponse struct {
	model.CommonResponse
	TmallItemVipAddSchemaGetAPIResponseModel
}

TmallItemVipAddSchemaGetAPIResponse vip商家发布商品的获取规则接口 API返回值 tmall.item.vip.add.schema.get

获取vip商家发布商品的规则

type TmallItemVipAddSchemaGetAPIResponseModel

type TmallItemVipAddSchemaGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_vip_add_schema_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值是发布商品时需要的字段及基本类型
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

TmallItemVipAddSchemaGetAPIResponseModel is vip商家发布商品的获取规则接口 成功返回结果

type TmallItemVipSchemaAddAPIRequest

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

TmallItemVipSchemaAddAPIRequest 大商家商品发布接口 API请求 tmall.item.vip.schema.add

大商家商品发布接口

func NewTmallItemVipSchemaAddRequest

func NewTmallItemVipSchemaAddRequest() *TmallItemVipSchemaAddAPIRequest

NewTmallItemVipSchemaAddRequest 初始化TmallItemVipSchemaAddAPIRequest对象

func (TmallItemVipSchemaAddAPIRequest) GetApiMethodName

func (r TmallItemVipSchemaAddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemVipSchemaAddAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemVipSchemaAddAPIRequest) GetRawParams added in v1.2.8

func (r TmallItemVipSchemaAddAPIRequest) GetRawParams() model.Params

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

func (TmallItemVipSchemaAddAPIRequest) GetSchemaXmlFields

func (r TmallItemVipSchemaAddAPIRequest) GetSchemaXmlFields() string

GetSchemaXmlFields SchemaXmlFields Getter

func (*TmallItemVipSchemaAddAPIRequest) SetSchemaXmlFields

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

SetSchemaXmlFields is SchemaXmlFields Setter 商品发布schema参数

type TmallItemVipSchemaAddAPIResponse

type TmallItemVipSchemaAddAPIResponse struct {
	model.CommonResponse
	TmallItemVipSchemaAddAPIResponseModel
}

TmallItemVipSchemaAddAPIResponse 大商家商品发布接口 API返回值 tmall.item.vip.schema.add

大商家商品发布接口

type TmallItemVipSchemaAddAPIResponseModel

type TmallItemVipSchemaAddAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_vip_schema_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品发布成功_商品id
	AddItemResult string `json:"add_item_result,omitempty" xml:"add_item_result,omitempty"`
	// 发布商品操作成功时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// sku与outerId映射信息
	SkuMapJson string `json:"sku_map_json,omitempty" xml:"sku_map_json,omitempty"`
}

TmallItemVipSchemaAddAPIResponseModel is 大商家商品发布接口 成功返回结果

type TmallItemVipSchemaUpdateAPIRequest

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

TmallItemVipSchemaUpdateAPIRequest 大商家商品编辑接口 API请求 tmall.item.vip.schema.update

大商家编辑商品

func NewTmallItemVipSchemaUpdateRequest

func NewTmallItemVipSchemaUpdateRequest() *TmallItemVipSchemaUpdateAPIRequest

NewTmallItemVipSchemaUpdateRequest 初始化TmallItemVipSchemaUpdateAPIRequest对象

func (TmallItemVipSchemaUpdateAPIRequest) GetApiMethodName

func (r TmallItemVipSchemaUpdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemVipSchemaUpdateAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemVipSchemaUpdateAPIRequest) GetItemId

GetItemId ItemId Getter

func (TmallItemVipSchemaUpdateAPIRequest) GetRawParams added in v1.2.8

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

func (TmallItemVipSchemaUpdateAPIRequest) GetSchemaXmlFields

func (r TmallItemVipSchemaUpdateAPIRequest) GetSchemaXmlFields() string

GetSchemaXmlFields SchemaXmlFields Getter

func (*TmallItemVipSchemaUpdateAPIRequest) SetItemId

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

SetItemId is ItemId Setter 商品id

func (*TmallItemVipSchemaUpdateAPIRequest) SetSchemaXmlFields

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

SetSchemaXmlFields is SchemaXmlFields Setter 商品编辑的schema参数

type TmallItemVipSchemaUpdateAPIResponse

type TmallItemVipSchemaUpdateAPIResponse struct {
	model.CommonResponse
	TmallItemVipSchemaUpdateAPIResponseModel
}

TmallItemVipSchemaUpdateAPIResponse 大商家商品编辑接口 API返回值 tmall.item.vip.schema.update

大商家编辑商品

type TmallItemVipSchemaUpdateAPIResponseModel

type TmallItemVipSchemaUpdateAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_vip_schema_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 编辑商品的id
	UpdateItemResult string `json:"update_item_result,omitempty" xml:"update_item_result,omitempty"`
	// 编辑商品操作成功时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// sku与outerId映射信息
	SkuMapJson string `json:"sku_map_json,omitempty" xml:"sku_map_json,omitempty"`
}

TmallItemVipSchemaUpdateAPIResponseModel is 大商家商品编辑接口 成功返回结果

type TmallItemVipUpdateSchemaGetAPIRequest

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

TmallItemVipUpdateSchemaGetAPIRequest vip商家编辑商品的规则获取接口 API请求 tmall.item.vip.update.schema.get

获取vip商家编辑商品的规则

func NewTmallItemVipUpdateSchemaGetRequest

func NewTmallItemVipUpdateSchemaGetRequest() *TmallItemVipUpdateSchemaGetAPIRequest

NewTmallItemVipUpdateSchemaGetRequest 初始化TmallItemVipUpdateSchemaGetAPIRequest对象

func (TmallItemVipUpdateSchemaGetAPIRequest) GetApiMethodName

func (r TmallItemVipUpdateSchemaGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallItemVipUpdateSchemaGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallItemVipUpdateSchemaGetAPIRequest) GetItemId

GetItemId ItemId Getter

func (TmallItemVipUpdateSchemaGetAPIRequest) GetRawParams added in v1.2.8

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

func (*TmallItemVipUpdateSchemaGetAPIRequest) SetItemId

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

SetItemId is ItemId Setter 商品id

type TmallItemVipUpdateSchemaGetAPIResponse

type TmallItemVipUpdateSchemaGetAPIResponse struct {
	model.CommonResponse
	TmallItemVipUpdateSchemaGetAPIResponseModel
}

TmallItemVipUpdateSchemaGetAPIResponse vip商家编辑商品的规则获取接口 API返回值 tmall.item.vip.update.schema.get

获取vip商家编辑商品的规则

type TmallItemVipUpdateSchemaGetAPIResponseModel

type TmallItemVipUpdateSchemaGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_item_vip_update_schema_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 获取的编辑商品的规则
	UpdateGetResult string `json:"update_get_result,omitempty" xml:"update_get_result,omitempty"`
}

TmallItemVipUpdateSchemaGetAPIResponseModel is vip商家编辑商品的规则获取接口 成功返回结果

type TmallProductSpecAddAPIRequest

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

TmallProductSpecAddAPIRequest 添加产品规格 API请求 tmall.product.spec.add

增加产品规格

func NewTmallProductSpecAddRequest

func NewTmallProductSpecAddRequest() *TmallProductSpecAddAPIRequest

NewTmallProductSpecAddRequest 初始化TmallProductSpecAddAPIRequest对象

func (TmallProductSpecAddAPIRequest) GetApiMethodName

func (r TmallProductSpecAddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallProductSpecAddAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallProductSpecAddAPIRequest) GetBarcode

func (r TmallProductSpecAddAPIRequest) GetBarcode() string

GetBarcode Barcode Getter

func (TmallProductSpecAddAPIRequest) GetCertifiedPicStr

func (r TmallProductSpecAddAPIRequest) GetCertifiedPicStr() string

GetCertifiedPicStr CertifiedPicStr Getter

func (TmallProductSpecAddAPIRequest) GetCertifiedTxtStr

func (r TmallProductSpecAddAPIRequest) GetCertifiedTxtStr() string

GetCertifiedTxtStr CertifiedTxtStr Getter

func (TmallProductSpecAddAPIRequest) GetChangeProp

func (r TmallProductSpecAddAPIRequest) GetChangeProp() string

GetChangeProp ChangeProp Getter

func (TmallProductSpecAddAPIRequest) GetCustomerSpecProps

func (r TmallProductSpecAddAPIRequest) GetCustomerSpecProps() string

GetCustomerSpecProps CustomerSpecProps Getter

func (TmallProductSpecAddAPIRequest) GetImage

GetImage Image Getter

func (TmallProductSpecAddAPIRequest) GetLabelPrice

func (r TmallProductSpecAddAPIRequest) GetLabelPrice() int64

GetLabelPrice LabelPrice Getter

func (TmallProductSpecAddAPIRequest) GetMarketTime

func (r TmallProductSpecAddAPIRequest) GetMarketTime() string

GetMarketTime MarketTime Getter

func (TmallProductSpecAddAPIRequest) GetProductCode

func (r TmallProductSpecAddAPIRequest) GetProductCode() string

GetProductCode ProductCode Getter

func (TmallProductSpecAddAPIRequest) GetProductId

func (r TmallProductSpecAddAPIRequest) GetProductId() int64

GetProductId ProductId Getter

func (TmallProductSpecAddAPIRequest) GetRawParams added in v1.2.8

func (r TmallProductSpecAddAPIRequest) GetRawParams() model.Params

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

func (TmallProductSpecAddAPIRequest) GetSpecProps

func (r TmallProductSpecAddAPIRequest) GetSpecProps() string

GetSpecProps SpecProps Getter

func (TmallProductSpecAddAPIRequest) GetSpecPropsAlias

func (r TmallProductSpecAddAPIRequest) GetSpecPropsAlias() string

GetSpecPropsAlias SpecPropsAlias Getter

func (*TmallProductSpecAddAPIRequest) SetBarcode

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

SetBarcode is Barcode Setter 产品二维码

func (*TmallProductSpecAddAPIRequest) SetCertifiedPicStr

func (r *TmallProductSpecAddAPIRequest) SetCertifiedPicStr(_certifiedPicStr string) error

SetCertifiedPicStr is CertifiedPicStr Setter 存放产品规格认证类型-认证图片url映射信息,格式为k:v;k:v;,其中key为认证类型数字id,value为调用tmall.product.spec.pic.upload返回的认证图片url文本

func (*TmallProductSpecAddAPIRequest) SetCertifiedTxtStr

func (r *TmallProductSpecAddAPIRequest) SetCertifiedTxtStr(_certifiedTxtStr string) error

SetCertifiedTxtStr is CertifiedTxtStr Setter 存放产品规格认证类型-认证文本映射信息,格式为k:v;k:v;,其中key为认证类型数字id,value为认证文本值

func (*TmallProductSpecAddAPIRequest) SetChangeProp

func (r *TmallProductSpecAddAPIRequest) SetChangeProp(_changeProp string) error

SetChangeProp is ChangeProp Setter 产品基础色,数据格式为:pid:vid:rvid1,rvid2,rvid3;pid:vid:rvid1

func (*TmallProductSpecAddAPIRequest) SetCustomerSpecProps

func (r *TmallProductSpecAddAPIRequest) SetCustomerSpecProps(_customerSpecProps string) error

SetCustomerSpecProps is CustomerSpecProps Setter 用户自定义销售属性,结构:pid1:value1;pid2:value2。在

func (*TmallProductSpecAddAPIRequest) SetImage

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

SetImage is Image Setter 产品图片

func (*TmallProductSpecAddAPIRequest) SetLabelPrice

func (r *TmallProductSpecAddAPIRequest) SetLabelPrice(_labelPrice int64) error

SetLabelPrice is LabelPrice Setter 产品规格吊牌价,以分为单位,无默认值,上限999999999

func (*TmallProductSpecAddAPIRequest) SetMarketTime

func (r *TmallProductSpecAddAPIRequest) SetMarketTime(_marketTime string) error

SetMarketTime is MarketTime Setter 产品上市时间

func (*TmallProductSpecAddAPIRequest) SetProductCode

func (r *TmallProductSpecAddAPIRequest) SetProductCode(_productCode string) error

SetProductCode is ProductCode Setter 产品货号

func (*TmallProductSpecAddAPIRequest) SetProductId

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

SetProductId is ProductId Setter 产品ID

func (*TmallProductSpecAddAPIRequest) SetSpecProps

func (r *TmallProductSpecAddAPIRequest) SetSpecProps(_specProps string) error

SetSpecProps is SpecProps Setter 产品的规格属性

func (*TmallProductSpecAddAPIRequest) SetSpecPropsAlias

func (r *TmallProductSpecAddAPIRequest) SetSpecPropsAlias(_specPropsAlias string) error

SetSpecPropsAlias is SpecPropsAlias Setter 规格属性别名,只允许传颜色别名

type TmallProductSpecAddAPIResponse

type TmallProductSpecAddAPIResponse struct {
	model.CommonResponse
	TmallProductSpecAddAPIResponseModel
}

TmallProductSpecAddAPIResponse 添加产品规格 API返回值 tmall.product.spec.add

增加产品规格

type TmallProductSpecAddAPIResponseModel

type TmallProductSpecAddAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_product_spec_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 产品规格对象
	ProductSpec *ProductSpec `json:"product_spec,omitempty" xml:"product_spec,omitempty"`
}

TmallProductSpecAddAPIResponseModel is 添加产品规格 成功返回结果

type TmallProductSpecGetAPIRequest

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

TmallProductSpecGetAPIRequest 根据产品规格的Id号获取当个的规格信息 API请求 tmall.product.spec.get

通过当个的spec_id获取到这个产品规格的信息,主要是因为产品规格是要经过审核的,所以通过这个接口可以获取到是否通过审核<br/>通过参看这个ProductSpec的status判断:<br/>1:表示审核通过<br/>3:表示等待审核。<br/>如果你的id找不到数据,那么就是审核被拒绝。

func NewTmallProductSpecGetRequest

func NewTmallProductSpecGetRequest() *TmallProductSpecGetAPIRequest

NewTmallProductSpecGetRequest 初始化TmallProductSpecGetAPIRequest对象

func (TmallProductSpecGetAPIRequest) GetApiMethodName

func (r TmallProductSpecGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallProductSpecGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallProductSpecGetAPIRequest) GetRawParams added in v1.2.8

func (r TmallProductSpecGetAPIRequest) GetRawParams() model.Params

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

func (TmallProductSpecGetAPIRequest) GetSpecId

func (r TmallProductSpecGetAPIRequest) GetSpecId() int64

GetSpecId SpecId Getter

func (*TmallProductSpecGetAPIRequest) SetSpecId

func (r *TmallProductSpecGetAPIRequest) SetSpecId(_specId int64) error

SetSpecId is SpecId Setter 要获取信息的产品规格信息。

type TmallProductSpecGetAPIResponse

type TmallProductSpecGetAPIResponse struct {
	model.CommonResponse
	TmallProductSpecGetAPIResponseModel
}

TmallProductSpecGetAPIResponse 根据产品规格的Id号获取当个的规格信息 API返回值 tmall.product.spec.get

通过当个的spec_id获取到这个产品规格的信息,主要是因为产品规格是要经过审核的,所以通过这个接口可以获取到是否通过审核<br/>通过参看这个ProductSpec的status判断:<br/>1:表示审核通过<br/>3:表示等待审核。<br/>如果你的id找不到数据,那么就是审核被拒绝。

type TmallProductSpecGetAPIResponseModel

type TmallProductSpecGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_product_spec_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回的产品规格信息,注意,这个产品规格信息可能是等待审核的,不一定可用。根据状态判断1:表示审核通过<br/>3:表示等待审核。
	ProductSpec *ProductSpec `json:"product_spec,omitempty" xml:"product_spec,omitempty"`
}

TmallProductSpecGetAPIResponseModel is 根据产品规格的Id号获取当个的规格信息 成功返回结果

type TmallProductSpecPicUploadAPIRequest

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

TmallProductSpecPicUploadAPIRequest 上传产品规格认证图片 API请求 tmall.product.spec.pic.upload

上传指定类型的产品规格认证文件,并返回存有上传成功图片url的产品规格对象

func NewTmallProductSpecPicUploadRequest

func NewTmallProductSpecPicUploadRequest() *TmallProductSpecPicUploadAPIRequest

NewTmallProductSpecPicUploadRequest 初始化TmallProductSpecPicUploadAPIRequest对象

func (TmallProductSpecPicUploadAPIRequest) GetApiMethodName

func (r TmallProductSpecPicUploadAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallProductSpecPicUploadAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallProductSpecPicUploadAPIRequest) GetCertifyPic

func (r TmallProductSpecPicUploadAPIRequest) GetCertifyPic() *model.File

GetCertifyPic CertifyPic Getter

func (TmallProductSpecPicUploadAPIRequest) GetCertifyType

func (r TmallProductSpecPicUploadAPIRequest) GetCertifyType() int64

GetCertifyType CertifyType Getter

func (TmallProductSpecPicUploadAPIRequest) GetRawParams added in v1.2.8

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

func (*TmallProductSpecPicUploadAPIRequest) SetCertifyPic

func (r *TmallProductSpecPicUploadAPIRequest) SetCertifyPic(_certifyPic *model.File) error

SetCertifyPic is CertifyPic Setter 上传的认证图片文件

func (*TmallProductSpecPicUploadAPIRequest) SetCertifyType

func (r *TmallProductSpecPicUploadAPIRequest) SetCertifyType(_certifyType int64) error

SetCertifyType is CertifyType Setter 上传的认证图片的认证类型<br>1:代表产品包装正面图<br>2:代表完整产品资质<br>3:代表产品包装反面图<br>4:代表产品包装侧面图<br>5:代表产品包装条形码特写<br>6:代表特殊用途化妆品批准文号<br>7:代表3C认证图标<br>

type TmallProductSpecPicUploadAPIResponse

type TmallProductSpecPicUploadAPIResponse struct {
	model.CommonResponse
	TmallProductSpecPicUploadAPIResponseModel
}

TmallProductSpecPicUploadAPIResponse 上传产品规格认证图片 API返回值 tmall.product.spec.pic.upload

上传指定类型的产品规格认证文件,并返回存有上传成功图片url的产品规格对象

type TmallProductSpecPicUploadAPIResponseModel

type TmallProductSpecPicUploadAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_product_spec_pic_upload_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 上传成功的产品规格认证图片url
	SpecPicUrl string `json:"spec_pic_url,omitempty" xml:"spec_pic_url,omitempty"`
}

TmallProductSpecPicUploadAPIResponseModel is 上传产品规格认证图片 成功返回结果

type TmallProductSpecsGetAPIRequest

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

TmallProductSpecsGetAPIRequest 获取产品的规格信息 API请求 tmall.product.specs.get

按product_id或品牌下载产品规格,返回一组的产品规格信息。

func NewTmallProductSpecsGetRequest

func NewTmallProductSpecsGetRequest() *TmallProductSpecsGetAPIRequest

NewTmallProductSpecsGetRequest 初始化TmallProductSpecsGetAPIRequest对象

func (TmallProductSpecsGetAPIRequest) GetApiMethodName

func (r TmallProductSpecsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallProductSpecsGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallProductSpecsGetAPIRequest) GetCatId

GetCatId CatId Getter

func (TmallProductSpecsGetAPIRequest) GetProductId

func (r TmallProductSpecsGetAPIRequest) GetProductId() int64

GetProductId ProductId Getter

func (TmallProductSpecsGetAPIRequest) GetProperties

func (r TmallProductSpecsGetAPIRequest) GetProperties() string

GetProperties Properties Getter

func (TmallProductSpecsGetAPIRequest) GetRawParams added in v1.2.8

func (r TmallProductSpecsGetAPIRequest) GetRawParams() model.Params

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

func (*TmallProductSpecsGetAPIRequest) SetCatId

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

SetCatId is CatId Setter 类目的ID号,该id必须和properties同时传入。而且只有当product_id不传入的时候才起效果。<br> product_id不传时,该参数必传

func (*TmallProductSpecsGetAPIRequest) SetProductId

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

SetProductId is ProductId Setter 产品的ID。这个不能和properties和cat_id同时起效果<br>properties 和cat_id 均不传时,该参数必传。

func (*TmallProductSpecsGetAPIRequest) SetProperties

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

SetProperties is Properties Setter 关键属性的字符串,pid:vid;pid:vid该字段必须和cat_id同时传入才起效果。 而且只有当product_id不传入的时候才起效果。<br>product_id 不传时该参数必传

type TmallProductSpecsGetAPIResponse

type TmallProductSpecsGetAPIResponse struct {
	model.CommonResponse
	TmallProductSpecsGetAPIResponseModel
}

TmallProductSpecsGetAPIResponse 获取产品的规格信息 API返回值 tmall.product.specs.get

按product_id或品牌下载产品规格,返回一组的产品规格信息。

type TmallProductSpecsGetAPIResponseModel

type TmallProductSpecsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_product_specs_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回一组产品规格信息。
	ProductSpecs []ProductSpec `json:"product_specs,omitempty" xml:"product_specs>product_spec,omitempty"`
}

TmallProductSpecsGetAPIResponseModel is 获取产品的规格信息 成功返回结果

type TmallProductSpecsTicketGetAPIRequest

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

TmallProductSpecsTicketGetAPIRequest 产品规格审核信息获取接口 API请求 tmall.product.specs.ticket.get

批量根据specId查询产品规格审核信息包括产品规格状态,申请人,拒绝原因等

func NewTmallProductSpecsTicketGetRequest

func NewTmallProductSpecsTicketGetRequest() *TmallProductSpecsTicketGetAPIRequest

NewTmallProductSpecsTicketGetRequest 初始化TmallProductSpecsTicketGetAPIRequest对象

func (TmallProductSpecsTicketGetAPIRequest) GetApiMethodName

func (r TmallProductSpecsTicketGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallProductSpecsTicketGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallProductSpecsTicketGetAPIRequest) GetRawParams added in v1.2.8

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

func (TmallProductSpecsTicketGetAPIRequest) GetSpecIds

GetSpecIds SpecIds Getter

func (*TmallProductSpecsTicketGetAPIRequest) SetSpecIds

func (r *TmallProductSpecsTicketGetAPIRequest) SetSpecIds(_specIds string) error

SetSpecIds is SpecIds Setter 产品规格ID,多个用逗号分隔

type TmallProductSpecsTicketGetAPIResponse

type TmallProductSpecsTicketGetAPIResponse struct {
	model.CommonResponse
	TmallProductSpecsTicketGetAPIResponseModel
}

TmallProductSpecsTicketGetAPIResponse 产品规格审核信息获取接口 API返回值 tmall.product.specs.ticket.get

批量根据specId查询产品规格审核信息包括产品规格状态,申请人,拒绝原因等

type TmallProductSpecsTicketGetAPIResponseModel

type TmallProductSpecsTicketGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_product_specs_ticket_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 产品规格审核单信息
	Tickets []Ticket `json:"tickets,omitempty" xml:"tickets>ticket,omitempty"`
}

TmallProductSpecsTicketGetAPIResponseModel is 产品规格审核信息获取接口 成功返回结果

type TmallProductTemplateGetAPIRequest

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

TmallProductTemplateGetAPIRequest 产品接口 API请求 tmall.product.template.get

产品模板获取接口,对于非关键属性的类目,发布达尔文(监管)产品时,必须先根据类目获取产品模板。<br/><br/>产品模板定义产品发布需要的类目属性,包括:<br/><br/> 关键属性:关键属性可以在类目上不存在。不存在的PID,默认为输入,没有子属性。属性名称在prop_name_str中取<br/> 绑定属性:内容为属性ID(PID)的列表,绑定属性肯定在类目上有,对应属性的类目特征,子属性请根据PID到类目上去取<br/><br/> 过滤属性:内容有属性ID(PID)列表,很重要的属性,filter_properties包含的属性,必须填写<br/><br/> 如果获取不到模板,非关键属性类目是不能发布产品的<br/>

func NewTmallProductTemplateGetRequest

func NewTmallProductTemplateGetRequest() *TmallProductTemplateGetAPIRequest

NewTmallProductTemplateGetRequest 初始化TmallProductTemplateGetAPIRequest对象

func (TmallProductTemplateGetAPIRequest) GetApiMethodName

func (r TmallProductTemplateGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallProductTemplateGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallProductTemplateGetAPIRequest) GetCid

GetCid Cid Getter

func (TmallProductTemplateGetAPIRequest) GetRawParams added in v1.2.8

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

func (*TmallProductTemplateGetAPIRequest) SetCid

SetCid is Cid Setter 类目ID

type TmallProductTemplateGetAPIResponse

type TmallProductTemplateGetAPIResponse struct {
	model.CommonResponse
	TmallProductTemplateGetAPIResponseModel
}

TmallProductTemplateGetAPIResponse 产品接口 API返回值 tmall.product.template.get

产品模板获取接口,对于非关键属性的类目,发布达尔文(监管)产品时,必须先根据类目获取产品模板。<br/><br/>产品模板定义产品发布需要的类目属性,包括:<br/><br/> 关键属性:关键属性可以在类目上不存在。不存在的PID,默认为输入,没有子属性。属性名称在prop_name_str中取<br/> 绑定属性:内容为属性ID(PID)的列表,绑定属性肯定在类目上有,对应属性的类目特征,子属性请根据PID到类目上去取<br/><br/> 过滤属性:内容有属性ID(PID)列表,很重要的属性,filter_properties包含的属性,必须填写<br/><br/> 如果获取不到模板,非关键属性类目是不能发布产品的<br/>

type TmallProductTemplateGetAPIResponseModel

type TmallProductTemplateGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_product_template_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 见SpuTemplateDO说明
	Template *SpuTemplateDo `json:"template,omitempty" xml:"template,omitempty"`
}

TmallProductTemplateGetAPIResponseModel is 产品接口 成功返回结果

type UpdateSkuScProduct added in v1.2.5

type UpdateSkuScProduct struct {
	// 商家外部id,如果填写,将以商家外部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对应的货品的货主id
	ScUserId int64 `json:"sc_user_id,omitempty" xml:"sc_user_id,omitempty"`
	// 被更新的Sku对应的货品的货品id
	ScProductId int64 `json:"sc_product_id,omitempty" xml:"sc_product_id,omitempty"`
	// SkuID,如果填写,将以SKUID查找被更新的SKU
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

UpdateSkuScProduct 结构体

type UploadImageResp

type UploadImageResp struct {
	// 返回的图片地址
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 图片哈希值
	Hash string `json:"hash,omitempty" xml:"hash,omitempty"`
	// 图片高度
	Height int64 `json:"height,omitempty" xml:"height,omitempty"`
	// 图片宽度
	Width int64 `json:"width,omitempty" xml:"width,omitempty"`
}

UploadImageResp 结构体

type Video

type Video struct {
	// video的url连接地址。淘秀里视频记录里面存储的url地址
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 视频关联记录创建时间(格式: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 结构体

Source Files

Jump to

Keyboard shortcuts

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