Title: feat(channel): 新增微信小店赠品与买赠活动模块接口支持 by Copilot · Pull Request #4030 · binarywang/WxJava · GitHub
Open Graph Title: feat(channel): 新增微信小店赠品与买赠活动模块接口支持 by Copilot · Pull Request #4030 · binarywang/WxJava
X Title: feat(channel): 新增微信小店赠品与买赠活动模块接口支持 by Copilot · Pull Request #4030 · binarywang/WxJava
Description: 当前 weixin-java-channel 的商品服务未覆盖微信小店「赠品」与「买赠活动」能力,导致相关营销链路在 SDK 中不可用。该变更在 WxChannelProductService 补齐官方文档列出的 9 个接口,并提供对应请求/响应模型与实现。 接口能力补齐(商品服务) 在 WxChannelProductService 新增 9 个方法: 赠品:addGiftProduct、updateGiftProduct、setProductAsGift、getGiftProduct、listGiftProduct、updateGiftStock 买赠活动:addGiftActivity、deleteGiftActivity、stopGiftActivity 在 WxChannelProductServiceImpl 完成对应调用与返回值映射(创建类接口返回 ID,更新/删除/停止类接口按空返回设计处理)。 API 路径常量新增 在 WxChannelApiUrlConstants.Spu 增加: /channels/ec/product/gift/add /channels/ec/product/gift/update /channels/ec/product/gift/onsale/set /channels/ec/product/gift/get /channels/ec/product/gift/list/get /channels/ec/product/gift/stock/update /channels/ec/product/activity/add /channels/ec/product/activity/del /channels/ec/product/activity/stop 数据模型新增(按接口语义拆分) 赠品:GiftProductInfo、GiftProductAddResponse、GiftProductGetResponse、GiftProductListParam、GiftProductListResponse 买赠活动:GiftActivityInfo、GiftActivityAddParam、GiftActivityAddResponse 单元测试补充 在 WxChannelProductServiceImplTest 增加 9 个对应测试方法,覆盖新增服务入口的调用与基本返回契约。 示例(新增服务调用): WxChannelProductService productService = channelService.getProductService(); // 创建赠品活动 GiftActivityInfo info = new GiftActivityInfo(); String activityId = productService.addGiftActivity(info); // 停止活动 productService.stopGiftActivity(activityId);
Open Graph Description: 当前 weixin-java-channel 的商品服务未覆盖微信小店「赠品」与「买赠活动」能力,导致相关营销链路在 SDK 中不可用。该变更在 WxChannelProductService 补齐官方文档列出的 9 个接口,并提供对应请求/响应模型与实现。 接口能力补齐(商品服务) 在 WxChannelProductService 新增 9 个方法: 赠品:addGiftProd...
X Description: 当前 weixin-java-channel 的商品服务未覆盖微信小店「赠品」与「买赠活动」能力,导致相关营销链路在 SDK 中不可用。该变更在 WxChannelProductService 补齐官方文档列出的 9 个接口,并提供对应请求/响应模型与实现。 接口能力补齐(商品服务) 在 WxChannelProductService 新增 9 个方法: 赠品:addGiftProd...
Opengraph URL: https://github.com/binarywang/WxJava/pull/4030
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d27b8bb0-5d88-f5db-3f0e-c5835ba77fc9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D6A2:623C0:E53335:14860FA:6A5897E7 |
| html-safe-nonce | 6a706abb0095e1313bd00d3c3d3bc0f0290ce09909eb4bb926a0fad2adb7542d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkEyOjYyM0MwOkU1MzMzNToxNDg2MEZBOjZBNTg5N0U3IiwidmlzaXRvcl9pZCI6IjgwNTk5NzYwNDkzOTUwMTM2MDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 89e21563b03d7d1006c505fcb5a4a52d14c848b714f8f661e8a8c8148a239e00 |
| hovercard-subject-tag | pull_request:3776574757 |
| 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/4030/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 | 当前 weixin-java-channel 的商品服务未覆盖微信小店「赠品」与「买赠活动」能力,导致相关营销链路在 SDK 中不可用。该变更在 WxChannelProductService 补齐官方文档列出的 9 个接口,并提供对应请求/响应模型与实现。 接口能力补齐(商品服务) 在 WxChannelProductService 新增 9 个方法: 赠品:addGiftProd... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width