补齐微信小店商品管理缺失接口(13项)并完善模型映射#4032
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
Copilot
AI
changed the title
[WIP] Add missing product management APIs
补齐微信小店商品管理缺失接口(13项)并完善模型映射
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.
商品管理模块缺少一批关键能力接口(开售管理、属性映射、发品前校验、上架策略、提审限额、品牌推荐、第三方货源、库存流水等),导致 SDK 与官方能力不一致。此次改动按微信官方文档补齐接口定义与请求/响应模型,统一接入
WxChannelProductService。接口能力补齐(Service + Impl)
WxChannelProductService与WxChannelProductServiceImpl新增 13 个商品管理接口方法:getProductSchemeclassifyProductCategorybeginTimingSale/cancelTimingSaleexternalProductMapping/externalProductMappingNewcategoryPreCheckgetProductAuditStrategy/setProductAuditStrategygetProductAuditQuotaproductBrandRecommendaddProductThirdPartySourcegetStockFlowJsonUtils+ResponseUtils进行序列化与响应解码。API 常量补齐
WxChannelApiUrlConstants.Spu增加对应 13 个官方路径常量,覆盖上述所有新能力,避免业务层硬编码 URL。请求/响应模型新增
JsonNode承载,降低字段漂移风险。单元测试补充
ProductApiBeanTest,覆盖关键新模型的序列化/反序列化行为,确保字段映射正确(如product_id、audit_quota、external_attributes、stock_flow数据结构)。