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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	Fid      uint64         `json:"fid,omitempty" codec:"fid,omitempty"`           // 	类目父ID
	Id       uint64         `json:"id,omitempty" codec:"id,omitempty"`             // 类目id
	Lev      int            `json:"lev,omitempty" codec:"lev,omitempty"`           // 	类目级别
	Name     string         `json:"name,omitempty" codec:"name,omitempty"`         // 类目名称
	Order    int            `json:"order,omitempty" codec:"order,omitempty"`       // 排序
	Features []ware.Feature `json:"features,omitempty" codec:"features,omitempty"` // 类目特殊属性列表
}

func FindCateById

func FindCateById(req *FindCateByIdRequest) (*Category, error)

获取单个SKU

func FindCateByPid

func FindCateByPid(req *FindCateByPidRequest) ([]Category, error)

获取单个SKU

type FindCateByIdData

type FindCateByIdData struct {
	Code     string    `json:"code,omitempty" codec:"code,omitempty"`
	Category *Category `json:"category,omitempty" codec:"category,omitempty"`
}

type FindCateByIdRequest

type FindCateByIdRequest struct {
	api.BaseRequest

	Fields string `json:"fields,omitempty" codec:"fields,omitempty"` //
	Cid    uint64 `json:"cid,omitempty" codec:"cid,omitempty"`       // 自定义返回字段
}

type FindCateByIdResponse

type FindCateByIdResponse struct {
	ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *FindCateByIdData   `json:"jingdong_category_read_findById_responce,omitempty" codec:"jingdong_category_read_findById_responce,omitempty"`
}

func (FindCateByIdResponse) Error added in v1.1.1

func (r FindCateByIdResponse) Error() string

func (FindCateByIdResponse) IsError added in v1.1.1

func (r FindCateByIdResponse) IsError() bool

type FindCateByPidData

type FindCateByPidData struct {
	Code       string     `json:"code,omitempty" codec:"code,omitempty"`
	Categories []Category `json:"categories,omitempty" codec:"categories,omitempty"`
}

type FindCateByPidRequest

type FindCateByPidRequest struct {
	api.BaseRequest

	Fields    string `json:"fields,omitempty" codec:"fields,omitempty"`         //
	ParentCid uint64 `json:"parent_cid,omitempty" codec:"parent_cid,omitempty"` // 自定义返回字段
}

type FindCateByPidResponse

type FindCateByPidResponse struct {
	ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *FindCateByPidData  `json:"jingdong_category_read_findByPId_responce,omitempty" codec:"jingdong_category_read_findByPId_responce,omitempty"`
}

func (FindCateByPidResponse) Error added in v1.1.1

func (r FindCateByPidResponse) Error() string

func (FindCateByPidResponse) IsError added in v1.1.1

func (r FindCateByPidResponse) IsError() bool

Jump to

Keyboard shortcuts

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