Title: 补齐微信小店商品管理缺失接口(13项)并完善模型映射 by Copilot · Pull Request #4032 · binarywang/WxJava · GitHub
Open Graph Title: 补齐微信小店商品管理缺失接口(13项)并完善模型映射 by Copilot · Pull Request #4032 · binarywang/WxJava
X Title: 补齐微信小店商品管理缺失接口(13项)并完善模型映射 by Copilot · Pull Request #4032 · binarywang/WxJava
Description: 商品管理模块缺少一批关键能力接口(开售管理、属性映射、发品前校验、上架策略、提审限额、品牌推荐、第三方货源、库存流水等),导致 SDK 与官方能力不一致。此次改动按微信官方文档补齐接口定义与请求/响应模型,统一接入 WxChannelProductService。 接口能力补齐(Service + Impl) 在 WxChannelProductService 与 WxChannelProductServiceImpl 新增 13 个商品管理接口方法: getProductScheme classifyProductCategory beginTimingSale / cancelTimingSale externalProductMapping / externalProductMappingNew categoryPreCheck getProductAuditStrategy / setProductAuditStrategy getProductAuditQuota productBrandRecommend addProductThirdPartySource getStockFlow 方法签名与官方字段语义保持一致,统一通过 JsonUtils + ResponseUtils 进行序列化与响应解码。 API 常量补齐 在 WxChannelApiUrlConstants.Spu 增加对应 13 个官方路径常量,覆盖上述所有新能力,避免业务层硬编码 URL。 请求/响应模型新增 新增商品管理相关参数与返回对象(含上架策略、提审配额、类目推荐、属性映射、库存流水等结构)。 对稳定字段采用强类型建模;对文档中结构较动态的部分(如部分复杂嵌套项)使用 JsonNode 承载,降低字段漂移风险。 单元测试补充 新增 ProductApiBeanTest,覆盖关键新模型的序列化/反序列化行为,确保字段映射正确(如 product_id、audit_quota、external_attributes、stock_flow 数据结构)。 // 新增能力示例:获取商品移动应用 scheme ProductSchemeParam param = new ProductSchemeParam(); param.setProductId("12345"); param.setFromAppid("wx123"); param.setExpire(300); ProductSchemeResponse resp = channelService.getProductService().getProductScheme(param); // resp.getOpenlink()
Open Graph Description: 商品管理模块缺少一批关键能力接口(开售管理、属性映射、发品前校验、上架策略、提审限额、品牌推荐、第三方货源、库存流水等),导致 SDK 与官方能力不一致。此次改动按微信官方文档补齐接口定义与请求/响应模型,统一接入 WxChannelProductService。 接口能力补齐(Service + Impl) 在 WxChannelProductService 与 WxChannelP...
X Description: 商品管理模块缺少一批关键能力接口(开售管理、属性映射、发品前校验、上架策略、提审限额、品牌推荐、第三方货源、库存流水等),导致 SDK 与官方能力不一致。此次改动按微信官方文档补齐接口定义与请求/响应模型,统一接入 WxChannelProductService。 接口能力补齐(Service + Impl) 在 WxChannelProductService 与 WxChannelP...
Opengraph URL: https://github.com/binarywang/WxJava/pull/4032
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:dfee705b-6e36-f542-df28-f3df47ab9537 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8D86:177525:A541ED:E10216:6A593972 |
| html-safe-nonce | ce58cb1a279608c525dcfeb613a75c58c3e90fd296f3315d0160674d74ebe8fb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDg2OjE3NzUyNTpBNTQxRUQ6RTEwMjE2OjZBNTkzOTcyIiwidmlzaXRvcl9pZCI6IjQxMzc2MDk4ODM3MjEyMTg0MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 87e2ea3a4368ba13040169b012310e3010fd5691e03c66f88033589aa1043038 |
| hovercard-subject-tag | pull_request:3776575892 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/binarywang/WxJava/pull/4032/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | 商品管理模块缺少一批关键能力接口(开售管理、属性映射、发品前校验、上架策略、提审限额、品牌推荐、第三方货源、库存流水等),导致 SDK 与官方能力不一致。此次改动按微信官方文档补齐接口定义与请求/响应模型,统一接入 WxChannelProductService。 接口能力补齐(Service + Impl) 在 WxChannelProductService 与 WxChannelP... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1b31c9453e1607b2781513084b4770f67217e549834c85b76960d7b13626f7c8 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/binarywang/WxJava git https://github.com/binarywang/WxJava.git |
| octolytics-dimension-user_id | 1343140 |
| octolytics-dimension-user_login | binarywang |
| octolytics-dimension-repository_id | 49122742 |
| octolytics-dimension-repository_nwo | binarywang/WxJava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49122742 |
| octolytics-dimension-repository_network_root_nwo | binarywang/WxJava |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220f27779da5b92b5e17fcaef93e474cc8affba3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width