category

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: GPL-3.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 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"`
}

func (GoodsGetResponse) Error added in v1.1.1

func (r GoodsGetResponse) Error() string

func (GoodsGetResponse) IsError added in v1.1.1

func (r GoodsGetResponse) IsError() bool

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"`
}

func (GoodsGetResult) Error added in v1.1.1

func (r GoodsGetResult) Error() string

func (GoodsGetResult) IsError added in v1.1.1

func (r GoodsGetResult) IsError() bool

Jump to

Keyboard shortcuts

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