category

package
v1.3.2 Latest Latest
Warning

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

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

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaimapcategorypredictAPIRequest added in v1.3.1

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

func NewAlibabaimapcategorypredictRequest() *AlibabaimapcategorypredictAPIRequest

NewAlibabaimapcategorypredictRequest 初始化AlibabaimapcategorypredictAPIRequest对象

func (AlibabaimapcategorypredictAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaimapcategorypredictAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaimapcategorypredictAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaimapcategorypredictAPIRequest) GetFixedMappingAppInfo added in v1.3.1

func (r AlibabaimapcategorypredictAPIRequest) GetFixedMappingAppInfo() *FixedMappingAppInfo

GetFixedMappingAppInfo FixedMappingAppInfo Getter

func (AlibabaimapcategorypredictAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaimapcategorypredictAPIRequest) GetTopImapItemDo added in v1.3.1

GetTopImapItemDo TopImapItemDo Getter

func (*AlibabaimapcategorypredictAPIRequest) SetFixedMappingAppInfo added in v1.3.1

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

SetFixedMappingAppInfo is FixedMappingAppInfo Setter 账号信息

func (*AlibabaimapcategorypredictAPIRequest) SetTopImapItemDo added in v1.3.1

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

SetTopImapItemDo is TopImapItemDo Setter 入参DO

type AlibabaimapcategorypredictAPIResponse added in v1.3.1

type AlibabaimapcategorypredictAPIResponse struct {
	model.CommonResponse
	AlibabaimapcategorypredictAPIResponseModel
}

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

* 类目预测接口

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

type AlibabaimapcategorypredictAPIResponseModel added in v1.3.1

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

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

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

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

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

func NewAlibabaimapfixedmappingqueryRequest added in v1.3.1

func NewAlibabaimapfixedmappingqueryRequest() *AlibabaimapfixedmappingqueryAPIRequest

NewAlibabaimapfixedmappingqueryRequest 初始化AlibabaimapfixedmappingqueryAPIRequest对象

func (AlibabaimapfixedmappingqueryAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaimapfixedmappingqueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaimapfixedmappingqueryAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaimapfixedmappingqueryAPIRequest) GetAppName added in v1.3.1

GetAppName AppName Getter

func (AlibabaimapfixedmappingqueryAPIRequest) GetPassword added in v1.3.1

GetPassword Password Getter

func (AlibabaimapfixedmappingqueryAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaimapfixedmappingqueryAPIRequest) GetSrcCategoryId added in v1.3.1

func (r AlibabaimapfixedmappingqueryAPIRequest) GetSrcCategoryId() int64

GetSrcCategoryId SrcCategoryId Getter

func (AlibabaimapfixedmappingqueryAPIRequest) GetSrcChannelId added in v1.3.1

func (r AlibabaimapfixedmappingqueryAPIRequest) GetSrcChannelId() int64

GetSrcChannelId SrcChannelId Getter

func (AlibabaimapfixedmappingqueryAPIRequest) GetTargetCategoryId added in v1.3.1

func (r AlibabaimapfixedmappingqueryAPIRequest) GetTargetCategoryId() int64

GetTargetCategoryId TargetCategoryId Getter

func (AlibabaimapfixedmappingqueryAPIRequest) GetTargetChannelIdList added in v1.3.1

func (r AlibabaimapfixedmappingqueryAPIRequest) GetTargetChannelIdList() []int64

GetTargetChannelIdList TargetChannelIdList Getter

func (*AlibabaimapfixedmappingqueryAPIRequest) SetAppName added in v1.3.1

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

SetAppName is AppName Setter 账号

func (*AlibabaimapfixedmappingqueryAPIRequest) SetPassword added in v1.3.1

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

SetPassword is Password Setter 密码

func (*AlibabaimapfixedmappingqueryAPIRequest) SetSrcCategoryId added in v1.3.1

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

SetSrcCategoryId is SrcCategoryId Setter 源类目ID

func (*AlibabaimapfixedmappingqueryAPIRequest) SetSrcChannelId added in v1.3.1

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

SetSrcChannelId is SrcChannelId Setter 源渠道ID

func (*AlibabaimapfixedmappingqueryAPIRequest) SetTargetCategoryId added in v1.3.1

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

SetTargetCategoryId is TargetCategoryId Setter 目标渠道ID

func (*AlibabaimapfixedmappingqueryAPIRequest) SetTargetChannelIdList added in v1.3.1

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

SetTargetChannelIdList is TargetChannelIdList Setter 目标渠道ID列表

type AlibabaimapfixedmappingqueryAPIResponse added in v1.3.1

type AlibabaimapfixedmappingqueryAPIResponse struct {
	model.CommonResponse
	AlibabaimapfixedmappingqueryAPIResponseModel
}

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

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

type AlibabaimapfixedmappingqueryAPIResponseModel added in v1.3.1

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

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

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

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

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

func NewAlibabaimappvautofillRequest added in v1.3.1

func NewAlibabaimappvautofillRequest() *AlibabaimappvautofillAPIRequest

NewAlibabaimappvautofillRequest 初始化AlibabaimappvautofillAPIRequest对象

func (AlibabaimappvautofillAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaimappvautofillAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaimappvautofillAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaimappvautofillAPIRequest) GetRawParams added in v1.3.1

func (r AlibabaimappvautofillAPIRequest) GetRawParams() model.Params

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

func (AlibabaimappvautofillAPIRequest) GetTopImapItemDo added in v1.3.1

func (r AlibabaimappvautofillAPIRequest) GetTopImapItemDo() *TopImapItemDo

GetTopImapItemDo TopImapItemDo Getter

func (*AlibabaimappvautofillAPIRequest) SetTopImapItemDo added in v1.3.1

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

SetTopImapItemDo is TopImapItemDo Setter 系统入参

type AlibabaimappvautofillAPIResponse added in v1.3.1

type AlibabaimappvautofillAPIResponse struct {
	model.CommonResponse
	AlibabaimappvautofillAPIResponseModel
}

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

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

type AlibabaimappvautofillAPIResponseModel added in v1.3.1

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 AliexpresssocialdiscategorygetAPIRequest added in v1.3.1

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

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

AE展示类目获取接口

func NewAliexpresssocialdiscategorygetRequest added in v1.3.1

func NewAliexpresssocialdiscategorygetRequest() *AliexpresssocialdiscategorygetAPIRequest

NewAliexpresssocialdiscategorygetRequest 初始化AliexpresssocialdiscategorygetAPIRequest对象

func (AliexpresssocialdiscategorygetAPIRequest) GetApiMethodName added in v1.3.1

func (r AliexpresssocialdiscategorygetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliexpresssocialdiscategorygetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AliexpresssocialdiscategorygetAPIRequest) GetLocale added in v1.3.1

GetLocale Locale Getter

func (AliexpresssocialdiscategorygetAPIRequest) GetRawParams added in v1.3.1

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

func (*AliexpresssocialdiscategorygetAPIRequest) SetLocale added in v1.3.1

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

type AliexpresssocialdiscategorygetAPIResponse added in v1.3.1

type AliexpresssocialdiscategorygetAPIResponse struct {
	model.CommonResponse
	AliexpresssocialdiscategorygetAPIResponseModel
}

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

AE展示类目获取接口

type AliexpresssocialdiscategorygetAPIResponseModel added in v1.3.1

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 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 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"`
	// 商品类目结构
	XinpinItemCats []ItemCat `json:"xinpin_item_cats,omitempty" xml:"xinpin_item_cats>item_cat,omitempty"`
	// 品牌
	Brands []Brand `json:"brands,omitempty" xml:"brands>brand,omitempty"`
}

SellerAuthorize 结构体

type TaobaoitemcatpropsmodificationgetAPIRequest added in v1.3.1

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

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

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

func NewTaobaoitemcatpropsmodificationgetRequest added in v1.3.1

func NewTaobaoitemcatpropsmodificationgetRequest() *TaobaoitemcatpropsmodificationgetAPIRequest

NewTaobaoitemcatpropsmodificationgetRequest 初始化TaobaoitemcatpropsmodificationgetAPIRequest对象

func (TaobaoitemcatpropsmodificationgetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemcatpropsmodificationgetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemcatpropsmodificationgetAPIRequest) GetCategoryId added in v1.3.1

GetCategoryId CategoryId Getter

func (TaobaoitemcatpropsmodificationgetAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (TaobaoitemcatpropsmodificationgetAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoitemcatpropsmodificationgetAPIRequest) GetStartTime added in v1.3.1

GetStartTime StartTime Getter

func (*TaobaoitemcatpropsmodificationgetAPIRequest) SetCategoryId added in v1.3.1

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

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

func (*TaobaoitemcatpropsmodificationgetAPIRequest) SetItemId added in v1.3.1

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

func (*TaobaoitemcatpropsmodificationgetAPIRequest) SetStartTime added in v1.3.1

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

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

type TaobaoitemcatpropsmodificationgetAPIResponse added in v1.3.1

type TaobaoitemcatpropsmodificationgetAPIResponse struct {
	model.CommonResponse
	TaobaoitemcatpropsmodificationgetAPIResponseModel
}

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

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

type TaobaoitemcatpropsmodificationgetAPIResponseModel added in v1.3.1

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

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

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

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

func NewTaobaoitemcatsauthorizegetRequest added in v1.3.1

func NewTaobaoitemcatsauthorizegetRequest() *TaobaoitemcatsauthorizegetAPIRequest

NewTaobaoitemcatsauthorizegetRequest 初始化TaobaoitemcatsauthorizegetAPIRequest对象

func (TaobaoitemcatsauthorizegetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemcatsauthorizegetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemcatsauthorizegetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemcatsauthorizegetAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (TaobaoitemcatsauthorizegetAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoitemcatsauthorizegetAPIRequest) SetFields added in v1.3.1

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

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

type TaobaoitemcatsauthorizegetAPIResponse added in v1.3.1

type TaobaoitemcatsauthorizegetAPIResponse struct {
	model.CommonResponse
	TaobaoitemcatsauthorizegetAPIResponseModel
}

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

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

type TaobaoitemcatsauthorizegetAPIResponseModel added in v1.3.1

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

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

type TaobaoitemcatsgetAPIRequest added in v1.3.1

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

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

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

func NewTaobaoitemcatsgetRequest added in v1.3.1

func NewTaobaoitemcatsgetRequest() *TaobaoitemcatsgetAPIRequest

NewTaobaoitemcatsgetRequest 初始化TaobaoitemcatsgetAPIRequest对象

func (TaobaoitemcatsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoitemcatsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoitemcatsgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoitemcatsgetAPIRequest) GetCids added in v1.3.1

func (r TaobaoitemcatsgetAPIRequest) GetCids() []int64

GetCids Cids Getter

func (TaobaoitemcatsgetAPIRequest) GetDatetime added in v1.3.1

func (r TaobaoitemcatsgetAPIRequest) GetDatetime() string

GetDatetime Datetime Getter

func (TaobaoitemcatsgetAPIRequest) GetFields added in v1.3.1

func (r TaobaoitemcatsgetAPIRequest) GetFields() []string

GetFields Fields Getter

func (TaobaoitemcatsgetAPIRequest) GetParentCid added in v1.3.1

func (r TaobaoitemcatsgetAPIRequest) GetParentCid() int64

GetParentCid ParentCid Getter

func (TaobaoitemcatsgetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoitemcatsgetAPIRequest) GetRawParams() model.Params

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

func (*TaobaoitemcatsgetAPIRequest) SetCids added in v1.3.1

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

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

func (*TaobaoitemcatsgetAPIRequest) SetDatetime added in v1.3.1

func (r *TaobaoitemcatsgetAPIRequest) SetDatetime(_datetime string) error

SetDatetime is Datetime Setter 无效字段,暂无法使用。时间戳(格式:yyyy-MM-dd HH:mm:ss)如果该字段没有传,则取当前所有的类目信息,如果传了parent_cid或者cids,则忽略datetime,如果该字段传了,那么可以查询到该时间到现在为止的增量变化

func (*TaobaoitemcatsgetAPIRequest) SetFields added in v1.3.1

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

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

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

type TaobaoitemcatsgetAPIResponse added in v1.3.1

type TaobaoitemcatsgetAPIResponse struct {
	model.CommonResponse
	TaobaoitemcatsgetAPIResponseModel
}

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

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

type TaobaoitemcatsgetAPIResponseModel added in v1.3.1

type TaobaoitemcatsgetAPIResponseModel struct {
	XMLName xml.Name `xml:"itemcats_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品类目结构
	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 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_pvpair_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_pvpair_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 added in v1.3.1

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

Jump to

Keyboard shortcuts

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