Documentation ¶
Index ¶
- type SkuSyncListItem
- type SkuSyncStockBatchParam
- type SkuSyncStockBatchRequest
- func (c *SkuSyncStockBatchRequest) Execute(accessToken *doudian_sdk.AccessToken) (*sku_syncStockBatch_response.SkuSyncStockBatchResponse, error)
- func (c *SkuSyncStockBatchRequest) GetParamObject() interface{}
- func (c *SkuSyncStockBatchRequest) GetParams() *SkuSyncStockBatchParam
- func (c *SkuSyncStockBatchRequest) GetUrlPath() string
- type StockMapItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SkuSyncListItem ¶
type SkuSyncListItem struct { // skuid SkuId int64 `json:"sku_id"` // 库存类型:0普通库存,1区域库存,10阶梯库存。 超市小时达子品传区域库存 SkuType int64 `json:"sku_type"` // 普通库存数量 StockNum int64 `json:"stock_num"` // 阶梯库存数量 StepStockNum int64 `json:"step_stock_num"` // 区域库存配置 StockMap []StockMapItem `json:"stock_map"` // 供应商ID SupplierId string `json:"supplier_id"` }
type SkuSyncStockBatchParam ¶
type SkuSyncStockBatchParam struct { // 商品ID,整型格式 ProductId int64 `json:"product_id"` // 幂等ID,仅incremental=true时有用 IdempotentId string `json:"idempotent_id"` // true表示增量库存,false表示全量库存,默认为false Incremental bool `json:"incremental"` // 需要批量提交的skuid及对应的库存和仓;接口规则全部成功或全部失败,例:批量更新10个skuid库存,其中一个skuid信息不正确,这样整个请求都会失败,10个skuid都未更新成功。 SkuSyncList []SkuSyncListItem `json:"sku_sync_list"` }
type SkuSyncStockBatchRequest ¶
type SkuSyncStockBatchRequest struct { doudian_sdk.BaseDoudianOpApiRequest Param *SkuSyncStockBatchParam }
func New ¶
func New() *SkuSyncStockBatchRequest
func (*SkuSyncStockBatchRequest) Execute ¶
func (c *SkuSyncStockBatchRequest) Execute(accessToken *doudian_sdk.AccessToken) (*sku_syncStockBatch_response.SkuSyncStockBatchResponse, error)
func (*SkuSyncStockBatchRequest) GetParamObject ¶
func (c *SkuSyncStockBatchRequest) GetParamObject() interface{}
func (*SkuSyncStockBatchRequest) GetParams ¶
func (c *SkuSyncStockBatchRequest) GetParams() *SkuSyncStockBatchParam
func (*SkuSyncStockBatchRequest) GetUrlPath ¶
func (c *SkuSyncStockBatchRequest) GetUrlPath() string
type StockMapItem ¶
Click to show internal directories.
Click to hide internal directories.