shop

package
v1.2.1 Latest Latest
Warning

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

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

Documentation

Overview

店铺API model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaDataCouponGetAPIRequest added in v1.2.0

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

获取优惠券信息 API请求 alibaba.data.coupon.get

获取优惠券信息,仅作客户端鉴权虚拟api使用

func NewAlibabaDataCouponGetRequest

func NewAlibabaDataCouponGetRequest() *AlibabaDataCouponGetAPIRequest

NewAlibabaDataCouponGetRequest 初始化AlibabaDataCouponGetAPIRequest对象

func (AlibabaDataCouponGetAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaDataCouponGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaDataCouponGetAPIRequest) GetApiParams added in v1.2.0

func (r AlibabaDataCouponGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaDataCouponGetAPIRequest) GetUnNamed added in v1.2.0

func (r AlibabaDataCouponGetAPIRequest) GetUnNamed() string

Get UnNamed Getter

func (*AlibabaDataCouponGetAPIRequest) SetUnNamed added in v1.2.0

func (r *AlibabaDataCouponGetAPIRequest) SetUnNamed(_unNamed string) error

Set is UnNamed Setter 客户端鉴权虚拟api使用

type AlibabaDataCouponGetAPIResponse

type AlibabaDataCouponGetAPIResponse struct {
	model.CommonResponse
	AlibabaDataCouponGetAPIResponseModel
}
AlibabaDataCouponGetAPIResponse

获取优惠券信息 API返回值 alibaba.data.coupon.get

获取优惠券信息,仅作客户端鉴权虚拟api使用

type AlibabaDataCouponGetAPIResponseModel added in v1.2.0

type AlibabaDataCouponGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_data_coupon_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// unnamed
	Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"`
}

AlibabaDataCouponGetAPIResponseModel is 获取优惠券信息 成功返回结果

type AlibabaDataItemGetAPIRequest added in v1.2.0

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

获取商品 API请求 alibaba.data.item.get

获取商品信息,作为客户端Weex鉴权的虚拟api

func NewAlibabaDataItemGetRequest

func NewAlibabaDataItemGetRequest() *AlibabaDataItemGetAPIRequest

NewAlibabaDataItemGetRequest 初始化AlibabaDataItemGetAPIRequest对象

func (AlibabaDataItemGetAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaDataItemGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaDataItemGetAPIRequest) GetApiParams added in v1.2.0

func (r AlibabaDataItemGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaDataItemGetAPIRequest) GetUnNamed added in v1.2.0

func (r AlibabaDataItemGetAPIRequest) GetUnNamed() string

Get UnNamed Getter

func (*AlibabaDataItemGetAPIRequest) SetUnNamed added in v1.2.0

func (r *AlibabaDataItemGetAPIRequest) SetUnNamed(_unNamed string) error

Set is UnNamed Setter 获取商品信息,作为客户端Weex鉴权的虚拟api

type AlibabaDataItemGetAPIResponse

type AlibabaDataItemGetAPIResponse struct {
	model.CommonResponse
	AlibabaDataItemGetAPIResponseModel
}
AlibabaDataItemGetAPIResponse

获取商品 API返回值 alibaba.data.item.get

获取商品信息,作为客户端Weex鉴权的虚拟api

type AlibabaDataItemGetAPIResponseModel added in v1.2.0

type AlibabaDataItemGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_data_item_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 获取商品信息,作为客户端Weex鉴权的虚拟api
	Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"`
}

AlibabaDataItemGetAPIResponseModel is 获取商品 成功返回结果

type AlibabaDataRecommondGetAPIRequest added in v1.2.0

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

获取推荐信息 API请求 alibaba.data.recommond.get

获取优惠券信息,仅作客户端鉴权虚拟api使用

func NewAlibabaDataRecommondGetRequest

func NewAlibabaDataRecommondGetRequest() *AlibabaDataRecommondGetAPIRequest

NewAlibabaDataRecommondGetRequest 初始化AlibabaDataRecommondGetAPIRequest对象

func (AlibabaDataRecommondGetAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaDataRecommondGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaDataRecommondGetAPIRequest) GetApiParams added in v1.2.0

func (r AlibabaDataRecommondGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaDataRecommondGetAPIRequest) GetUnNamed added in v1.2.0

Get UnNamed Getter

func (*AlibabaDataRecommondGetAPIRequest) SetUnNamed added in v1.2.0

func (r *AlibabaDataRecommondGetAPIRequest) SetUnNamed(_unNamed string) error

Set is UnNamed Setter 客户端鉴权虚拟api使用

type AlibabaDataRecommondGetAPIResponse

type AlibabaDataRecommondGetAPIResponse struct {
	model.CommonResponse
	AlibabaDataRecommondGetAPIResponseModel
}
AlibabaDataRecommondGetAPIResponse

获取推荐信息 API返回值 alibaba.data.recommond.get

获取优惠券信息,仅作客户端鉴权虚拟api使用

type AlibabaDataRecommondGetAPIResponseModel added in v1.2.0

type AlibabaDataRecommondGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_data_recommond_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 客户端鉴权虚拟api使用
	Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"`
}

AlibabaDataRecommondGetAPIResponseModel is 获取推荐信息 成功返回结果

type AlibabaInteractSensorClipbroadAPIRequest added in v1.2.0

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

Weex页面设置或读取剪切板 API请求 alibaba.interact.sensor.clipbroad

Weex页面设置或读取剪切板

func NewAlibabaInteractSensorClipbroadRequest

func NewAlibabaInteractSensorClipbroadRequest() *AlibabaInteractSensorClipbroadAPIRequest

NewAlibabaInteractSensorClipbroadRequest 初始化AlibabaInteractSensorClipbroadAPIRequest对象

func (AlibabaInteractSensorClipbroadAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaInteractSensorClipbroadAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaInteractSensorClipbroadAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaInteractSensorClipbroadAPIRequest) GetUnNamed added in v1.2.0

Get UnNamed Getter

func (*AlibabaInteractSensorClipbroadAPIRequest) SetUnNamed added in v1.2.0

func (r *AlibabaInteractSensorClipbroadAPIRequest) SetUnNamed(_unNamed string) error

Set is UnNamed Setter 客户端鉴权使用,实际不会发送或接收数据

type AlibabaInteractSensorClipbroadAPIResponse

type AlibabaInteractSensorClipbroadAPIResponse struct {
	model.CommonResponse
	AlibabaInteractSensorClipbroadAPIResponseModel
}
AlibabaInteractSensorClipbroadAPIResponse

Weex页面设置或读取剪切板 API返回值 alibaba.interact.sensor.clipbroad

Weex页面设置或读取剪切板

type AlibabaInteractSensorClipbroadAPIResponseModel added in v1.2.0

type AlibabaInteractSensorClipbroadAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_interact_sensor_clipbroad_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 客户端鉴权使用,实际不会发送或接收数据
	Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"`
}

AlibabaInteractSensorClipbroadAPIResponseModel is Weex页面设置或读取剪切板 成功返回结果

type AlibabaInteractWindvaneCallAPIRequest added in v1.2.0

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

Weex页面调用windvane API请求 alibaba.interact.windvane.call

客户端鉴权使用,实际不会发送或接收数据

func NewAlibabaInteractWindvaneCallRequest

func NewAlibabaInteractWindvaneCallRequest() *AlibabaInteractWindvaneCallAPIRequest

NewAlibabaInteractWindvaneCallRequest 初始化AlibabaInteractWindvaneCallAPIRequest对象

func (AlibabaInteractWindvaneCallAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaInteractWindvaneCallAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaInteractWindvaneCallAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaInteractWindvaneCallAPIRequest) GetUnNamed added in v1.2.0

Get UnNamed Getter

func (*AlibabaInteractWindvaneCallAPIRequest) SetUnNamed added in v1.2.0

func (r *AlibabaInteractWindvaneCallAPIRequest) SetUnNamed(_unNamed string) error

Set is UnNamed Setter 客户端鉴权使用,实际不会发送或接收数据

type AlibabaInteractWindvaneCallAPIResponse

type AlibabaInteractWindvaneCallAPIResponse struct {
	model.CommonResponse
	AlibabaInteractWindvaneCallAPIResponseModel
}
AlibabaInteractWindvaneCallAPIResponse

Weex页面调用windvane API返回值 alibaba.interact.windvane.call

客户端鉴权使用,实际不会发送或接收数据

type AlibabaInteractWindvaneCallAPIResponseModel added in v1.2.0

type AlibabaInteractWindvaneCallAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_interact_windvane_call_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 客户端鉴权使用,实际不会发送或接收数据
	Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"`
}

AlibabaInteractWindvaneCallAPIResponseModel is Weex页面调用windvane 成功返回结果

type AlibabaKoubeishopsPropertyGetAPIRequest added in v1.2.0

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

口碑店铺列表推荐 API请求 alibaba.koubeishops.property.get

推荐用户附近的美食门店

func NewAlibabaKoubeishopsPropertyGetRequest

func NewAlibabaKoubeishopsPropertyGetRequest() *AlibabaKoubeishopsPropertyGetAPIRequest

NewAlibabaKoubeishopsPropertyGetRequest 初始化AlibabaKoubeishopsPropertyGetAPIRequest对象

func (AlibabaKoubeishopsPropertyGetAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaKoubeishopsPropertyGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaKoubeishopsPropertyGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaKoubeishopsPropertyGetAPIRequest) GetParamOpenApiSearchRequest added in v1.2.0

func (r AlibabaKoubeishopsPropertyGetAPIRequest) GetParamOpenApiSearchRequest() *OpenApiSearchRequest

Get ParamOpenApiSearchRequest Getter

func (*AlibabaKoubeishopsPropertyGetAPIRequest) SetParamOpenApiSearchRequest added in v1.2.0

func (r *AlibabaKoubeishopsPropertyGetAPIRequest) SetParamOpenApiSearchRequest(_paramOpenApiSearchRequest *OpenApiSearchRequest) error

Set is ParamOpenApiSearchRequest Setter 入参

type AlibabaKoubeishopsPropertyGetAPIResponse

type AlibabaKoubeishopsPropertyGetAPIResponse struct {
	model.CommonResponse
	AlibabaKoubeishopsPropertyGetAPIResponseModel
}
AlibabaKoubeishopsPropertyGetAPIResponse

口碑店铺列表推荐 API返回值 alibaba.koubeishops.property.get

推荐用户附近的美食门店

type AlibabaKoubeishopsPropertyGetAPIResponseModel added in v1.2.0

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

AlibabaKoubeishopsPropertyGetAPIResponseModel is 口碑店铺列表推荐 成功返回结果

type AlibabaTaobaoShopCatNeoGetAPIRequest added in v1.2.0

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

店铺mtop接口鉴权虚拟api API请求 alibaba.taobao.shop.cat.neo.get

获取优惠券信息,仅作客户端鉴权虚拟api使用

func NewAlibabaTaobaoShopCatNeoGetRequest

func NewAlibabaTaobaoShopCatNeoGetRequest() *AlibabaTaobaoShopCatNeoGetAPIRequest

NewAlibabaTaobaoShopCatNeoGetRequest 初始化AlibabaTaobaoShopCatNeoGetAPIRequest对象

func (AlibabaTaobaoShopCatNeoGetAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaTaobaoShopCatNeoGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaTaobaoShopCatNeoGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaTaobaoShopCatNeoGetAPIRequest) GetUnNamed added in v1.2.0

Get UnNamed Getter

func (*AlibabaTaobaoShopCatNeoGetAPIRequest) SetUnNamed added in v1.2.0

func (r *AlibabaTaobaoShopCatNeoGetAPIRequest) SetUnNamed(_unNamed string) error

Set is UnNamed Setter 客户端鉴权虚拟api

type AlibabaTaobaoShopCatNeoGetAPIResponse

type AlibabaTaobaoShopCatNeoGetAPIResponse struct {
	model.CommonResponse
	AlibabaTaobaoShopCatNeoGetAPIResponseModel
}
AlibabaTaobaoShopCatNeoGetAPIResponse

店铺mtop接口鉴权虚拟api API返回值 alibaba.taobao.shop.cat.neo.get

获取优惠券信息,仅作客户端鉴权虚拟api使用

type AlibabaTaobaoShopCatNeoGetAPIResponseModel added in v1.2.0

type AlibabaTaobaoShopCatNeoGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_taobao_shop_cat_neo_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 客户端鉴权虚拟api
	Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"`
}

AlibabaTaobaoShopCatNeoGetAPIResponseModel is 店铺mtop接口鉴权虚拟api 成功返回结果

type OpenApiHit

type OpenApiHit struct {
	// 店铺ID
	BizId string `json:"biz_id,omitempty" xml:"biz_id,omitempty"`
	// 描述
	Desc string `json:"desc,omitempty" xml:"desc,omitempty"`
	// 店铺ID
	EntityId string `json:"entity_id,omitempty" xml:"entity_id,omitempty"`
	// 店铺类型
	EntityType string `json:"entity_type,omitempty" xml:"entity_type,omitempty"`
	// 优先级
	Priority int64 `json:"priority,omitempty" xml:"priority,omitempty"`
	// 店铺信息字段
	RecmAttrs string `json:"recm_attrs,omitempty" xml:"recm_attrs,omitempty"`
	// 固定值
	RuleId string `json:"rule_id,omitempty" xml:"rule_id,omitempty"`
	// 排序权重
	Weight string `json:"weight,omitempty" xml:"weight,omitempty"`
}

OpenApiHit 结构体

type OpenApiSearchRequest

type OpenApiSearchRequest struct {
	// 渠道版本 alipay,koubei,eleme,gaode,taobao
	App string `json:"app,omitempty" xml:"app,omitempty"`
	// 所选城市
	CityId string `json:"city_id,omitempty" xml:"city_id,omitempty"`
	// 客户端
	ClientOs string `json:"client_os,omitempty" xml:"client_os,omitempty"`
	// 客户端版本
	ClientVersion string `json:"client_version,omitempty" xml:"client_version,omitempty"`
	// 客户端上下文
	Context string `json:"context,omitempty" xml:"context,omitempty"`
	// 所选城市
	CurrentCity string `json:"current_city,omitempty" xml:"current_city,omitempty"`
	// 所选区
	CurrentDistrict string `json:"current_district,omitempty" xml:"current_district,omitempty"`
	// 省
	CurrentProvince string `json:"current_province,omitempty" xml:"current_province,omitempty"`
	// 固定值
	Forward bool `json:"forward,omitempty" xml:"forward,omitempty"`
	// 纬度
	Latitude string `json:"latitude,omitempty" xml:"latitude,omitempty"`
	// 所在商圈
	LbsBusiAreaId string `json:"lbs_busi_area_id,omitempty" xml:"lbs_busi_area_id,omitempty"`
	// 所在城市
	LbsCityId string `json:"lbs_city_id,omitempty" xml:"lbs_city_id,omitempty"`
	// 所在区
	LbsDistrictId string `json:"lbs_district_id,omitempty" xml:"lbs_district_id,omitempty"`
	// 经纬度精度
	LocationAccuracy string `json:"location_accuracy,omitempty" xml:"location_accuracy,omitempty"`
	// 经度
	Longitude string `json:"longitude,omitempty" xml:"longitude,omitempty"`
	// 个数
	OriginalSize int64 `json:"original_size,omitempty" xml:"original_size,omitempty"`
	// OS 版本
	OsVersion string `json:"os_version,omitempty" xml:"os_version,omitempty"`
	// 扩展参数
	ParamsMap string `json:"params_map,omitempty" xml:"params_map,omitempty"`
	// 埋点ID
	PlaceId string `json:"place_id,omitempty" xml:"place_id,omitempty"`
	// 关键词
	Query string `json:"query,omitempty" xml:"query,omitempty"`
	// 请求ID
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 场景吗
	SceneId string `json:"scene_id,omitempty" xml:"scene_id,omitempty"`
	// 搜索ID
	SearchId string `json:"search_id,omitempty" xml:"search_id,omitempty"`
	// 菜单项
	SelectedMenus string `json:"selected_menus,omitempty" xml:"selected_menus,omitempty"`
	// sessionid
	SessionId string `json:"session_id,omitempty" xml:"session_id,omitempty"`
	// 个数
	Size int64 `json:"size,omitempty" xml:"size,omitempty"`
	// 排序
	Sort string `json:"sort,omitempty" xml:"sort,omitempty"`
	// 来源埋点
	SrcSpm string `json:"src_spm,omitempty" xml:"src_spm,omitempty"`
	// 分页
	Start int64 `json:"start,omitempty" xml:"start,omitempty"`
	// 搜索TOKEN
	TokenId string `json:"token_id,omitempty" xml:"token_id,omitempty"`
	// traceID
	Trace string `json:"trace,omitempty" xml:"trace,omitempty"`
	// 用户ID
	Uid string `json:"uid,omitempty" xml:"uid,omitempty"`
}

OpenApiSearchRequest 结构体

type OpenApiSearchResult

type OpenApiSearchResult struct {
	// 固定值
	BucketId string `json:"bucket_id,omitempty" xml:"bucket_id,omitempty"`
	// 固定值
	Context string `json:"context,omitempty" xml:"context,omitempty"`
	// 个数
	Count int64 `json:"count,omitempty" xml:"count,omitempty"`
	// 扩展值
	ExtAttrs string `json:"ext_attrs,omitempty" xml:"ext_attrs,omitempty"`
	// 店铺信息
	Items []OpenApiHit `json:"items,omitempty" xml:"items>open_api_hit,omitempty"`
	// 关键词
	Query string `json:"query,omitempty" xml:"query,omitempty"`
	// 请求ID
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果ID
	ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 结果
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// 固定值
	SearchGroup string `json:"search_group,omitempty" xml:"search_group,omitempty"`
	// 搜索ID
	SearchId string `json:"search_id,omitempty" xml:"search_id,omitempty"`
	// 固定值
	SearchParams string `json:"search_params,omitempty" xml:"search_params,omitempty"`
	// sessionID
	SessionId string `json:"session_id,omitempty" xml:"session_id,omitempty"`
	// 店铺个数
	Total int64 `json:"total,omitempty" xml:"total,omitempty"`
}

OpenApiSearchResult 结构体

type SellerCat

type SellerCat struct {
	// 卖家自定义类目编号
	Cid int64 `json:"cid,omitempty" xml:"cid,omitempty"`
	// 父类目编号,值等于0:表示此类目为店铺下的一级类目,值不等于0:表示此类目有父类目
	ParentCid int64 `json:"parent_cid,omitempty" xml:"parent_cid,omitempty"`
	// 卖家自定义类目名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 链接图片地址
	PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"`
	// 该类目在页面上的排序位置
	SortOrder int64 `json:"sort_order,omitempty" xml:"sort_order,omitempty"`
	// 店铺类目类型:可选值:manual_type:手动分类,new_type:新品上价, tree_type:二三级类目树 ,property_type:属性叶子类目树, brand_type:品牌推广
	Type string `json:"type,omitempty" xml:"type,omitempty"`
}

SellerCat 结构体

type Shop

type Shop struct {
	// 店铺编号
	Sid int64 `json:"sid,omitempty" xml:"sid,omitempty"`
	// 店铺标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 店标地址。返回相对路径,可以用"http://logo.taobao.com/shop-logo"来拼接成绝对路径
	PicPath string `json:"pic_path,omitempty" xml:"pic_path,omitempty"`
	// 最后修改时间。格式:yyyy-MM-dd HH:mm:ss
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
}

Shop 结构体

type ShopCat

type ShopCat struct {
	// 类目编号
	Cid int64 `json:"cid,omitempty" xml:"cid,omitempty"`
	// 父类目编号,注:此类目指前台类目,值等于0:表示此类目为一级类目,值不等于0:表示此类目有父类目
	ParentCid int64 `json:"parent_cid,omitempty" xml:"parent_cid,omitempty"`
	// 类目名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 该类目是否为父类目。即:该类目是否还有子类目
	IsParent bool `json:"is_parent,omitempty" xml:"is_parent,omitempty"`
}

ShopCat 结构体

type TaobaoSellercatsListAddAPIRequest added in v1.2.0

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

添加卖家自定义类目 API请求 taobao.sellercats.list.add

此API添加卖家店铺内自定义类目 <br/>父类目parent_cid值等于0:表示此类目为店铺下的一级类目,值不等于0:表示此类目有父类目 <br/>注:因为缓存的关系,添加的新类目需8个小时后才可以在淘宝页面上正常显示,但是不影响在该类目下商品发布

func NewTaobaoSellercatsListAddRequest

func NewTaobaoSellercatsListAddRequest() *TaobaoSellercatsListAddAPIRequest

NewTaobaoSellercatsListAddRequest 初始化TaobaoSellercatsListAddAPIRequest对象

func (TaobaoSellercatsListAddAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoSellercatsListAddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSellercatsListAddAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoSellercatsListAddAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSellercatsListAddAPIRequest) GetName added in v1.2.0

Get Name Getter

func (TaobaoSellercatsListAddAPIRequest) GetParentCid added in v1.2.0

func (r TaobaoSellercatsListAddAPIRequest) GetParentCid() int64

Get ParentCid Getter

func (TaobaoSellercatsListAddAPIRequest) GetPictUrl added in v1.2.0

Get PictUrl Getter

func (TaobaoSellercatsListAddAPIRequest) GetSortOrder added in v1.2.0

func (r TaobaoSellercatsListAddAPIRequest) GetSortOrder() int64

Get SortOrder Getter

func (*TaobaoSellercatsListAddAPIRequest) SetName added in v1.2.0

Set is Name Setter 卖家自定义类目名称。不超过20个字符

func (*TaobaoSellercatsListAddAPIRequest) SetParentCid added in v1.2.0

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

Set is ParentCid Setter 父类目编号,如果类目为店铺下的一级类目:值等于0,如果类目为子类目,调用获取taobao.sellercats.list.get父类目编号

func (*TaobaoSellercatsListAddAPIRequest) SetPictUrl added in v1.2.0

func (r *TaobaoSellercatsListAddAPIRequest) SetPictUrl(_pictUrl string) error

Set is PictUrl Setter 链接图片URL地址。(绝对地址,格式:http://host/image_path)

func (*TaobaoSellercatsListAddAPIRequest) SetSortOrder added in v1.2.0

func (r *TaobaoSellercatsListAddAPIRequest) SetSortOrder(_sortOrder int64) error

Set is SortOrder Setter 该类目在页面上的排序位置,取值范围:大于零的整数

type TaobaoSellercatsListAddAPIResponse

type TaobaoSellercatsListAddAPIResponse struct {
	model.CommonResponse
	TaobaoSellercatsListAddAPIResponseModel
}
TaobaoSellercatsListAddAPIResponse

添加卖家自定义类目 API返回值 taobao.sellercats.list.add

此API添加卖家店铺内自定义类目 <br/>父类目parent_cid值等于0:表示此类目为店铺下的一级类目,值不等于0:表示此类目有父类目 <br/>注:因为缓存的关系,添加的新类目需8个小时后才可以在淘宝页面上正常显示,但是不影响在该类目下商品发布

type TaobaoSellercatsListAddAPIResponseModel added in v1.2.0

type TaobaoSellercatsListAddAPIResponseModel struct {
	XMLName xml.Name `xml:"sellercats_list_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回seller_cat数据结构中的:cid,created
	SellerCat *SellerCat `json:"seller_cat,omitempty" xml:"seller_cat,omitempty"`
}

TaobaoSellercatsListAddAPIResponseModel is 添加卖家自定义类目 成功返回结果

type TaobaoSellercatsListGetAPIRequest added in v1.2.0

type TaobaoSellercatsListGetAPIRequest struct {
	model.Params
}
TaobaoSellercatsListGetAPIRequest

获取前台展示的店铺内卖家自定义商品类目 API请求 taobao.sellercats.list.get

此API获取当前卖家店铺在淘宝前端被展示的浏览导航类目(面向买家)

func NewTaobaoSellercatsListGetRequest

func NewTaobaoSellercatsListGetRequest() *TaobaoSellercatsListGetAPIRequest

NewTaobaoSellercatsListGetRequest 初始化TaobaoSellercatsListGetAPIRequest对象

func (TaobaoSellercatsListGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoSellercatsListGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSellercatsListGetAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoSellercatsListGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

type TaobaoSellercatsListGetAPIResponse

type TaobaoSellercatsListGetAPIResponse struct {
	model.CommonResponse
	TaobaoSellercatsListGetAPIResponseModel
}
TaobaoSellercatsListGetAPIResponse

获取前台展示的店铺内卖家自定义商品类目 API返回值 taobao.sellercats.list.get

此API获取当前卖家店铺在淘宝前端被展示的浏览导航类目(面向买家)

type TaobaoSellercatsListGetAPIResponseModel added in v1.2.0

type TaobaoSellercatsListGetAPIResponseModel struct {
	XMLName xml.Name `xml:"sellercats_list_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 卖家自定义类目
	SellerCats []SellerCat `json:"seller_cats,omitempty" xml:"seller_cats>seller_cat,omitempty"`
}

TaobaoSellercatsListGetAPIResponseModel is 获取前台展示的店铺内卖家自定义商品类目 成功返回结果

type TaobaoSellercatsListUpdateAPIRequest added in v1.2.0

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

更新卖家自定义类目 API请求 taobao.sellercats.list.update

此API更新卖家店铺内自定义类目 <br/>注:因为缓存的关系,添加的新类目需8个小时后才可以在淘宝页面上正常显示,但是不影响在该类目下商品发布

func NewTaobaoSellercatsListUpdateRequest

func NewTaobaoSellercatsListUpdateRequest() *TaobaoSellercatsListUpdateAPIRequest

NewTaobaoSellercatsListUpdateRequest 初始化TaobaoSellercatsListUpdateAPIRequest对象

func (TaobaoSellercatsListUpdateAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoSellercatsListUpdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSellercatsListUpdateAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSellercatsListUpdateAPIRequest) GetCid added in v1.2.0

Get Cid Getter

func (TaobaoSellercatsListUpdateAPIRequest) GetName added in v1.2.0

Get Name Getter

func (TaobaoSellercatsListUpdateAPIRequest) GetPictUrl added in v1.2.0

Get PictUrl Getter

func (TaobaoSellercatsListUpdateAPIRequest) GetSortOrder added in v1.2.0

Get SortOrder Getter

func (*TaobaoSellercatsListUpdateAPIRequest) SetCid added in v1.2.0

Set is Cid Setter 卖家自定义类目编号

func (*TaobaoSellercatsListUpdateAPIRequest) SetName added in v1.2.0

Set is Name Setter 卖家自定义类目名称。不超过20个字符

func (*TaobaoSellercatsListUpdateAPIRequest) SetPictUrl added in v1.2.0

func (r *TaobaoSellercatsListUpdateAPIRequest) SetPictUrl(_pictUrl string) error

Set is PictUrl Setter 链接图片URL地址

func (*TaobaoSellercatsListUpdateAPIRequest) SetSortOrder added in v1.2.0

func (r *TaobaoSellercatsListUpdateAPIRequest) SetSortOrder(_sortOrder int64) error

Set is SortOrder Setter 该类目在页面上的排序位置,取值范围:大于零的整数

type TaobaoSellercatsListUpdateAPIResponse

type TaobaoSellercatsListUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoSellercatsListUpdateAPIResponseModel
}
TaobaoSellercatsListUpdateAPIResponse

更新卖家自定义类目 API返回值 taobao.sellercats.list.update

此API更新卖家店铺内自定义类目 <br/>注:因为缓存的关系,添加的新类目需8个小时后才可以在淘宝页面上正常显示,但是不影响在该类目下商品发布

type TaobaoSellercatsListUpdateAPIResponseModel added in v1.2.0

type TaobaoSellercatsListUpdateAPIResponseModel struct {
	XMLName xml.Name `xml:"sellercats_list_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回sellercat数据结构中的:cid,modified
	SellerCat *SellerCat `json:"seller_cat,omitempty" xml:"seller_cat,omitempty"`
}

TaobaoSellercatsListUpdateAPIResponseModel is 更新卖家自定义类目 成功返回结果

type TaobaoShopSellerGetAPIRequest added in v1.2.0

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

卖家店铺基础信息查询 API请求 taobao.shop.seller.get

获取卖家店铺的基本信息

func NewTaobaoShopSellerGetRequest

func NewTaobaoShopSellerGetRequest() *TaobaoShopSellerGetAPIRequest

NewTaobaoShopSellerGetRequest 初始化TaobaoShopSellerGetAPIRequest对象

func (TaobaoShopSellerGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoShopSellerGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoShopSellerGetAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoShopSellerGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoShopSellerGetAPIRequest) GetFields added in v1.2.0

func (r TaobaoShopSellerGetAPIRequest) GetFields() string

Get Fields Getter

func (*TaobaoShopSellerGetAPIRequest) SetFields added in v1.2.0

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

Set is Fields Setter 需返回的字段列表。可选值:Shop 结构中的所有字段;多个字段之间用逗号(,)分隔

type TaobaoShopSellerGetAPIResponse

type TaobaoShopSellerGetAPIResponse struct {
	model.CommonResponse
	TaobaoShopSellerGetAPIResponseModel
}
TaobaoShopSellerGetAPIResponse

卖家店铺基础信息查询 API返回值 taobao.shop.seller.get

获取卖家店铺的基本信息

type TaobaoShopSellerGetAPIResponseModel added in v1.2.0

type TaobaoShopSellerGetAPIResponseModel struct {
	XMLName xml.Name `xml:"shop_seller_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 店铺信息
	Shop *Shop `json:"shop,omitempty" xml:"shop,omitempty"`
}

TaobaoShopSellerGetAPIResponseModel is 卖家店铺基础信息查询 成功返回结果

type TaobaoShopUpdateAPIRequest added in v1.2.0

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

更新店铺基本信息 API请求 taobao.shop.update

目前只支持标题、公告和描述的更新

func NewTaobaoShopUpdateRequest

func NewTaobaoShopUpdateRequest() *TaobaoShopUpdateAPIRequest

NewTaobaoShopUpdateRequest 初始化TaobaoShopUpdateAPIRequest对象

func (TaobaoShopUpdateAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoShopUpdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoShopUpdateAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoShopUpdateAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoShopUpdateAPIRequest) GetBulletin added in v1.2.0

func (r TaobaoShopUpdateAPIRequest) GetBulletin() string

Get Bulletin Getter

func (TaobaoShopUpdateAPIRequest) GetDesc added in v1.2.0

func (r TaobaoShopUpdateAPIRequest) GetDesc() string

Get Desc Getter

func (TaobaoShopUpdateAPIRequest) GetTitle added in v1.2.0

func (r TaobaoShopUpdateAPIRequest) GetTitle() string

Get Title Getter

func (*TaobaoShopUpdateAPIRequest) SetBulletin added in v1.2.0

func (r *TaobaoShopUpdateAPIRequest) SetBulletin(_bulletin string) error

Set is Bulletin Setter 店铺公告。不超过1024个字符

func (*TaobaoShopUpdateAPIRequest) SetDesc added in v1.2.0

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

Set is Desc Setter 店铺描述。10~2000个字符以内

func (*TaobaoShopUpdateAPIRequest) SetTitle added in v1.2.0

func (r *TaobaoShopUpdateAPIRequest) SetTitle(_title string) error

Set is Title Setter 店铺标题。不超过30个字符;过滤敏感词,如淘咖啡、阿里巴巴等。title, bulletin和desc至少必须传一个

type TaobaoShopUpdateAPIResponse

type TaobaoShopUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoShopUpdateAPIResponseModel
}
TaobaoShopUpdateAPIResponse

更新店铺基本信息 API返回值 taobao.shop.update

目前只支持标题、公告和描述的更新

type TaobaoShopUpdateAPIResponseModel added in v1.2.0

type TaobaoShopUpdateAPIResponseModel struct {
	XMLName xml.Name `xml:"shop_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 店铺信息
	Shop *Shop `json:"shop,omitempty" xml:"shop,omitempty"`
}

TaobaoShopUpdateAPIResponseModel is 更新店铺基本信息 成功返回结果

type TaobaoShopcatsListGetAPIRequest added in v1.2.0

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

获取前台展示的店铺类目 API请求 taobao.shopcats.list.get

获取淘宝面向买家的浏览导航类目(跟后台卖家商品管理的类目有差异)

func NewTaobaoShopcatsListGetRequest

func NewTaobaoShopcatsListGetRequest() *TaobaoShopcatsListGetAPIRequest

NewTaobaoShopcatsListGetRequest 初始化TaobaoShopcatsListGetAPIRequest对象

func (TaobaoShopcatsListGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoShopcatsListGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoShopcatsListGetAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoShopcatsListGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoShopcatsListGetAPIRequest) GetFields added in v1.2.0

func (r TaobaoShopcatsListGetAPIRequest) GetFields() []string

Get Fields Getter

func (*TaobaoShopcatsListGetAPIRequest) SetFields added in v1.2.0

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

Set is Fields Setter 需要返回的字段列表,见ShopCat,默认返回:cid,parent_cid,name,is_parent

type TaobaoShopcatsListGetAPIResponse

type TaobaoShopcatsListGetAPIResponse struct {
	model.CommonResponse
	TaobaoShopcatsListGetAPIResponseModel
}
TaobaoShopcatsListGetAPIResponse

获取前台展示的店铺类目 API返回值 taobao.shopcats.list.get

获取淘宝面向买家的浏览导航类目(跟后台卖家商品管理的类目有差异)

type TaobaoShopcatsListGetAPIResponseModel added in v1.2.0

type TaobaoShopcatsListGetAPIResponseModel struct {
	XMLName xml.Name `xml:"shopcats_list_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 店铺类目列表信息
	ShopCats []ShopCat `json:"shop_cats,omitempty" xml:"shop_cats>shop_cat,omitempty"`
}

TaobaoShopcatsListGetAPIResponseModel is 获取前台展示的店铺类目 成功返回结果

type TaobaoStoreFollowurlGetAPIRequest added in v1.2.0

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

获取店铺关注URL API请求 taobao.store.followurl.get

获取关注店铺的URL

func NewTaobaoStoreFollowurlGetRequest

func NewTaobaoStoreFollowurlGetRequest() *TaobaoStoreFollowurlGetAPIRequest

NewTaobaoStoreFollowurlGetRequest 初始化TaobaoStoreFollowurlGetAPIRequest对象

func (TaobaoStoreFollowurlGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoStoreFollowurlGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoStoreFollowurlGetAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoStoreFollowurlGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoStoreFollowurlGetAPIRequest) GetCallbackUrl added in v1.2.0

func (r TaobaoStoreFollowurlGetAPIRequest) GetCallbackUrl() string

Get CallbackUrl Getter

func (TaobaoStoreFollowurlGetAPIRequest) GetUserId added in v1.2.0

Get UserId Getter

func (TaobaoStoreFollowurlGetAPIRequest) GetUserNick added in v1.2.0

func (r TaobaoStoreFollowurlGetAPIRequest) GetUserNick() string

Get UserNick Getter

func (*TaobaoStoreFollowurlGetAPIRequest) SetCallbackUrl added in v1.2.0

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

Set is CallbackUrl Setter 关注完成后的回调地址,需要是EWS地址。如果不设置,会跳转到店铺首页

func (*TaobaoStoreFollowurlGetAPIRequest) SetUserId added in v1.2.0

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

Set is UserId Setter 商家ID

func (*TaobaoStoreFollowurlGetAPIRequest) SetUserNick added in v1.2.0

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

Set is UserNick Setter 商家nick

type TaobaoStoreFollowurlGetAPIResponse

type TaobaoStoreFollowurlGetAPIResponse struct {
	model.CommonResponse
	TaobaoStoreFollowurlGetAPIResponseModel
}
TaobaoStoreFollowurlGetAPIResponse

获取店铺关注URL API返回值 taobao.store.followurl.get

获取关注店铺的URL

type TaobaoStoreFollowurlGetAPIResponseModel added in v1.2.0

type TaobaoStoreFollowurlGetAPIResponseModel struct {
	XMLName xml.Name `xml:"store_followurl_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 店铺关注URL
	Url string `json:"url,omitempty" xml:"url,omitempty"`
}

TaobaoStoreFollowurlGetAPIResponseModel is 获取店铺关注URL 成功返回结果

Jump to

Keyboard shortcuts

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