product_getRecommendName_request

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: MulanPSL-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 ProductGetRecommendNameParam

type ProductGetRecommendNameParam struct {
	// 暂时仅开放一种场景:1. product_name_prefix,表示基于 命中的商品类目属性 推荐 商品标题前缀
	Scene []string `json:"scene"`
	// 商品叶子类目id,请先使用【/product/getProductUpdateRule】接口查询类目id查看recommend_name_rule. satisfy_prefix是否=true
	CategoryLeafId int64 `json:"category_leaf_id"`
	// 一级类目id,scene为product_name_prefix时必传,没有时传0
	FirstCid int64 `json:"first_cid"`
	// 一级类目名,scene为product_name_prefix时必传
	FirstCidName string `json:"first_cid_name"`
	// 二级类目id,scene为product_name_prefix时必传,没有时传0
	SecondCid int64 `json:"second_cid"`
	// 二级类目名,scene为product_name_prefix时必传
	SecondCidName string `json:"second_cid_name"`
	// 三级类目id,scene为product_name_prefix时必传,没有时传0
	ThirdCid int64 `json:"third_cid"`
	// 三级类目名,scene为product_name_prefix时必传
	ThirdCidName string `json:"third_cid_name"`
	// 商品类目属性,参考"select_property":{"1687":[{"value":0,"name":"填入品牌名"}],"3320":[{"value":18972,"name":"99新"}]}
	SelectProperty map[int64][]SelectPropertyItem `json:"select_property"`
}

type ProductGetRecommendNameRequest

type ProductGetRecommendNameRequest struct {
	doudian_sdk.BaseDoudianOpApiRequest
	Param *ProductGetRecommendNameParam
}

func (*ProductGetRecommendNameRequest) Execute

func (c *ProductGetRecommendNameRequest) Execute(accessToken *doudian_sdk.AccessToken) (*product_getRecommendName_response.ProductGetRecommendNameResponse, error)

func (*ProductGetRecommendNameRequest) GetParamObject

func (c *ProductGetRecommendNameRequest) GetParamObject() interface{}

func (*ProductGetRecommendNameRequest) GetParams

func (*ProductGetRecommendNameRequest) GetUrlPath

func (c *ProductGetRecommendNameRequest) GetUrlPath() string

type SelectPropertyItem

type SelectPropertyItem struct {
	// 属性id
	Value int64 `json:"value"`
	// 属性名称
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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