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 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 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 ¶
Click to show internal directories.
Click to hide internal directories.