category

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package category 包含类目API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaImapCategoryPredictAPIRequest

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

AlibabaImapCategoryPredictAPIRequest 类目预测接口 API请求 alibaba.imap.category.predict

* 类目预测接口

  • 【必填字段】 title, srcChannelId, srcCategoryId, targetChannelId
  • 【非必填,但有最好填上】itemId, barcode, brandName, pvPairDOList, srcCatNamePathList

func NewAlibabaImapCategoryPredictRequest

func NewAlibabaImapCategoryPredictRequest() *AlibabaImapCategoryPredictAPIRequest

NewAlibabaImapCategoryPredictRequest 初始化AlibabaImapCategoryPredictAPIRequest对象

func (AlibabaImapCategoryPredictAPIRequest) GetApiMethodName

func (r AlibabaImapCategoryPredictAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaImapCategoryPredictAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaImapCategoryPredictAPIRequest) GetFixedMappingAppInfo

func (r AlibabaImapCategoryPredictAPIRequest) GetFixedMappingAppInfo() *FixedMappingAppInfo

GetFixedMappingAppInfo FixedMappingAppInfo Getter

func (AlibabaImapCategoryPredictAPIRequest) GetTopImapItemDo

GetTopImapItemDo TopImapItemDo Getter

func (*AlibabaImapCategoryPredictAPIRequest) SetFixedMappingAppInfo

func (r *AlibabaImapCategoryPredictAPIRequest) SetFixedMappingAppInfo(_fixedMappingAppInfo *FixedMappingAppInfo) error

SetFixedMappingAppInfo is FixedMappingAppInfo Setter 账号信息

func (*AlibabaImapCategoryPredictAPIRequest) SetTopImapItemDo

func (r *AlibabaImapCategoryPredictAPIRequest) SetTopImapItemDo(_topImapItemDo *TopImapItemDo) error

SetTopImapItemDo is TopImapItemDo Setter 入参DO

type AlibabaImapCategoryPredictAPIResponse

type AlibabaImapCategoryPredictAPIResponse struct {
	model.CommonResponse
	AlibabaImapCategoryPredictAPIResponseModel
}

AlibabaImapCategoryPredictAPIResponse 类目预测接口 API返回值 alibaba.imap.category.predict

* 类目预测接口

  • 【必填字段】 title, srcChannelId, srcCategoryId, targetChannelId
  • 【非必填,但有最好填上】itemId, barcode, brandName, pvPairDOList, srcCatNamePathList

type AlibabaImapCategoryPredictAPIResponseModel

type AlibabaImapCategoryPredictAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_imap_category_predict_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *AlibabaImapCategoryPredictResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaImapCategoryPredictAPIResponseModel is 类目预测接口 成功返回结果

type AlibabaImapCategoryPredictResult

type AlibabaImapCategoryPredictResult struct {
	// 1
	TopImapUnionCategoryPathDoList []TopImapUnionCategoryPathDo `` /* 138-byte string literal not displayed */
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaImapCategoryPredictResult 结构体

type AlibabaImapFixedmappingQueryAPIRequest

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

AlibabaImapFixedmappingQueryAPIRequest 查询两个渠道之间的固定映射关系,不通过算法兜底 API请求 alibaba.imap.fixedmapping.query

查询两个渠道之间的固定映射关系,不通过算法兜底

func NewAlibabaImapFixedmappingQueryRequest

func NewAlibabaImapFixedmappingQueryRequest() *AlibabaImapFixedmappingQueryAPIRequest

NewAlibabaImapFixedmappingQueryRequest 初始化AlibabaImapFixedmappingQueryAPIRequest对象

func (AlibabaImapFixedmappingQueryAPIRequest) GetApiMethodName

func (r AlibabaImapFixedmappingQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaImapFixedmappingQueryAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaImapFixedmappingQueryAPIRequest) GetAppName

GetAppName AppName Getter

func (AlibabaImapFixedmappingQueryAPIRequest) GetPassword

GetPassword Password Getter

func (AlibabaImapFixedmappingQueryAPIRequest) GetSrcCategoryId

func (r AlibabaImapFixedmappingQueryAPIRequest) GetSrcCategoryId() int64

GetSrcCategoryId SrcCategoryId Getter

func (AlibabaImapFixedmappingQueryAPIRequest) GetSrcChannelId

func (r AlibabaImapFixedmappingQueryAPIRequest) GetSrcChannelId() int64

GetSrcChannelId SrcChannelId Getter

func (AlibabaImapFixedmappingQueryAPIRequest) GetTargetCategoryId

func (r AlibabaImapFixedmappingQueryAPIRequest) GetTargetCategoryId() int64

GetTargetCategoryId TargetCategoryId Getter

func (AlibabaImapFixedmappingQueryAPIRequest) GetTargetChannelIdList

func (r AlibabaImapFixedmappingQueryAPIRequest) GetTargetChannelIdList() []int64

GetTargetChannelIdList TargetChannelIdList Getter

func (*AlibabaImapFixedmappingQueryAPIRequest) SetAppName

func (r *AlibabaImapFixedmappingQueryAPIRequest) SetAppName(_appName string) error

SetAppName is AppName Setter 账号

func (*AlibabaImapFixedmappingQueryAPIRequest) SetPassword

func (r *AlibabaImapFixedmappingQueryAPIRequest) SetPassword(_password string) error

SetPassword is Password Setter 密码

func (*AlibabaImapFixedmappingQueryAPIRequest) SetSrcCategoryId

func (r *AlibabaImapFixedmappingQueryAPIRequest) SetSrcCategoryId(_srcCategoryId int64) error

SetSrcCategoryId is SrcCategoryId Setter 源类目ID

func (*AlibabaImapFixedmappingQueryAPIRequest) SetSrcChannelId

func (r *AlibabaImapFixedmappingQueryAPIRequest) SetSrcChannelId(_srcChannelId int64) error

SetSrcChannelId is SrcChannelId Setter 源渠道ID

func (*AlibabaImapFixedmappingQueryAPIRequest) SetTargetCategoryId

func (r *AlibabaImapFixedmappingQueryAPIRequest) SetTargetCategoryId(_targetCategoryId int64) error

SetTargetCategoryId is TargetCategoryId Setter 目标渠道ID

func (*AlibabaImapFixedmappingQueryAPIRequest) SetTargetChannelIdList

func (r *AlibabaImapFixedmappingQueryAPIRequest) SetTargetChannelIdList(_targetChannelIdList []int64) error

SetTargetChannelIdList is TargetChannelIdList Setter 目标渠道ID列表

type AlibabaImapFixedmappingQueryAPIResponse

type AlibabaImapFixedmappingQueryAPIResponse struct {
	model.CommonResponse
	AlibabaImapFixedmappingQueryAPIResponseModel
}

AlibabaImapFixedmappingQueryAPIResponse 查询两个渠道之间的固定映射关系,不通过算法兜底 API返回值 alibaba.imap.fixedmapping.query

查询两个渠道之间的固定映射关系,不通过算法兜底

type AlibabaImapFixedmappingQueryAPIResponseModel

type AlibabaImapFixedmappingQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_imap_fixedmapping_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *AlibabaImapFixedmappingQueryResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaImapFixedmappingQueryAPIResponseModel is 查询两个渠道之间的固定映射关系,不通过算法兜底 成功返回结果

type AlibabaImapFixedmappingQueryResult

type AlibabaImapFixedmappingQueryResult struct {
	// list参数
	TopImapUnionCategoryPathDoList []TopImapUnionCategoryPathDo `` /* 138-byte string literal not displayed */
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaImapFixedmappingQueryResult 结构体

type AlibabaImapPvAutofillAPIRequest

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

AlibabaImapPvAutofillAPIRequest 属性回填接口 API请求 alibaba.imap.pv.autofill

根据用户传入的标题、目标渠道id,目标渠道叶子类目,预测其对应的pv信息,返回给业务方,供其自动填充属性项属性值信息

func NewAlibabaImapPvAutofillRequest

func NewAlibabaImapPvAutofillRequest() *AlibabaImapPvAutofillAPIRequest

NewAlibabaImapPvAutofillRequest 初始化AlibabaImapPvAutofillAPIRequest对象

func (AlibabaImapPvAutofillAPIRequest) GetApiMethodName

func (r AlibabaImapPvAutofillAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaImapPvAutofillAPIRequest) GetApiParams

func (r AlibabaImapPvAutofillAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaImapPvAutofillAPIRequest) GetTopImapItemDo

func (r AlibabaImapPvAutofillAPIRequest) GetTopImapItemDo() *TopImapItemDo

GetTopImapItemDo TopImapItemDo Getter

func (*AlibabaImapPvAutofillAPIRequest) SetTopImapItemDo

func (r *AlibabaImapPvAutofillAPIRequest) SetTopImapItemDo(_topImapItemDo *TopImapItemDo) error

SetTopImapItemDo is TopImapItemDo Setter 系统入参

type AlibabaImapPvAutofillAPIResponse

type AlibabaImapPvAutofillAPIResponse struct {
	model.CommonResponse
	AlibabaImapPvAutofillAPIResponseModel
}

AlibabaImapPvAutofillAPIResponse 属性回填接口 API返回值 alibaba.imap.pv.autofill

根据用户传入的标题、目标渠道id,目标渠道叶子类目,预测其对应的pv信息,返回给业务方,供其自动填充属性项属性值信息

type AlibabaImapPvAutofillAPIResponseModel

type AlibabaImapPvAutofillAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_imap_pv_autofill_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// imap通用返回DO
	Result *TopImapResultDo `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaImapPvAutofillAPIResponseModel is 属性回填接口 成功返回结果

type AlibabaWholesaleCategoryGetAPIRequest

type AlibabaWholesaleCategoryGetAPIRequest struct {
	model.Params
}

AlibabaWholesaleCategoryGetAPIRequest 获取类目信息 API请求 alibaba.wholesale.category.get

获取类目信息

func NewAlibabaWholesaleCategoryGetRequest

func NewAlibabaWholesaleCategoryGetRequest() *AlibabaWholesaleCategoryGetAPIRequest

NewAlibabaWholesaleCategoryGetRequest 初始化AlibabaWholesaleCategoryGetAPIRequest对象

func (AlibabaWholesaleCategoryGetAPIRequest) GetApiMethodName

func (r AlibabaWholesaleCategoryGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaWholesaleCategoryGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

type AlibabaWholesaleCategoryGetAPIResponse

type AlibabaWholesaleCategoryGetAPIResponse struct {
	model.CommonResponse
	AlibabaWholesaleCategoryGetAPIResponseModel
}

AlibabaWholesaleCategoryGetAPIResponse 获取类目信息 API返回值 alibaba.wholesale.category.get

获取类目信息

type AlibabaWholesaleCategoryGetAPIResponseModel

type AlibabaWholesaleCategoryGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_wholesale_category_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 类目结果
	WholesaleCategoryResult *WholesaleCategoryOpenResult `json:"wholesale_category_result,omitempty" xml:"wholesale_category_result,omitempty"`
}

AlibabaWholesaleCategoryGetAPIResponseModel is 获取类目信息 成功返回结果

type AliexpressSocialDiscategoryGetAPIRequest

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

AliexpressSocialDiscategoryGetAPIRequest 展示类目获取接口 API请求 aliexpress.social.discategory.get

AE展示类目获取接口

func NewAliexpressSocialDiscategoryGetRequest

func NewAliexpressSocialDiscategoryGetRequest() *AliexpressSocialDiscategoryGetAPIRequest

NewAliexpressSocialDiscategoryGetRequest 初始化AliexpressSocialDiscategoryGetAPIRequest对象

func (AliexpressSocialDiscategoryGetAPIRequest) GetApiMethodName

func (r AliexpressSocialDiscategoryGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliexpressSocialDiscategoryGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AliexpressSocialDiscategoryGetAPIRequest) GetLocale

GetLocale Locale Getter

func (*AliexpressSocialDiscategoryGetAPIRequest) SetLocale

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

type AliexpressSocialDiscategoryGetAPIResponse

type AliexpressSocialDiscategoryGetAPIResponse struct {
	model.CommonResponse
	AliexpressSocialDiscategoryGetAPIResponseModel
}

AliexpressSocialDiscategoryGetAPIResponse 展示类目获取接口 API返回值 aliexpress.social.discategory.get

AE展示类目获取接口

type AliexpressSocialDiscategoryGetAPIResponseModel

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

AliexpressSocialDiscategoryGetAPIResponseModel is 展示类目获取接口 成功返回结果

type Brand

type Brand struct {
	// vid的值
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 品牌的属性名
	PropName string `json:"prop_name,omitempty" xml:"prop_name,omitempty"`
	// 对应属性的 pid:vid 串中的vid
	Vid int64 `json:"vid,omitempty" xml:"vid,omitempty"`
	// 品牌的属性id
	Pid int64 `json:"pid,omitempty" xml:"pid,omitempty"`
}

Brand 结构体

type CategoryDto

type CategoryDto struct {
	// 子节点
	Childrens []CategoryDto `json:"childrens,omitempty" xml:"childrens>category_dto,omitempty"`
	// 类目名称
	CategoryName string `json:"category_name,omitempty" xml:"category_name,omitempty"`
	// 类目ID
	CategoryId string `json:"category_id,omitempty" xml:"category_id,omitempty"`
}

CategoryDto 结构体

type Feature

type Feature struct {
	// 属性键
	AttrKey string `json:"attr_key,omitempty" xml:"attr_key,omitempty"`
	// 属性值
	AttrValue string `json:"attr_value,omitempty" xml:"attr_value,omitempty"`
}

Feature 结构体

type FixedMappingAppInfo

type FixedMappingAppInfo struct {
	// 访问映射接口密码
	Password string `json:"password,omitempty" xml:"password,omitempty"`
	// 访问映射接口账号
	AppName string `json:"app_name,omitempty" xml:"app_name,omitempty"`
}

FixedMappingAppInfo 结构体

type ItemCat

type ItemCat struct {
	// Feature对象列表<br/>目前已有的属性:<br/>若Attr_key为 udsaleprop,attr_value为1 则允许卖家在改类目新增自定义销售属性,不然为不允许
	Features []Feature `json:"features,omitempty" xml:"features>feature,omitempty"`
	// 类目名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 状态。可选值:normal(正常),deleted(删除)
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 商品所属类目ID
	Cid int64 `json:"cid,omitempty" xml:"cid,omitempty"`
	// 父类目ID=0时,代表的是一级的类目
	ParentCid int64 `json:"parent_cid,omitempty" xml:"parent_cid,omitempty"`
	// 排列序号,表示同级类目的展现次序,如数值相等则按名称次序排列。取值范围:大于零的整数
	SortOrder int64 `json:"sort_order,omitempty" xml:"sort_order,omitempty"`
	// 该类目是否为父类目(即:该类目是否还有子类目)
	IsParent bool `json:"is_parent,omitempty" xml:"is_parent,omitempty"`
	// 是否度量衡类目
	TaosirCat bool `json:"taosir_cat,omitempty" xml:"taosir_cat,omitempty"`
}

ItemCat 结构体

type ItemMateriaValueDo

type ItemMateriaValueDo struct {
	// 材质值名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 当前材质值,是否需要填写含量值。比如:棉 是需要填写含量值,而牛皮 是不需要填写含量值的
	NeedContentNumber bool `json:"need_content_number,omitempty" xml:"need_content_number,omitempty"`
}

ItemMateriaValueDo 结构体

type ItemMaterialProp

type ItemMaterialProp struct {
	// 材质值列表
	Materials []ItemMateriaValueDo `json:"materials,omitempty" xml:"materials>item_materia_value_do,omitempty"`
}

ItemMaterialProp 结构体

type ItemPickPagingResult

type ItemPickPagingResult struct {
	// result
	Results []CategoryDto `json:"results,omitempty" xml:"results>category_dto,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

ItemPickPagingResult 结构体

type ItemProp

type ItemProp struct {
	//
	PropValues []PropValue `json:"prop_values,omitempty" xml:"prop_values>prop_value,omitempty"`
	// 属性的feature列表
	Features []Feature `json:"features,omitempty" xml:"features>feature,omitempty"`
	// 属性名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 状态。可选值:normal(正常),deleted(删除)
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 子属性的模板(卖家自行输入属性时需要用到)
	ChildTemplate string `json:"child_template,omitempty" xml:"child_template,omitempty"`
	// 属性 ID 例:品牌的PID=20000
	Pid int64 `json:"pid,omitempty" xml:"pid,omitempty"`
	// 上级属性ID
	ParentPid int64 `json:"parent_pid,omitempty" xml:"parent_pid,omitempty"`
	// 上级属性值ID
	ParentVid int64 `json:"parent_vid,omitempty" xml:"parent_vid,omitempty"`
	// 排列序号。取值范围:大于零的整排列序号。取值范围:大于零的整数
	SortOrder int64 `json:"sort_order,omitempty" xml:"sort_order,omitempty"`
	// 度量衡相关信息
	TaosirDo *ItemTaosirDo `json:"taosir_do,omitempty" xml:"taosir_do,omitempty"`
	// 材质属性信息
	MaterialDo *ItemMaterialProp `json:"material_do,omitempty" xml:"material_do,omitempty"`
	// 是否关键属性。可选值:true(是),false(否)
	IsKeyProp bool `json:"is_key_prop,omitempty" xml:"is_key_prop,omitempty"`
	// 是否销售属性。可选值:true(是),false(否)
	IsSaleProp bool `json:"is_sale_prop,omitempty" xml:"is_sale_prop,omitempty"`
	// 是否颜色属性。可选值:true(是),false(否)
	IsColorProp bool `json:"is_color_prop,omitempty" xml:"is_color_prop,omitempty"`
	// 是否是可枚举属性。可选值:true(是),false(否)
	IsEnumProp bool `json:"is_enum_prop,omitempty" xml:"is_enum_prop,omitempty"`
	// 是否商品属性。可选值:true(是),false(否)
	IsItemProp bool `json:"is_item_prop,omitempty" xml:"is_item_prop,omitempty"`
	// 发布产品或商品时是否为必选属性。可选值:true(是),false(否)
	Must bool `json:"must,omitempty" xml:"must,omitempty"`
	// 发布产品或商品时是否可以多选。可选值:true(是),false(否)
	Multi bool `json:"multi,omitempty" xml:"multi,omitempty"`
	// 是否允许别名。可选值:true(是),false(否)
	IsAllowAlias bool `json:"is_allow_alias,omitempty" xml:"is_allow_alias,omitempty"`
	// 在is_enum_prop是true的前提下,是否是卖家可以自行输入的属性(注:如果is_enum_prop返回false,该参数统一返回false)。可选值:true(是),false(否)。<b>对于品牌和型号属性(包括子属性):如果用户是C卖家,则可自定义属性;如果是B卖家,则不可自定义属性,而必须要授权的属性。</b>
	IsInputProp bool `json:"is_input_prop,omitempty" xml:"is_input_prop,omitempty"`
	// 是否度量衡属性项
	IsTaosir bool `json:"is_taosir,omitempty" xml:"is_taosir,omitempty"`
	// 是否是材质 属性项
	IsMaterial bool `json:"is_material,omitempty" xml:"is_material,omitempty"`
}

ItemProp 结构体

type ItemTaoSirElDo

type ItemTaoSirElDo struct {
	// 显示文本
	Text string `json:"text,omitempty" xml:"text,omitempty"`
	// 0 - 类型为label元素,只用于展示,不用于组装value_name;<br/>1 - 类型为label元素,用于展示,用于组装value_name;<br/>2 - 类型为输入狂元素,主要用于卖家输入数据. 卖家填写完后需要重新设置该元素的文本数据;
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
	// 是否只用于显示的文本元素
	IsShowLabel bool `json:"is_show_label,omitempty" xml:"is_show_label,omitempty"`
	// 是否文本元素,用于显示也用于组装value_name,比如:操作符
	IsLabel bool `json:"is_label,omitempty" xml:"is_label,omitempty"`
	// 是否输入框
	IsInput bool `json:"is_input,omitempty" xml:"is_input,omitempty"`
}

ItemTaoSirElDo 结构体

type ItemTaosirDo

type ItemTaosirDo struct {
	// 卖家可选单位List<单位id,单位名>
	StdUnitList []Feature `json:"std_unit_list,omitempty" xml:"std_unit_list>feature,omitempty"`
	// 表达式元素list
	ExprElList []ItemTaoSirElDo `json:"expr_el_list,omitempty" xml:"expr_el_list>item_tao_sir_el_do,omitempty"`
	// 时间类型:0表示非时间,1表示时间点,2表示时间范围
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
	// 数值小数点精度
	Precision int64 `json:"precision,omitempty" xml:"precision,omitempty"`
}

ItemTaosirDo 结构体

type PropValue

type PropValue struct {
	// 属性值feature
	Features []Feature `json:"features,omitempty" xml:"features>feature,omitempty"`
	// 属性名
	PropName string `json:"prop_name,omitempty" xml:"prop_name,omitempty"`
	// 属性值
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 属性值别名
	NameAlias string `json:"name_alias,omitempty" xml:"name_alias,omitempty"`
	// 状态。可选值:normal(正常),deleted(删除)
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 类目ID
	Cid int64 `json:"cid,omitempty" xml:"cid,omitempty"`
	// 属性 ID
	Pid int64 `json:"pid,omitempty" xml:"pid,omitempty"`
	// 属性值ID
	Vid int64 `json:"vid,omitempty" xml:"vid,omitempty"`
	// 排列序号。取值范围:大于零的整数
	SortOrder int64 `json:"sort_order,omitempty" xml:"sort_order,omitempty"`
	// 是否为父类目属性
	IsParent bool `json:"is_parent,omitempty" xml:"is_parent,omitempty"`
}

PropValue 结构体

type PropsModificationResult

type PropsModificationResult struct {
	// 变更日期
	Ds string `json:"ds,omitempty" xml:"ds,omitempty"`
	// 属性名称
	PropertyName string `json:"property_name,omitempty" xml:"property_name,omitempty"`
	// 类目属性Id
	PropertyId int64 `json:"property_id,omitempty" xml:"property_id,omitempty"`
	// 是否必填,0-否,1-是
	Required int64 `json:"required,omitempty" xml:"required,omitempty"`
	// 是否多选,0-否,1-是
	MultiSelect int64 `json:"multi_select,omitempty" xml:"multi_select,omitempty"`
	// 变更类型: 删除(1), 修改(2), 新增(3)
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
}

PropsModificationResult 结构体

type SellerAuthorize

type SellerAuthorize struct {
	// 类目列表
	ItemCats []ItemCat `json:"item_cats,omitempty" xml:"item_cats>item_cat,omitempty"`
	// 品牌列表
	Brands []Brand `json:"brands,omitempty" xml:"brands>brand,omitempty"`
	// 被授权的新品类目列表
	XinpinItemCats []ItemCat `json:"xinpin_item_cats,omitempty" xml:"xinpin_item_cats>item_cat,omitempty"`
}

SellerAuthorize 结构体

type TaobaoItemCatpropsModificationGetAPIRequest

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

TaobaoItemCatpropsModificationGetAPIRequest 查询商品类目属性变更 API请求 taobao.item.catprops.modification.get

查询商品类目属性变更信息

func NewTaobaoItemCatpropsModificationGetRequest

func NewTaobaoItemCatpropsModificationGetRequest() *TaobaoItemCatpropsModificationGetAPIRequest

NewTaobaoItemCatpropsModificationGetRequest 初始化TaobaoItemCatpropsModificationGetAPIRequest对象

func (TaobaoItemCatpropsModificationGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoItemCatpropsModificationGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoItemCatpropsModificationGetAPIRequest) GetCategoryId

GetCategoryId CategoryId Getter

func (TaobaoItemCatpropsModificationGetAPIRequest) GetItemId

GetItemId ItemId Getter

func (TaobaoItemCatpropsModificationGetAPIRequest) GetStartTime

GetStartTime StartTime Getter

func (*TaobaoItemCatpropsModificationGetAPIRequest) SetCategoryId

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

SetCategoryId is CategoryId Setter 类目Id(与商品Id二选一即可)

func (*TaobaoItemCatpropsModificationGetAPIRequest) SetItemId

SetItemId is ItemId Setter 商品Id(与类目Id二选一即可。若同时传入商品Id和类目Id,则优先使用商品Id。若填写商品Id,则起始时间设为该商品最近修改时间)

func (*TaobaoItemCatpropsModificationGetAPIRequest) SetStartTime

func (r *TaobaoItemCatpropsModificationGetAPIRequest) SetStartTime(_startTime string) error

SetStartTime is StartTime Setter 起始请求时间(建议传入,默认为90天内)

type TaobaoItemCatpropsModificationGetAPIResponse

type TaobaoItemCatpropsModificationGetAPIResponse struct {
	model.CommonResponse
	TaobaoItemCatpropsModificationGetAPIResponseModel
}

TaobaoItemCatpropsModificationGetAPIResponse 查询商品类目属性变更 API返回值 taobao.item.catprops.modification.get

查询商品类目属性变更信息

type TaobaoItemCatpropsModificationGetAPIResponseModel

type TaobaoItemCatpropsModificationGetAPIResponseModel struct {
	XMLName xml.Name `xml:"item_catprops_modification_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	Results []PropsModificationResult `json:"results,omitempty" xml:"results>props_modification_result,omitempty"`
}

TaobaoItemCatpropsModificationGetAPIResponseModel is 查询商品类目属性变更 成功返回结果

type TaobaoItemcatsAuthorizeGetAPIRequest

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

TaobaoItemcatsAuthorizeGetAPIRequest 查询商家被授权品牌列表和类目列表 API请求 taobao.itemcats.authorize.get

查询B商家被授权品牌列表、类目列表和 c 商家新品类目列表

func NewTaobaoItemcatsAuthorizeGetRequest

func NewTaobaoItemcatsAuthorizeGetRequest() *TaobaoItemcatsAuthorizeGetAPIRequest

NewTaobaoItemcatsAuthorizeGetRequest 初始化TaobaoItemcatsAuthorizeGetAPIRequest对象

func (TaobaoItemcatsAuthorizeGetAPIRequest) GetApiMethodName

func (r TaobaoItemcatsAuthorizeGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoItemcatsAuthorizeGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoItemcatsAuthorizeGetAPIRequest) GetFields

GetFields Fields Getter

func (*TaobaoItemcatsAuthorizeGetAPIRequest) SetFields

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

SetFields is Fields Setter 需要返回的字段。目前支持有:<br/>brand.vid, brand.name, <br/>item_cat.cid, item_cat.name, item_cat.status,item_cat.sort_order,item_cat.parent_cid,item_cat.is_parent,<br/>xinpin_item_cat.cid, <br/>xinpin_item_cat.name, <br/>xinpin_item_cat.status,<br/>xinpin_item_cat.sort_order,<br/>xinpin_item_cat.parent_cid,<br/>xinpin_item_cat.is_parent

type TaobaoItemcatsAuthorizeGetAPIResponse

type TaobaoItemcatsAuthorizeGetAPIResponse struct {
	model.CommonResponse
	TaobaoItemcatsAuthorizeGetAPIResponseModel
}

TaobaoItemcatsAuthorizeGetAPIResponse 查询商家被授权品牌列表和类目列表 API返回值 taobao.itemcats.authorize.get

查询B商家被授权品牌列表、类目列表和 c 商家新品类目列表

type TaobaoItemcatsAuthorizeGetAPIResponseModel

type TaobaoItemcatsAuthorizeGetAPIResponseModel struct {
	XMLName xml.Name `xml:"itemcats_authorize_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 里面有3个数组:<br/>Brand[]品牌列表,<br/>ItemCat[] 类目列表<br/>XinpinItemCat[] 针对于C卖家新品类目列表
	SellerAuthorize *SellerAuthorize `json:"seller_authorize,omitempty" xml:"seller_authorize,omitempty"`
}

TaobaoItemcatsAuthorizeGetAPIResponseModel is 查询商家被授权品牌列表和类目列表 成功返回结果

type TaobaoItemcatsGetAPIRequest

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

TaobaoItemcatsGetAPIRequest 获取后台供卖家发布商品的标准商品类目 API请求 taobao.itemcats.get

获取后台供卖家发布商品的标准商品类目。

func NewTaobaoItemcatsGetRequest

func NewTaobaoItemcatsGetRequest() *TaobaoItemcatsGetAPIRequest

NewTaobaoItemcatsGetRequest 初始化TaobaoItemcatsGetAPIRequest对象

func (TaobaoItemcatsGetAPIRequest) GetApiMethodName

func (r TaobaoItemcatsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoItemcatsGetAPIRequest) GetApiParams

func (r TaobaoItemcatsGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoItemcatsGetAPIRequest) GetCids

func (r TaobaoItemcatsGetAPIRequest) GetCids() []int64

GetCids Cids Getter

func (TaobaoItemcatsGetAPIRequest) GetFields

func (r TaobaoItemcatsGetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaoItemcatsGetAPIRequest) GetParentCid

func (r TaobaoItemcatsGetAPIRequest) GetParentCid() int64

GetParentCid ParentCid Getter

func (*TaobaoItemcatsGetAPIRequest) SetCids

func (r *TaobaoItemcatsGetAPIRequest) SetCids(_cids []int64) error

SetCids is Cids Setter 商品所属类目ID列表,用半角逗号(,)分隔 例如:(18957,19562,) (cids、parent_cid至少传一个)

func (*TaobaoItemcatsGetAPIRequest) SetFields

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

SetFields is Fields Setter 需要返回的字段列表,见ItemCat,默认返回:cid,parent_cid,name,is_parent;增量类目信息,根据fields传入的参数返回相应的结果。 features字段: 1、如果存在attr_key=freeze表示该类目被冻结了,attr_value=0,5,value可能存在2个值(也可能只有1个),用逗号分割,0表示禁编辑,5表示禁止发布

func (*TaobaoItemcatsGetAPIRequest) SetParentCid

func (r *TaobaoItemcatsGetAPIRequest) SetParentCid(_parentCid int64) error

SetParentCid is ParentCid Setter 父商品类目 id,0表示根节点, 传输该参数返回所有子类目。 (cids、parent_cid至少传一个)

type TaobaoItemcatsGetAPIResponse

type TaobaoItemcatsGetAPIResponse struct {
	model.CommonResponse
	TaobaoItemcatsGetAPIResponseModel
}

TaobaoItemcatsGetAPIResponse 获取后台供卖家发布商品的标准商品类目 API返回值 taobao.itemcats.get

获取后台供卖家发布商品的标准商品类目。

type TaobaoItemcatsGetAPIResponseModel

type TaobaoItemcatsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"itemcats_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 增量类目信息,根据fields传入的参数返回相应的结果;增量类目信息,根据fields传入的参数返回相应的结果。 features字段: 1、如果存在attr_key=freeze表示该类目被冻结了,attr_value=0,5,value可能存在2个值(也可能只有1个),用逗号分割,0表示禁编辑,5表示禁止发布
	ItemCats []ItemCat `json:"item_cats,omitempty" xml:"item_cats>item_cat,omitempty"`
	// 最近修改时间(如果取增量,会返回该字段)。
	LastModified string `json:"last_modified,omitempty" xml:"last_modified,omitempty"`
}

TaobaoItemcatsGetAPIResponseModel is 获取后台供卖家发布商品的标准商品类目 成功返回结果

type TaobaoItempropsGetAPIRequest

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

TaobaoItempropsGetAPIRequest 获取标准商品类目属性 API请求 taobao.itemprops.get

通过设置必要的参数,来获取商品后台标准类目属性,以及这些属性里面详细的属性值prop_values。

func NewTaobaoItempropsGetRequest

func NewTaobaoItempropsGetRequest() *TaobaoItempropsGetAPIRequest

NewTaobaoItempropsGetRequest 初始化TaobaoItempropsGetAPIRequest对象

func (TaobaoItempropsGetAPIRequest) GetApiMethodName

func (r TaobaoItempropsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoItempropsGetAPIRequest) GetApiParams

func (r TaobaoItempropsGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoItempropsGetAPIRequest) GetAttrKeys

func (r TaobaoItempropsGetAPIRequest) GetAttrKeys() []string

GetAttrKeys AttrKeys Getter

func (TaobaoItempropsGetAPIRequest) GetChildPath

func (r TaobaoItempropsGetAPIRequest) GetChildPath() string

GetChildPath ChildPath Getter

func (TaobaoItempropsGetAPIRequest) GetCid

GetCid Cid Getter

func (TaobaoItempropsGetAPIRequest) GetFields

func (r TaobaoItempropsGetAPIRequest) GetFields() string

GetFields Fields Getter

func (TaobaoItempropsGetAPIRequest) GetIsColorProp

func (r TaobaoItempropsGetAPIRequest) GetIsColorProp() bool

GetIsColorProp IsColorProp Getter

func (TaobaoItempropsGetAPIRequest) GetIsEnumProp

func (r TaobaoItempropsGetAPIRequest) GetIsEnumProp() bool

GetIsEnumProp IsEnumProp Getter

func (TaobaoItempropsGetAPIRequest) GetIsInputProp

func (r TaobaoItempropsGetAPIRequest) GetIsInputProp() bool

GetIsInputProp IsInputProp Getter

func (TaobaoItempropsGetAPIRequest) GetIsItemProp

func (r TaobaoItempropsGetAPIRequest) GetIsItemProp() bool

GetIsItemProp IsItemProp Getter

func (TaobaoItempropsGetAPIRequest) GetIsKeyProp

func (r TaobaoItempropsGetAPIRequest) GetIsKeyProp() bool

GetIsKeyProp IsKeyProp Getter

func (TaobaoItempropsGetAPIRequest) GetIsSaleProp

func (r TaobaoItempropsGetAPIRequest) GetIsSaleProp() bool

GetIsSaleProp IsSaleProp Getter

func (TaobaoItempropsGetAPIRequest) GetParentPid

func (r TaobaoItempropsGetAPIRequest) GetParentPid() int64

GetParentPid ParentPid Getter

func (TaobaoItempropsGetAPIRequest) GetPid

GetPid Pid Getter

func (TaobaoItempropsGetAPIRequest) GetType

func (r TaobaoItempropsGetAPIRequest) GetType() int64

GetType Type Getter

func (*TaobaoItempropsGetAPIRequest) SetAttrKeys

func (r *TaobaoItempropsGetAPIRequest) SetAttrKeys(_attrKeys []string) error

SetAttrKeys is AttrKeys Setter 属性的Key,支持多条,以“,”分隔

func (*TaobaoItempropsGetAPIRequest) SetChildPath

func (r *TaobaoItempropsGetAPIRequest) SetChildPath(_childPath string) error

SetChildPath is ChildPath Setter 类目子属性路径,由该子属性上层的类目属性和类目属性值组成,格式pid:vid;pid:vid.取类目子属性需要传child_path,cid

func (*TaobaoItempropsGetAPIRequest) SetCid

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

SetCid is Cid Setter 叶子类目ID,如果只传cid,则只返回一级属性,通过taobao.itemcats.get获得叶子类目ID

func (*TaobaoItempropsGetAPIRequest) SetFields

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

SetFields is Fields Setter 需要返回的字段列表,见:ItemProp,默认返回:pid, name, must, multi, prop_values

func (*TaobaoItempropsGetAPIRequest) SetIsColorProp

func (r *TaobaoItempropsGetAPIRequest) SetIsColorProp(_isColorProp bool) error

SetIsColorProp is IsColorProp Setter 是否颜色属性。可选值:true(是),false(否) (删除的属性不会匹配和返回这个条件)

func (*TaobaoItempropsGetAPIRequest) SetIsEnumProp

func (r *TaobaoItempropsGetAPIRequest) SetIsEnumProp(_isEnumProp bool) error

SetIsEnumProp is IsEnumProp Setter 是否枚举属性。可选值:true(是),false(否) (删除的属性不会匹配和返回这个条件)。如果返回true,属性值是下拉框选择输入,如果返回false,属性值是用户自行手工输入。

func (*TaobaoItempropsGetAPIRequest) SetIsInputProp

func (r *TaobaoItempropsGetAPIRequest) SetIsInputProp(_isInputProp bool) error

SetIsInputProp is IsInputProp Setter 在is_enum_prop是true的前提下,是否是卖家可以自行输入的属性(注:如果is_enum_prop返回false,该参数统一返回false)。可选值:true(是),false(否) (删除的属性不会匹配和返回这个条件)

func (*TaobaoItempropsGetAPIRequest) SetIsItemProp

func (r *TaobaoItempropsGetAPIRequest) SetIsItemProp(_isItemProp bool) error

SetIsItemProp is IsItemProp Setter 是否商品属性,这个属性只能放于发布商品时使用。可选值:true(是),false(否)

func (*TaobaoItempropsGetAPIRequest) SetIsKeyProp

func (r *TaobaoItempropsGetAPIRequest) SetIsKeyProp(_isKeyProp bool) error

SetIsKeyProp is IsKeyProp Setter 是否关键属性。可选值:true(是),false(否)

func (*TaobaoItempropsGetAPIRequest) SetIsSaleProp

func (r *TaobaoItempropsGetAPIRequest) SetIsSaleProp(_isSaleProp bool) error

SetIsSaleProp is IsSaleProp Setter 是否销售属性。可选值:true(是),false(否)

func (*TaobaoItempropsGetAPIRequest) SetParentPid

func (r *TaobaoItempropsGetAPIRequest) SetParentPid(_parentPid int64) error

SetParentPid is ParentPid Setter 父属性ID

func (*TaobaoItempropsGetAPIRequest) SetPid

func (r *TaobaoItempropsGetAPIRequest) SetPid(_pid int64) error

SetPid is Pid Setter 属性id (取类目属性时,传pid,不用同时传PID和parent_pid)

func (*TaobaoItempropsGetAPIRequest) SetType

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

SetType is Type Setter 获取类目的类型:1代表集市、2代表天猫

type TaobaoItempropsGetAPIResponse

type TaobaoItempropsGetAPIResponse struct {
	model.CommonResponse
	TaobaoItempropsGetAPIResponseModel
}

TaobaoItempropsGetAPIResponse 获取标准商品类目属性 API返回值 taobao.itemprops.get

通过设置必要的参数,来获取商品后台标准类目属性,以及这些属性里面详细的属性值prop_values。

type TaobaoItempropsGetAPIResponseModel

type TaobaoItempropsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"itemprops_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 类目属性信息(如果是取全量或者增量,不包括属性值),根据fields传入的参数返回相应的结果
	ItemProps []ItemProp `json:"item_props,omitempty" xml:"item_props>item_prop,omitempty"`
	// 最近修改时间(只有取全量或增量的时候会返回该字段)。格式:yyyy-MM-dd HH:mm:ss
	LastModified string `json:"last_modified,omitempty" xml:"last_modified,omitempty"`
}

TaobaoItempropsGetAPIResponseModel is 获取标准商品类目属性 成功返回结果

type TaobaoItempropvaluesGetAPIRequest

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

TaobaoItempropvaluesGetAPIRequest 获取标准类目属性值 API请求 taobao.itempropvalues.get

获取标准类目属性值

func NewTaobaoItempropvaluesGetRequest

func NewTaobaoItempropvaluesGetRequest() *TaobaoItempropvaluesGetAPIRequest

NewTaobaoItempropvaluesGetRequest 初始化TaobaoItempropvaluesGetAPIRequest对象

func (TaobaoItempropvaluesGetAPIRequest) GetApiMethodName

func (r TaobaoItempropvaluesGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoItempropvaluesGetAPIRequest) GetApiParams

func (r TaobaoItempropvaluesGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoItempropvaluesGetAPIRequest) GetAttrKeys

func (r TaobaoItempropvaluesGetAPIRequest) GetAttrKeys() []string

GetAttrKeys AttrKeys Getter

func (TaobaoItempropvaluesGetAPIRequest) GetCid

GetCid Cid Getter

func (TaobaoItempropvaluesGetAPIRequest) GetFields

func (r TaobaoItempropvaluesGetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaoItempropvaluesGetAPIRequest) GetPvs

GetPvs Pvs Getter

func (TaobaoItempropvaluesGetAPIRequest) GetType

GetType Type Getter

func (*TaobaoItempropvaluesGetAPIRequest) SetAttrKeys

func (r *TaobaoItempropvaluesGetAPIRequest) SetAttrKeys(_attrKeys []string) error

SetAttrKeys is AttrKeys Setter 属性的Key,支持多条,以“,”分隔

func (*TaobaoItempropvaluesGetAPIRequest) SetCid

SetCid is Cid Setter 叶子类目ID ,通过taobao.itemcats.get获得叶子类目ID

func (*TaobaoItempropvaluesGetAPIRequest) SetFields

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

SetFields is Fields Setter 需要返回的字段。目前支持有:cid,pid,prop_name,vid,name,name_alias,status,sort_order

func (*TaobaoItempropvaluesGetAPIRequest) SetPvs

SetPvs is Pvs Setter 属性和属性值 id串,格式例如(pid1;pid2)或(pid1:vid1;pid2:vid2)或(pid1;pid2:vid2)

func (*TaobaoItempropvaluesGetAPIRequest) SetType

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

SetType is Type Setter 获取类目的类型:1代表集市、2代表天猫

type TaobaoItempropvaluesGetAPIResponse

type TaobaoItempropvaluesGetAPIResponse struct {
	model.CommonResponse
	TaobaoItempropvaluesGetAPIResponseModel
}

TaobaoItempropvaluesGetAPIResponse 获取标准类目属性值 API返回值 taobao.itempropvalues.get

获取标准类目属性值

type TaobaoItempropvaluesGetAPIResponseModel

type TaobaoItempropvaluesGetAPIResponseModel struct {
	XMLName xml.Name `xml:"itempropvalues_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 属性值,根据fields传入的参数返回相应的结果
	PropValues []PropValue `json:"prop_values,omitempty" xml:"prop_values>prop_value,omitempty"`
	// 最近修改时间。格式:yyyy-MM-dd HH:mm:ss
	LastModified string `json:"last_modified,omitempty" xml:"last_modified,omitempty"`
}

TaobaoItempropvaluesGetAPIResponseModel is 获取标准类目属性值 成功返回结果

type TopImapItemDo

type TopImapItemDo struct {
	// 【非必填,能填则填】商品所在叶子类目类目路径名称列表,从一级到叶子
	SrcCatNamePathList []string `json:"src_cat_name_path_list,omitempty" xml:"src_cat_name_path_list>string,omitempty"`
	// 【非必填,能填则填】商品相关pv信息
	PvPairDoList []TopPVPairDo `json:"pv_pair_do_list,omitempty" xml:"pv_pair_do_list>top_pv_pair_do,omitempty"`
	// 非必填,能填则填】barccode列表
	BarcodeList []string `json:"barcode_list,omitempty" xml:"barcode_list>string,omitempty"`
	// 商品ID
	ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 【非必填,能填则填】商品品牌名称
	BrandName string `json:"brand_name,omitempty" xml:"brand_name,omitempty"`
	// 【必填】商品标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 【必填】目标渠道ID
	TargetChannelId int64 `json:"target_channel_id,omitempty" xml:"target_channel_id,omitempty"`
	// 【必填】源渠道ID
	SrcChannelId int64 `json:"src_channel_id,omitempty" xml:"src_channel_id,omitempty"`
	// 【非必填】
	TargetCategoryId int64 `json:"target_category_id,omitempty" xml:"target_category_id,omitempty"`
	// 【必填】商品所在叶子类目ID
	SrcCategoryId int64 `json:"src_category_id,omitempty" xml:"src_category_id,omitempty"`
}

TopImapItemDo 结构体

type TopImapResultDo

type TopImapResultDo struct {
	// 返回的pv对列表
	TopPvPairDoList []TopPVPairDo `json:"top_pv_pair_do_list,omitempty" xml:"top_pv_pair_do_list>top_pv_pair_do,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// true表示调用成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TopImapResultDo 结构体

type TopImapUnionCategoryPathDo

type TopImapUnionCategoryPathDo struct {
	// 叶子类目名称
	LeafCatName string `json:"leaf_cat_name,omitempty" xml:"leaf_cat_name,omitempty"`
	// 四级类目名称
	L4CatName string `json:"l4_cat_name,omitempty" xml:"l4_cat_name,omitempty"`
	// 二级类目名称
	L2CatName string `json:"l2_cat_name,omitempty" xml:"l2_cat_name,omitempty"`
	// 三级类目名称
	L3CatName string `json:"l3_cat_name,omitempty" xml:"l3_cat_name,omitempty"`
	// 五级类目名称
	L5CatName string `json:"l5_cat_name,omitempty" xml:"l5_cat_name,omitempty"`
	// 一级类目名称
	L1CatName string `json:"l1_cat_name,omitempty" xml:"l1_cat_name,omitempty"`
	// 五级类目ID
	L5CatId int64 `json:"l5_cat_id,omitempty" xml:"l5_cat_id,omitempty"`
	// 三级类目ID
	L3CatId int64 `json:"l3_cat_id,omitempty" xml:"l3_cat_id,omitempty"`
	// 叶子类目ID
	LeafCatId int64 `json:"leaf_cat_id,omitempty" xml:"leaf_cat_id,omitempty"`
	// 一级类目ID
	L1CatId int64 `json:"l1_cat_id,omitempty" xml:"l1_cat_id,omitempty"`
	// 四级类目ID
	L4CatId int64 `json:"l4_cat_id,omitempty" xml:"l4_cat_id,omitempty"`
	// 二级类目ID
	L2CatId int64 `json:"l2_cat_id,omitempty" xml:"l2_cat_id,omitempty"`
	// 渠道ID
	ChannelId int64 `json:"channel_id,omitempty" xml:"channel_id,omitempty"`
	// 是否叶子
	Leaf bool `json:"leaf,omitempty" xml:"leaf,omitempty"`
}

TopImapUnionCategoryPathDo 结构体

type TopPVPairDo

type TopPVPairDo struct {
	// 属性项名称
	PropertyName string `json:"property_name,omitempty" xml:"property_name,omitempty"`
	// 属性值名称
	ValueName string `json:"value_name,omitempty" xml:"value_name,omitempty"`
	// 属性值ID
	ValueId int64 `json:"value_id,omitempty" xml:"value_id,omitempty"`
	// 属性项ID
	PropertyId int64 `json:"property_id,omitempty" xml:"property_id,omitempty"`
}

TopPVPairDo 结构体

type WholesaleCategory

type WholesaleCategory struct {
	// 类目路径
	Paths []string `json:"paths,omitempty" xml:"paths>string,omitempty"`
	// 类目节点map
	NodeMap string `json:"node_map,omitempty" xml:"node_map,omitempty"`
}

WholesaleCategory 结构体

type WholesaleCategoryOpenResult

type WholesaleCategoryOpenResult struct {
	// result_memo 返回结果描述 例如 “success”
	ResultMemo string `json:"result_memo,omitempty" xml:"result_memo,omitempty"`
	// result_code 返回码 例如200表示成功
	ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 具体类目信息
	Result *WholesaleCategory `json:"result,omitempty" xml:"result,omitempty"`
}

WholesaleCategoryOpenResult 结构体

Jump to

Keyboard shortcuts

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