goods

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package goods 商品API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cat

type Cat struct {
	// ID 商品类目ID
	ID uint64 `json:"cat_id,omitempty"`
	// Name 商品类目名称
	Name string `json:"cat_name,omitempty"`
	// Level 类目层级,1-一级类目,2-二级类目,3-三级类目,4-四级类目
	Level int `json:"level,omitempty"`
	// ParentID id所属父类目ID,其中,parent_id=0时为顶级节点
	ParentID uint64 `json:"parent_cat_id,omitempty"`
}

Cat 类目

func CatsGet

func CatsGet(ctx context.Context, clt *core.SDKClient, parentID uint64) ([]Cat, error)

CatsGet 商品标准类目接口

type CatsGetRequest

type CatsGetRequest struct {
	// ParentCatID 值=0时为顶点cat_id,通过树顶级节点获取cat树
	ParentCatID uint64 `json:"parent_cat_id"`
}

CatsGetRequest 商品标准类目接口 API Request

func (CatsGetRequest) GetType

func (r CatsGetRequest) GetType() string

GetType implement Request interface

type CatsGetResponse

type CatsGetResponse struct {
	model.CommonResponse
	Response struct {
		List []Cat `json:"goods_cats_list,omitempty"`
	} `json:"goods_cats_get_response"`
}

CatsGetResponse 商品标准类目接口 API Response

type Opt

type Opt struct {
	// ID 商品标签ID
	ID uint64 `json:"opt_id,omitempty"`
	// Name 商品标签名
	Name string `json:"opt_name,omitempty"`
	// ParentID id所属父ID,其中,parent_id=0时为顶级节点
	ParentID uint64 `json:"parent_opt_id,omitempty"`
	// Level 层级,1-一级,2-二级,3-三级,4-四级
	Level int `json:"level,omitempty"`
}

Opt 商品标签

func OptGet

func OptGet(ctx context.Context, clt *core.SDKClient, parentID uint64) ([]Opt, error)

OptGet 查询商品标签列表

type OptGetRequest

type OptGetRequest struct {
	// ParentCatID 值=0时为顶点cat_id,通过树顶级节点获取cat树
	ParentCatID uint64 `json:"parent_cat_id"`
}

OptGetRequest 查询商品标签列表 API Request

func (OptGetRequest) GetType

func (r OptGetRequest) GetType() string

GetType implement Request interface

type OptGetResponse

type OptGetResponse struct {
	model.CommonResponse
	Response struct {
		List []Opt `json:"goods_opt_list,omitempty"`
	} `json:"goods_opt_get_response"`
}

OptGetResponse 查询商品标签列表 API Response

Jump to

Keyboard shortcuts

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