spu_createSpu_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 PropertyInfosItem

type PropertyInfosItem struct {
	// 属性ID
	PropertyId int64 `json:"property_id"`
	// 属性值
	Values []ValuesItem `json:"values"`
}

type SpuCreateSpuParam

type SpuCreateSpuParam struct {
	// 叶子类目ID
	CategoryLeafId int64 `json:"category_leaf_id"`
	// SPU图片(/spu/batchUploadImg返回的URL)
	SpuImages []string `json:"spu_images"`
	// 属性信息(/spu/getSpuRule接口可获取)
	PropertyInfos []PropertyInfosItem `json:"property_infos"`
	// SPU实物图,用于证明SPU存在,比如包装图,版权页图(/spu/batchUploadImg返回的URL)
	SpuActualImages []string `json:"spu_actual_images"`
}

type SpuCreateSpuRequest

type SpuCreateSpuRequest struct {
	doudian_sdk.BaseDoudianOpApiRequest
	Param *SpuCreateSpuParam
}

func New

func New() *SpuCreateSpuRequest

func (*SpuCreateSpuRequest) Execute

func (c *SpuCreateSpuRequest) Execute(accessToken *doudian_sdk.AccessToken) (*spu_createSpu_response.SpuCreateSpuResponse, error)

func (*SpuCreateSpuRequest) GetParamObject

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

func (*SpuCreateSpuRequest) GetParams

func (c *SpuCreateSpuRequest) GetParams() *SpuCreateSpuParam

func (*SpuCreateSpuRequest) GetUrlPath

func (c *SpuCreateSpuRequest) GetUrlPath() string

type ValuesItem

type ValuesItem struct {
	// 属性值ID
	ValueId int64 `json:"value_id"`
	// 属性值
	ValueName string `json:"value_name"`
}

Jump to

Keyboard shortcuts

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