tmallitem

package
v1.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TmallBrand

type TmallBrand struct {
	// 搜索品牌id
	BrandId int64 `json:"brand_id,omitempty" xml:"brand_id,omitempty"`
	// 搜索品牌名字
	BrandName string `json:"brand_name,omitempty" xml:"brand_name,omitempty"`
}

TmallBrand

type TmallCat

type TmallCat struct {
	// 搜索前台类目id
	CatId int64 `json:"cat_id,omitempty" xml:"cat_id,omitempty"`
	// 搜索前台类目名字
	CatName string `json:"cat_name,omitempty" xml:"cat_name,omitempty"`
}

TmallCat

type TmallExtendSearchItem

type TmallExtendSearchItem struct {
	// 搜索宝贝的标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 搜索宝贝的月数量
	Sold string `json:"sold,omitempty" xml:"sold,omitempty"`
	// 搜索宝贝url
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 搜索宝贝的图片url
	PicPath string `json:"pic_path,omitempty" xml:"pic_path,omitempty"`
	// 搜索宝贝的sku最低价
	Price float64 `json:"price,omitempty" xml:"price,omitempty"`
	// 搜索宝贝的数字id
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 搜索宝贝的卖家昵称
	Nick string `json:"nick,omitempty" xml:"nick,omitempty"`
	// 搜索宝贝的宝贝所在地
	Location string `json:"location,omitempty" xml:"location,omitempty"`
	// 搜索宝贝的卖家所在地
	SellerLoc string `json:"seller_loc,omitempty" xml:"seller_loc,omitempty"`
	// 是否免邮
	Shipping int64 `json:"shipping,omitempty" xml:"shipping,omitempty"`
	// 搜索宝贝的spuid
	SpuId int64 `json:"spu_id,omitempty" xml:"spu_id,omitempty"`
	// 是否货到付款
	IsCod int64 `json:"is_cod,omitempty" xml:"is_cod,omitempty"`
	// 邮费
	FastPostFee float64 `json:"fast_post_fee,omitempty" xml:"fast_post_fee,omitempty"`
	// 搜索宝贝的卖家数字id
	UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"`
	// 是否折扣
	IsPromotion bool `json:"is_promotion,omitempty" xml:"is_promotion,omitempty"`
	// 搜索宝贝的sku最低价的折扣价
	PriceWithRate float64 `json:"price_with_rate,omitempty" xml:"price_with_rate,omitempty"`
}

TmallExtendSearchItem

type TmallItemsExtendSearchAPIResponse

type TmallItemsExtendSearchAPIResponse struct {
	model.CommonResponse
	TmallItemsExtendSearchResponse
}

搜索天猫商品 API返回值 tmall.items.extend.search

提供天猫商品搜索结果,需要调用精选商品,请改为调用:tmall.selected.items.search

type TmallItemsExtendSearchRequest

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

搜索天猫商品 API请求 tmall.items.extend.search

提供天猫商品搜索结果,需要调用精选商品,请改为调用:tmall.selected.items.search

func NewTmallItemsExtendSearchRequest

func NewTmallItemsExtendSearchRequest() *TmallItemsExtendSearchRequest

初始化TmallItemsExtendSearchRequest对象

func (TmallItemsExtendSearchRequest) GetApiMethodName

func (r TmallItemsExtendSearchRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallItemsExtendSearchRequest) GetApiParams

func (r TmallItemsExtendSearchRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallItemsExtendSearchRequest) GetAuctionTag

func (r TmallItemsExtendSearchRequest) GetAuctionTag() string

AuctionTag Getter

func (TmallItemsExtendSearchRequest) GetBrand

Brand Getter

func (TmallItemsExtendSearchRequest) GetCat

Cat Getter

func (TmallItemsExtendSearchRequest) GetCategory

func (r TmallItemsExtendSearchRequest) GetCategory() string

Category Getter

func (TmallItemsExtendSearchRequest) GetCombo

func (r TmallItemsExtendSearchRequest) GetCombo() int64

Combo Getter

func (TmallItemsExtendSearchRequest) GetEndPrice

func (r TmallItemsExtendSearchRequest) GetEndPrice() float64

EndPrice Getter

func (TmallItemsExtendSearchRequest) GetLoc

Loc Getter

func (TmallItemsExtendSearchRequest) GetManyPoints

func (r TmallItemsExtendSearchRequest) GetManyPoints() int64

ManyPoints Getter

func (TmallItemsExtendSearchRequest) GetMiaosha

func (r TmallItemsExtendSearchRequest) GetMiaosha() int64

Miaosha Getter

func (TmallItemsExtendSearchRequest) GetNspu

Nspu Getter

func (TmallItemsExtendSearchRequest) GetPageNo

func (r TmallItemsExtendSearchRequest) GetPageNo() int64

PageNo Getter

func (TmallItemsExtendSearchRequest) GetPageSize

func (r TmallItemsExtendSearchRequest) GetPageSize() int64

PageSize Getter

func (TmallItemsExtendSearchRequest) GetPostFee

func (r TmallItemsExtendSearchRequest) GetPostFee() int64

PostFee Getter

func (TmallItemsExtendSearchRequest) GetProp

Prop Getter

func (TmallItemsExtendSearchRequest) GetQ

Q Getter

func (TmallItemsExtendSearchRequest) GetSort

Sort Getter

func (TmallItemsExtendSearchRequest) GetSpuid

func (r TmallItemsExtendSearchRequest) GetSpuid() int64

Spuid Getter

func (TmallItemsExtendSearchRequest) GetStartPrice

func (r TmallItemsExtendSearchRequest) GetStartPrice() float64

StartPrice Getter

func (TmallItemsExtendSearchRequest) GetSupportCod

func (r TmallItemsExtendSearchRequest) GetSupportCod() int64

SupportCod Getter

func (TmallItemsExtendSearchRequest) GetUserId

func (r TmallItemsExtendSearchRequest) GetUserId() int64

UserId Getter

func (TmallItemsExtendSearchRequest) GetVip

Vip Getter

func (TmallItemsExtendSearchRequest) GetWwonline

func (r TmallItemsExtendSearchRequest) GetWwonline() int64

Wwonline Getter

func (*TmallItemsExtendSearchRequest) SetAuctionTag

func (r *TmallItemsExtendSearchRequest) SetAuctionTag(auctionTag string) error

AuctionTag Setter 商品标签。支持多选过滤,auction_tag=auction_tag1,auction_tag2,不支持天猫精品库8578

func (*TmallItemsExtendSearchRequest) SetBrand

func (r *TmallItemsExtendSearchRequest) SetBrand(brand string) error

Brand Setter 品牌的id。支持多选过滤,brand=brand1,brand2

func (*TmallItemsExtendSearchRequest) SetCat

Cat Setter 前台类目id,支持多选过滤,cat=catid1,catid2

func (*TmallItemsExtendSearchRequest) SetCategory

func (r *TmallItemsExtendSearchRequest) SetCategory(category string) error

Category Setter 后台类目id,category=categoryId

func (*TmallItemsExtendSearchRequest) SetCombo

func (r *TmallItemsExtendSearchRequest) SetCombo(combo int64) error

Combo Setter 过滤搭配减价宝贝时,combo=1

func (*TmallItemsExtendSearchRequest) SetEndPrice

func (r *TmallItemsExtendSearchRequest) SetEndPrice(endPrice float64) error

EndPrice Setter 在宝贝页面中进行价格筛选的时候,如果填写了最高价格,就会显示该字段。

func (*TmallItemsExtendSearchRequest) SetLoc

Loc Setter 宝贝卖家所在地,中文gbk编码

func (*TmallItemsExtendSearchRequest) SetManyPoints

func (r *TmallItemsExtendSearchRequest) SetManyPoints(manyPoints int64) error

ManyPoints Setter 是否多倍积分,1为多倍积分

func (*TmallItemsExtendSearchRequest) SetMiaosha

func (r *TmallItemsExtendSearchRequest) SetMiaosha(miaosha int64) error

Miaosha Setter 过滤折扣宝贝时,miaosha=1

func (*TmallItemsExtendSearchRequest) SetNspu

func (r *TmallItemsExtendSearchRequest) SetNspu(nspu int64) error

Nspu Setter 是否需要spu聚合的开关:1为关闭,不传表示遵循后端聚合逻辑。默认不作spu聚合。

func (*TmallItemsExtendSearchRequest) SetPageNo

func (r *TmallItemsExtendSearchRequest) SetPageNo(pageNo int64) error

PageNo Setter 页码。取值范围:大于零的整数;最大值:100;默认值:1,即默认返回第一页数据。

func (*TmallItemsExtendSearchRequest) SetPageSize

func (r *TmallItemsExtendSearchRequest) SetPageSize(pageSize int64) error

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

func (*TmallItemsExtendSearchRequest) SetPostFee

func (r *TmallItemsExtendSearchRequest) SetPostFee(postFee int64) error

PostFee Setter 是否包邮,-1为包邮

func (*TmallItemsExtendSearchRequest) SetProp

func (r *TmallItemsExtendSearchRequest) SetProp(prop string) error

Prop Setter 以“属性id:属性值”的形式传入;

func (*TmallItemsExtendSearchRequest) SetQ

Q Setter 表示搜索的关键字,例如搜索query=nike。当输入关键字为中文时,将对他进行URLEncode的UTF-8格式编码,如 耐克,那么q=%E8%80%90%E5%85%8B。

func (*TmallItemsExtendSearchRequest) SetSort

func (r *TmallItemsExtendSearchRequest) SetSort(sort string) error

Sort Setter 排序类型。类型包括:s: 人气排序p: 价格从低到高;pd: 价格从高到低;d: 月销量从高到低;td: 总销量从高到低;pt: 按发布时间排序.

func (*TmallItemsExtendSearchRequest) SetSpuid

func (r *TmallItemsExtendSearchRequest) SetSpuid(spuid int64) error

Spuid Setter 可以根据产品Id搜索属于这个spu的商品。

func (*TmallItemsExtendSearchRequest) SetStartPrice

func (r *TmallItemsExtendSearchRequest) SetStartPrice(startPrice float64) error

StartPrice Setter 在宝贝页面中进行价格筛选的时候,如果填写了最低价格,就会显示该字段。

func (*TmallItemsExtendSearchRequest) SetSupportCod

func (r *TmallItemsExtendSearchRequest) SetSupportCod(supportCod int64) error

SupportCod Setter 是否货到付款,1为货到付款

func (*TmallItemsExtendSearchRequest) SetUserId

func (r *TmallItemsExtendSearchRequest) SetUserId(userId int64) error

UserId Setter 可以根据卖家id搜索属于该卖家的商品

func (*TmallItemsExtendSearchRequest) SetVip

func (r *TmallItemsExtendSearchRequest) SetVip(vip int64) error

Vip Setter 过滤vip宝贝时,vip=1

func (*TmallItemsExtendSearchRequest) SetWwonline

func (r *TmallItemsExtendSearchRequest) SetWwonline(wwonline int64) error

Wwonline Setter 显示旺旺在线卖家的宝贝时,wwonline=1

type TmallItemsExtendSearchResponse

type TmallItemsExtendSearchResponse struct {
	XMLName xml.Name `xml:"tmall_items_extend_search_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品列表
	ItemList []TmallExtendSearchItem `json:"item_list,omitempty" xml:"item_list>tmall_extend_search_item,omitempty"`
	// 总商品数量
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
	// 查询条件
	Q string `json:"q,omitempty" xml:"q,omitempty"`
	// 类目列表
	CatList []TmallCat `json:"cat_list,omitempty" xml:"cat_list>tmall_cat,omitempty"`
	// 品牌列表
	BrandList []TmallBrand `json:"brand_list,omitempty" xml:"brand_list>tmall_brand,omitempty"`
}

搜索天猫商品 成功返回结果

Jump to

Keyboard shortcuts

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