feat: 实现微信小店带货助手相关接口#4027
Open
Copilot wants to merge 2 commits into
Open
Conversation
Copilot
AI
changed the title
[WIP] Add WeChat store assistant related APIs
feat: 实现微信小店带货助手相关接口
May 31, 2026
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Pull request overview
本 PR 在 weixin-java-channel 模块中新增微信小店「带货助手」相关接口,覆盖佣金单查询和达人橱窗商品查询,并接入现有 WxChannelService 服务体系。
Changes:
- 新增带货助手 API URL 常量、请求参数和响应 Bean。
- 新增
WxTalentService及其实现,沿用现有post+ResponseUtils.decode调用模式。 - 在
WxChannelService/BaseWxChannelServiceImpl中暴露并懒加载带货助手服务。
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
WxTalentServiceImplTest.java |
新增带货助手接口测试用例 |
WxChannelApiUrlConstants.java |
新增 Talent API 地址常量 |
TalentWindowProductListResponse.java |
新增橱窗商品列表响应模型 |
TalentWindowProductListParam.java |
新增橱窗商品列表请求参数 |
TalentWindowProductDetailResponse.java |
新增橱窗商品详情响应模型 |
TalentWindowProductDetailParam.java |
新增橱窗商品详情请求参数 |
TalentOrderListResponse.java |
新增佣金单列表响应模型 |
TalentOrderListParam.java |
新增佣金单列表请求参数 |
TalentOrderDetailResponse.java |
新增佣金单详情响应模型 |
TalentOrderDetailParam.java |
新增佣金单详情请求参数 |
WxTalentService.java |
新增带货助手服务接口 |
WxChannelService.java |
暴露 getTalentService() |
WxTalentServiceImpl.java |
实现带货助手 API 调用 |
BaseWxChannelServiceImpl.java |
增加带货助手服务懒加载实例 |
Comment on lines
+39
to
+40
| @JsonProperty("product_id") | ||
| private Long productId; |
Comment on lines
+46
to
+56
| /** | ||
| * 对于带货商品会返回,代表商品在货源小店中的商品id | ||
| */ | ||
| @JsonProperty("product_source") | ||
| private Long productSource; | ||
|
|
||
| /** | ||
| * 商品来源:1=来源店铺的自营商品,2=来源选品中心的带货商品 | ||
| */ | ||
| @JsonProperty("out_product_id") | ||
| private String outProductId; |
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.
微信小店「带货助手」功能缺少佣金单和达人橱窗商品的相关查询接口,本 PR 在
weixin-java-channel模块中补充实现。新增内容
API URL 常量
WxChannelApiUrlConstants新增Talent接口,包含 4 个端点常量(/channels/ec/talent/...)Bean 类(
bean/talent/包)TalentOrderListParam/TalentOrderListResponse(含OrderInfo内部类)TalentOrderDetailParam/TalentOrderDetailResponse(含BaseInfo、BuyerInfo、CommissionInfo、ChannelInfo、PromotionHeadSupplierInfo、ProductInfo等内部类)TalentWindowProductListParam/TalentWindowProductListResponse(含ProductInfo内部类)TalentWindowProductDetailParam/TalentWindowProductDetailResponse(含ProductDetail内部类)服务层
WxTalentService接口,声明 4 个方法:getOrderList、getOrderDetail、getWindowProductList、getWindowProductDetailWxTalentServiceImpl实现,沿用shopService.post()+ResponseUtils.decode()模式WxChannelService新增getTalentService()方法BaseWxChannelServiceImpl新增talentService字段及懒加载同步 getter使用示例