spu_createSpu_request

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 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 BarcodeImageItem added in v1.0.2

type BarcodeImageItem struct {
	// 条码图链接
	Content string `json:"content"`
	// 条码图名称
	Name string `json:"name"`
}

type BarcodesItem added in v1.0.2

type BarcodesItem struct {
	// 条码类型,1-69码
	BarcodeType int32 `json:"barcode_type"`
	// 条码值
	Barcode string `json:"barcode"`
	// 条码图
	BarcodeImage []BarcodeImageItem `json:"barcode_image"`
}

type ContentItem

type ContentItem struct {
	// 素材内容(/spu/batchUploadImg返回的URL)
	Content string `json:"content"`
	// 文件的名称
	Name string `json:"name"`
}

type MaterialsItem

type MaterialsItem struct {
	// 素材类型,枚举值:1-主图
	Type int32 `json:"type"`
	// 素材类型名称
	Name string `json:"name"`
	// 描述信息
	Description string `json:"description"`
	// 素材的实际内容
	Content []ContentItem `json:"content"`
}

type ProofsItem

type ProofsItem struct {
	// 证明信息(类型:实物图、版权页)
	Type int32 `json:"type"`
	// 证明信息类型,枚举值:2-实物图、6-版权页
	Name string `json:"name"`
	// 描述信息
	Description string `json:"description"`
	// 证明材料的实际内容
	Content []ContentItem `json:"content"`
}

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图片(已废弃,请采用materials字段)
	SpuImages []string `json:"spu_images"`
	// 属性信息(/spu/getSpuRule接口可获取)
	PropertyInfos []PropertyInfosItem `json:"property_infos"`
	// SPU实物图(已废弃,请采用proofs字段)
	SpuActualImages []string `json:"spu_actual_images"`
	// SPU素材
	Materials []MaterialsItem `json:"materials"`
	// 证明信息
	Proofs []ProofsItem `json:"proofs"`
	// 条码
	Barcodes []BarcodesItem `json:"barcodes"`
}

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