Skip to content

feat(channel): 实现视频号小店缺失的商品相关API(Issue #4002)#4033

Draft
Copilot wants to merge 2 commits into
developfrom
copilot/weixin-java-channel-add-missing-endpoints
Draft

feat(channel): 实现视频号小店缺失的商品相关API(Issue #4002)#4033
Copilot wants to merge 2 commits into
developfrom
copilot/weixin-java-channel-add-missing-endpoints

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 31, 2026

Issue #4002 列出了 weixin-java-channel 模块中缺失的28个视频号小店接口。本次实现其中有官方文档可查的14个接口,跳过文档404的6个接口(礼品活动、审核策略、审核配额)。

新增 WxChannelGiftService(赠品管理)

6个接口:addGiftProduct / updateGiftProduct / setProductAsGift / getGiftProduct / listGiftProduct / updateGiftStock

WxChannelGiftService giftService = wxChannelService.getGiftService();

// 添加非卖赠品
GiftProductInfo info = new GiftProductInfo();
info.setTitle("赠品名称");
// ...
GiftProductResponse resp = giftService.addGiftProduct(info);

// 获取赠品详情
GiftGetResponse detail = giftService.getGiftProduct(productId, 3);

扩展 WxChannelProductService(新增8个接口)

方法 对应微信API
updateLimitTask 更新限时抢购任务
getStockFlow 获取库存流水
categoryPreCheck 发品前类目资质校验
getProductBrandRecommend 商品品牌推荐
externalProductMapping 站内外商品属性映射
externalProductMappingNew 站内外商品属性映射(新版)
beginTimingSale 商品立即开售
cancelTimingSale 取消商品开售

新增 Bean 类

  • bean/gift/:13个类,涵盖赠品增删改查及库存变更所需的请求/响应模型
  • bean/limit/LimitSkuUpdateLimitTaskUpdateParamLimitTaskUpdateResponse
  • bean/product/StockFlow*(4个)、CategoryPreCheckResponseProductBrandRecommend*(2个)、ExternalProductMapping*(4个)、ExternalAttribute

注意事项

GiftProductUpdateInfo 未继承 GiftProductInfo,避免 Jackson 对同名 @JsonProperty("skus") 字段产生重复序列化。

Copilot AI changed the title [WIP] Add missing gift management endpoints to WxChannelProductService feat(channel): 实现视频号小店缺失的商品相关API(Issue #4002) Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[weixin-java-channel] WxChannelProductService 缺失赠品/买赠活动/限时抢购/库存等完整子API(共28个端点)

2 participants