sku

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindSkuById

func FindSkuById(ctx context.Context, req *FindSkuByIdRequest) (*ware.Sku, error)

获取单个SKU

Types

type FindSkuByIdData

type FindSkuByIdData struct {
	Code string    `json:"code,omitempty" codec:"code,omitempty"`
	Sku  *ware.Sku `json:"sku,omitempty" codec:"sku,omitempty"`
}

type FindSkuByIdRequest

type FindSkuByIdRequest struct {
	api.BaseRequest
	Fields string `json:"fields,omitempty" codec:"fields,omitempty"` //
	SkuId  uint64 `json:"sku_id,omitempty" codec:"sku_id,omitempty"` // 自定义返回字段
}

type FindSkuByIdResponse

type FindSkuByIdResponse struct {
	ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *FindSkuByIdData    `json:"jingdong_sku_read_findSkuById_responce,omitempty" codec:"jingdong_sku_read_findSkuById_responce,omitempty"`
}

func (FindSkuByIdResponse) Error added in v1.1.1

func (r FindSkuByIdResponse) Error() string

func (FindSkuByIdResponse) IsError added in v1.1.1

func (r FindSkuByIdResponse) IsError() bool

type SearchSkuListPage

type SearchSkuListPage struct {
	Data      []ware.Sku `json:"data,omitempty" codec:"data,omitempty"`
	PageNo    int        `json:"pageNo,omitempty" codec:"pageNo,omitempty"`
	PageSize  int        `json:"pageSize,omitempty" codec:"pageSize,omitempty"`
	TotalItem int        `json:"totalItem,omitempty" codec:"totalItem,omitempty"`
}

func SearchSkuList

func SearchSkuList(ctx context.Context, req *SearchSkuListRequest) (*SearchSkuListPage, error)

根据条件检索订单信息 (仅适用于SOP、LBP,SOPL类型,FBP类型请调取FBP订单检索 )

type SearchSkuListRequest

type SearchSkuListRequest struct {
	api.BaseRequest
	WareId            []uint64 `json:"wareId,omitempty" codec:"wareId,omitempty"`                       // 商品ID
	SkuId             []uint64 `json:"skuId,omitempty" codec:"skuId,omitempty"`                         // SKU ID
	SkuStatuValue     []int    `json:"skuStatuValue,omitempty" codec:"skuStatuValue,omitempty"`         // SKU状态:1:上架 2:下架 4:删除
	MaxStockNum       int      `json:"maxStockNum,omitempty" codec:"maxStockNum,omitempty"`             // 库存范围
	MinStockNum       int      `json:"minStockNum,omitempty" codec:"minStockNum,omitempty"`             // 库存范围
	EndCreatedTime    int64    `json:"endCreatedTime,omitempty" codec:"endCreatedTime,omitempty"`       // 创建时间范围
	EndModifiedTime   int64    `json:"endModifiedTime,omitempty" codec:"endModifiedTime,omitempty"`     // 创建时间范围
	StartCreatedTime  int64    `json:"startCreatedTime,omitempty" codec:"startCreatedTime,omitempty"`   // 修改时间范围
	StartModifiedTime int64    `json:"startModifiedTime,omitempty" codec:"startModifiedTime,omitempty"` // 修改时间范围
	OutId             []string `json:"outId,omitempty" codec:"outId,omitempty"`                         // 外部ID
	ColType           []string `json:"colType,omitempty" codec:"colType,omitempty"`                     // 合作类型
	ItemNum           string   `json:"itemNum,omitempty" codec:"itemNum,omitempty"`                     // 货号
	WareTitle         string   `json:"wareTitle,omitempty" codec:"wareTitle,omitempty"`                 // 商品名称
	OrderField        []string `json:"orderField,omitempty" codec:"orderField,omitempty"`               // 排序字段.目前支持skuId、stockNum
	OrderType         []string `json:"orderType,omitempty" codec:"orderType,omitempty"`                 // 排序类型:asc、desc
	PageNo            int      `json:"pageNo,omitempty" codec:"pageNo,omitempty"`                       // 页码
	PageSize          int      `json:"page_size,omitempty" codec:"page_size,omitempty"`                 // 每页条数
	Field             string   `json:"field,omitempty" codec:"field,omitempty"`                         // 自定义返回字段
}

type SearchSkuListResponse

type SearchSkuListResponse struct {
	ErrorResp *api.ErrorResponnse       `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *SearchSkuListSubResponse `json:"jingdong_sku_read_searchSkuList_responce,omitempty" codec:"jingdong_sku_read_searchSkuList_responce,omitempty"`
}

func (SearchSkuListResponse) Error added in v1.1.1

func (r SearchSkuListResponse) Error() string

func (SearchSkuListResponse) IsError added in v1.1.1

func (r SearchSkuListResponse) IsError() bool

type SearchSkuListSubResponse

type SearchSkuListSubResponse struct {
	Code      string             `json:"code,omitempty" codec:"code,omitempty"`
	ErrorDesc string             `json:"error_description,omitempty" codec:"error_description,omitempty"`
	Page      *SearchSkuListPage `json:"page,omitempty" codec:"page,omitempty"`
}

func (SearchSkuListSubResponse) Error added in v1.1.1

func (r SearchSkuListSubResponse) Error() string

func (SearchSkuListSubResponse) IsError added in v1.1.1

func (r SearchSkuListSubResponse) IsError() bool

Jump to

Keyboard shortcuts

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