category

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryResp

type CategoryResp struct {
	Id       uint64 `json:"id,omitempty"`       // 类目Id
	Name     string `json:"name,omitempty"`     // 类目名称
	Grade    uint   `json:"grade,omitempty"`    // 类目级别(类目级别 0,1,2 代表一、二、三级类目)
	ParentId uint64 `json:"parentId,omitempty"` // 父类目Id
}

func GoodsGet

func GoodsGet(req *GoodsGetRequest) ([]CategoryResp, error)

商品类目查询

type GoodsGetRequest

type GoodsGetRequest struct {
	api.BaseRequest
	ParentId uint64 `json:"parentId"` // 父类目id(一级父类目为0)
	Grade    uint   `json:"grade"`    // 类目级别(类目级别 0,1,2 代表一、二、三级类目)
}

type GoodsGetResponse

type GoodsGetResponse struct {
	ErrorResp *api.ErrorResponnse   `json:"error_response,omitempty"`
	Data      *GoodsGetResponseData `json:"jd_union_open_category_goods_get_response,omitempty"`
}

type GoodsGetResponseData

type GoodsGetResponseData struct {
	Result string `json:"result,omitempty"`
}

type GoodsGetResult

type GoodsGetResult struct {
	Code    int64          `json:"code,omitempty"`
	Message string         `json:"message,omitempty"`
	Data    []CategoryResp `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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