public class WxChannelProductServiceImpl extends Object implements WxChannelProductService
| 构造器和说明 |
|---|
WxChannelProductServiceImpl(BaseWxChannelServiceImpl shopService) |
public WxChannelProductServiceImpl(BaseWxChannelServiceImpl shopService)
public SpuUpdateResponse addProduct(SpuUpdateInfo info) throws WxErrorException
WxChannelProductServiceaddProduct 在接口中 WxChannelProductServiceinfo - 商品信息WxErrorException - 异常public SpuUpdateResponse updateProduct(SpuUpdateInfo info) throws WxErrorException
WxChannelProductServiceupdateProduct 在接口中 WxChannelProductServiceinfo - 商品信息WxErrorException - 异常public SpuUpdateResponse addProduct(SpuInfo info) throws WxErrorException
WxChannelProductServiceaddProduct 在接口中 WxChannelProductServiceinfo - 商品信息WxErrorException - 异常public SpuUpdateResponse updateProduct(SpuInfo info) throws WxErrorException
WxChannelProductServiceupdateProduct 在接口中 WxChannelProductServiceinfo - 商品信息WxErrorException - 异常public WxChannelBaseResponse updateProductAuditFree(SpuFastInfo info) throws WxErrorException
WxChannelProductServiceupdateProductAuditFree 在接口中 WxChannelProductServiceinfo - 商品信息WxErrorException - 异常public WxChannelBaseResponse updateStock(String productId, String skuId, Integer diffType, Integer num) throws WxErrorException
WxChannelProductServiceupdateStock 在接口中 WxChannelProductServiceproductId - 内部商品IDskuId - 内部sku_iddiffType - 修改类型 1增加 2减少 3设置
建议使用1或2,不建议使用3,因为使用3在高并发场景可能会出现预期外表现num - 增加、减少或者设置的库存值WxErrorException - 异常protected String generateProductIdJson(String productId, Integer dataType)
productId - 商品IDdataType - 默认取1。1:获取线上数据, 2:获取草稿数据, 3:同时获取线上和草稿数据(注意:需成功上架后才有线上数据)protected WxChannelBaseResponse simpleProductRequest(String url, String productId) throws WxErrorException
url - 资源路径productId - 商品IDWxErrorExceptionpublic WxChannelBaseResponse deleteProduct(String productId) throws WxErrorException
WxChannelProductServicedeleteProduct 在接口中 WxChannelProductServiceproductId - 商品IDWxErrorException - 异常public WxChannelBaseResponse cancelProductAudit(String productId) throws WxErrorException
WxChannelProductServicecancelProductAudit 在接口中 WxChannelProductServiceproductId - 商品IDWxErrorException - 异常public SpuGetResponse getProduct(String productId, Integer dataType) throws WxErrorException
WxChannelProductServicegetProduct 在接口中 WxChannelProductServiceproductId - 商品IDdataType - 默认取1 1:获取线上数据 2:获取草稿数据 3:同时获取线上和草稿数据(注意:需成功上架后才有线上数据)WxErrorException - 异常public SpuListResponse listProduct(Integer pageSize, String nextKey, Integer status) throws WxErrorException
WxChannelProductServicelistProduct 在接口中 WxChannelProductServicepageSize - 每页数量(默认10,不超过30)nextKey - 由上次请求返回,记录翻页的上下文。传入时会从上次返回的结果往后翻一页,不传默认拉取第一页数据。status - 商品状态,不填默认拉全部商品(不包含回收站) SpuStatusWxErrorException - 异常public WxChannelBaseResponse upProduct(String productId) throws WxErrorException
WxChannelProductServiceupProduct 在接口中 WxChannelProductServiceproductId - 商品IDWxErrorException - 异常public WxChannelBaseResponse downProduct(String productId) throws WxErrorException
WxChannelProductServicedownProduct 在接口中 WxChannelProductServiceproductId - 商品IDWxErrorException - 异常public SkuStockResponse getSkuStock(String productId, String skuId) throws WxErrorException
WxChannelProductServicegetSkuStock 在接口中 WxChannelProductServiceproductId - 商品IDskuId - skuIdWxErrorException - 异常public SkuStockBatchResponse getSkuStockBatch(List<String> productIds) throws WxErrorException
WxChannelProductServicegetSkuStockBatch 在接口中 WxChannelProductServiceproductIds - 商品ID列表WxErrorException - 异常public ProductH5UrlResponse getProductH5Url(String productId) throws WxErrorException
WxChannelProductServicegetProductH5Url 在接口中 WxChannelProductServiceproductId - 商品IDWxErrorException - 异常public ProductQrCodeResponse getProductQrCode(String productId) throws WxErrorException
WxChannelProductServicegetProductQrCode 在接口中 WxChannelProductServiceproductId - 商品IDWxErrorException - 异常public ProductTagLinkResponse getProductTagLink(String productId) throws WxErrorException
WxChannelProductServicegetProductTagLink 在接口中 WxChannelProductServiceproductId - 商品IDWxErrorException - 异常public LimitTaskAddResponse addLimitTask(LimitTaskParam param) throws WxErrorException
WxChannelProductServiceaddLimitTask 在接口中 WxChannelProductServiceparam - 限时抢购任务WxErrorException - 异常public LimitTaskListResponse listLimitTask(Integer pageSize, String nextKey, Integer status) throws WxErrorException
WxChannelProductServicelistLimitTask 在接口中 WxChannelProductServicepageSize - 每页数量(默认10,不超过50)nextKey - 由上次请求返回,记录翻页的上下文。传入时会从上次返回的结果往后翻一页,不传默认拉取第一页数据status - 抢购活动状态WxErrorException - 异常public WxChannelBaseResponse stopLimitTask(String taskId) throws WxErrorException
WxChannelProductServicestopLimitTask 在接口中 WxChannelProductServicetaskId - 限时抢购任务IDWxErrorException - 异常public WxChannelBaseResponse deleteLimitTask(String taskId) throws WxErrorException
WxChannelProductServicedeleteLimitTask 在接口中 WxChannelProductServicetaskId - 限时抢购任务IDWxErrorException - 异常Copyright © 2025. All rights reserved.