public interface WxChannelProductService
SpuUpdateResponse addProduct(SpuUpdateInfo info) throws WxErrorException
info - 商品信息WxErrorException - 异常SpuUpdateResponse updateProduct(SpuUpdateInfo info) throws WxErrorException
info - 商品信息WxErrorException - 异常@Deprecated SpuUpdateResponse addProduct(SpuInfo info) throws WxErrorException
addProduct(SpuUpdateInfo)info - 商品信息WxErrorException - 异常@Deprecated SpuUpdateResponse updateProduct(SpuInfo info) throws WxErrorException
updateProduct(SpuUpdateInfo)info - 商品信息WxErrorException - 异常WxChannelBaseResponse updateProductAuditFree(SpuFastInfo info) throws WxErrorException
info - 商品信息WxErrorException - 异常WxChannelBaseResponse updateStock(String productId, String skuId, Integer diffType, Integer num) throws WxErrorException
productId - 内部商品IDskuId - 内部sku_iddiffType - 修改类型 1增加 2减少 3设置
建议使用1或2,不建议使用3,因为使用3在高并发场景可能会出现预期外表现num - 增加、减少或者设置的库存值WxErrorException - 异常WxChannelBaseResponse deleteProduct(String productId) throws WxErrorException
productId - 商品IDWxErrorException - 异常WxChannelBaseResponse cancelProductAudit(String productId) throws WxErrorException
productId - 商品IDWxErrorException - 异常SpuGetResponse getProduct(String productId, Integer dataType) throws WxErrorException
productId - 商品IDdataType - 默认取1 1:获取线上数据 2:获取草稿数据 3:同时获取线上和草稿数据(注意:需成功上架后才有线上数据)WxErrorException - 异常SpuListResponse listProduct(Integer pageSize, String nextKey, Integer status) throws WxErrorException
pageSize - 每页数量(默认10,不超过30)nextKey - 由上次请求返回,记录翻页的上下文。传入时会从上次返回的结果往后翻一页,不传默认拉取第一页数据。status - 商品状态,不填默认拉全部商品(不包含回收站) SpuStatusWxErrorException - 异常WxChannelBaseResponse upProduct(String productId) throws WxErrorException
productId - 商品IDWxErrorException - 异常WxChannelBaseResponse downProduct(String productId) throws WxErrorException
productId - 商品IDWxErrorException - 异常SkuStockResponse getSkuStock(String productId, String skuId) throws WxErrorException
productId - 商品IDskuId - skuIdWxErrorException - 异常SkuStockBatchResponse getSkuStockBatch(List<String> productIds) throws WxErrorException
productIds - 商品ID列表WxErrorException - 异常ProductH5UrlResponse getProductH5Url(String productId) throws WxErrorException
productId - 商品IDWxErrorException - 异常ProductQrCodeResponse getProductQrCode(String productId) throws WxErrorException
productId - 商品IDWxErrorException - 异常ProductTagLinkResponse getProductTagLink(String productId) throws WxErrorException
productId - 商品IDWxErrorException - 异常LimitTaskAddResponse addLimitTask(LimitTaskParam param) throws WxErrorException
param - 限时抢购任务WxErrorException - 异常LimitTaskListResponse listLimitTask(Integer pageSize, String nextKey, Integer status) throws WxErrorException
pageSize - 每页数量(默认10,不超过50)nextKey - 由上次请求返回,记录翻页的上下文。传入时会从上次返回的结果往后翻一页,不传默认拉取第一页数据status - 抢购活动状态WxErrorException - 异常WxChannelBaseResponse stopLimitTask(String taskId) throws WxErrorException
taskId - 限时抢购任务IDWxErrorException - 异常WxChannelBaseResponse deleteLimitTask(String taskId) throws WxErrorException
taskId - 限时抢购任务IDWxErrorException - 异常Copyright © 2025. All rights reserved.