feat(channel): 实现视频号小店缺失的商品相关API(Issue #4002)#4033
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
Copilot
AI
changed the title
[WIP] Add missing gift management endpoints to WxChannelProductService
feat(channel): 实现视频号小店缺失的商品相关API(Issue #4002)
Jun 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #4002 列出了
weixin-java-channel模块中缺失的28个视频号小店接口。本次实现其中有官方文档可查的14个接口,跳过文档404的6个接口(礼品活动、审核策略、审核配额)。新增
WxChannelGiftService(赠品管理)6个接口:
addGiftProduct/updateGiftProduct/setProductAsGift/getGiftProduct/listGiftProduct/updateGiftStock扩展
WxChannelProductService(新增8个接口)updateLimitTaskgetStockFlowcategoryPreCheckgetProductBrandRecommendexternalProductMappingexternalProductMappingNewbeginTimingSalecancelTimingSale新增 Bean 类
bean/gift/:13个类,涵盖赠品增删改查及库存变更所需的请求/响应模型bean/limit/:LimitSkuUpdate、LimitTaskUpdateParam、LimitTaskUpdateResponsebean/product/:StockFlow*(4个)、CategoryPreCheckResponse、ProductBrandRecommend*(2个)、ExternalProductMapping*(4个)、ExternalAttribute注意事项
GiftProductUpdateInfo未继承GiftProductInfo,避免 Jackson 对同名@JsonProperty("skus")字段产生重复序列化。