ju

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 Extend

type Extend struct {
	// empty
	Empty bool `json:"empty,omitempty" xml:"empty,omitempty"`
}

Extend

type Items

type Items struct {
	// 卖点描述
	UspDescList []string `json:"usp_desc_list,omitempty" xml:"usp_desc_list>string,omitempty"`
	// 淘宝类目id
	TbFirstCatId int64 `json:"tb_first_cat_id,omitempty" xml:"tb_first_cat_id,omitempty"`
	// 原价
	OrigPrice string `json:"orig_price,omitempty" xml:"orig_price,omitempty"`
	// itemId
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 展示结束时间
	ShowEndTime int64 `json:"show_end_time,omitempty" xml:"show_end_time,omitempty"`
	// pc链接
	PcUrl string `json:"pc_url,omitempty" xml:"pc_url,omitempty"`
	// 频道id
	PlatformId int64 `json:"platform_id,omitempty" xml:"platform_id,omitempty"`
	// 聚划算id
	JuId int64 `json:"ju_id,omitempty" xml:"ju_id,omitempty"`
	// 无线主图
	PicUrlForWL string `json:"pic_url_for_w_l,omitempty" xml:"pic_url_for_w_l,omitempty"`
	// 开团时间
	OnlineStartTime int64 `json:"online_start_time,omitempty" xml:"online_start_time,omitempty"`
	// 类目名称
	CategoryName string `json:"category_name,omitempty" xml:"category_name,omitempty"`
	// 聚划算价格,单位分
	ActPrice string `json:"act_price,omitempty" xml:"act_price,omitempty"`
	// 商品标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 无线链接
	WapUrl string `json:"wap_url,omitempty" xml:"wap_url,omitempty"`
	// 商品卖点
	ItemUspList []string `json:"item_usp_list,omitempty" xml:"item_usp_list>string,omitempty"`
	// 开始展示时间
	ShowStartTime int64 `json:"show_start_time,omitempty" xml:"show_start_time,omitempty"`
	// 开团结束时间
	OnlineEndTime int64 `json:"online_end_time,omitempty" xml:"online_end_time,omitempty"`
	// pc主图
	PicUrlForPC string `json:"pic_url_for_p_c,omitempty" xml:"pic_url_for_p_c,omitempty"`
	// 价格卖点
	PriceUspList []string `json:"price_usp_list,omitempty" xml:"price_usp_list>string,omitempty"`
	// 是否包邮
	PayPostage bool `json:"pay_postage,omitempty" xml:"pay_postage,omitempty"`
}

Items

type PaginationResult

type PaginationResult struct {
	// 当前页码
	CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"`
	// 扩展属性
	Extend *Extend `json:"extend,omitempty" xml:"extend,omitempty"`
	// 商品数据
	ModelList []Items `json:"model_list,omitempty" xml:"model_list>items,omitempty"`
	// 错误码
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// 错误信息
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// 一页大小
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 请求是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 商品总数
	TotalItem int64 `json:"total_item,omitempty" xml:"total_item,omitempty"`
	// 总页数
	TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"`
	// 埋点信息
	TrackParams *Trackparams `json:"track_params,omitempty" xml:"track_params,omitempty"`
}

PaginationResult

type TaobaoJuItemsSearchAPIResponse

type TaobaoJuItemsSearchAPIResponse struct {
	model.CommonResponse
	TaobaoJuItemsSearchResponse
}

聚划算商品搜索接口 API返回值 taobao.ju.items.search

搜索聚划算商品

type TaobaoJuItemsSearchRequest

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

聚划算商品搜索接口 API请求 taobao.ju.items.search

搜索聚划算商品

func NewTaobaoJuItemsSearchRequest

func NewTaobaoJuItemsSearchRequest() *TaobaoJuItemsSearchRequest

初始化TaobaoJuItemsSearchRequest对象

func (TaobaoJuItemsSearchRequest) GetApiMethodName

func (r TaobaoJuItemsSearchRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoJuItemsSearchRequest) GetApiParams

func (r TaobaoJuItemsSearchRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoJuItemsSearchRequest) GetParamTopItemQuery

func (r TaobaoJuItemsSearchRequest) GetParamTopItemQuery() *TopItemQuery

ParamTopItemQuery Getter

func (*TaobaoJuItemsSearchRequest) SetParamTopItemQuery

func (r *TaobaoJuItemsSearchRequest) SetParamTopItemQuery(paramTopItemQuery *TopItemQuery) error

ParamTopItemQuery Setter query

type TaobaoJuItemsSearchResponse

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

聚划算商品搜索接口 成功返回结果

type TopItemQuery

type TopItemQuery struct {
	// 页码,必传
	CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"`
	// 一页大小,必传
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 媒体pid,必传
	Pid string `json:"pid,omitempty" xml:"pid,omitempty"`
	// 是否包邮,可不传
	Postage bool `json:"postage,omitempty" xml:"postage,omitempty"`
	// 状态,预热:1,正在进行中:2,可不传
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 淘宝类目id,可不传
	TaobaoCategoryId int64 `json:"taobao_category_id,omitempty" xml:"taobao_category_id,omitempty"`
	// 搜索关键词,可不传
	Word string `json:"word,omitempty" xml:"word,omitempty"`
}

TopItemQuery

type Trackparams

type Trackparams struct {
	// empty
	Empty bool `json:"empty,omitempty" xml:"empty,omitempty"`
}

Trackparams

Jump to

Keyboard shortcuts

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