Skip to content

feat: 实现微信小店带货助手相关接口#4027

Open
Copilot wants to merge 2 commits into
developfrom
copilot/add-wechat-store-assistant-apis
Open

feat: 实现微信小店带货助手相关接口#4027
Copilot wants to merge 2 commits into
developfrom
copilot/add-wechat-store-assistant-apis

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 31, 2026

微信小店「带货助手」功能缺少佣金单和达人橱窗商品的相关查询接口,本 PR 在 weixin-java-channel 模块中补充实现。

新增内容

API URL 常量

  • WxChannelApiUrlConstants 新增 Talent 接口,包含 4 个端点常量(/channels/ec/talent/...

Bean 类(bean/talent/ 包)

  • TalentOrderListParam / TalentOrderListResponse(含 OrderInfo 内部类)
  • TalentOrderDetailParam / TalentOrderDetailResponse(含 BaseInfoBuyerInfoCommissionInfoChannelInfoPromotionHeadSupplierInfoProductInfo 等内部类)
  • TalentWindowProductListParam / TalentWindowProductListResponse(含 ProductInfo 内部类)
  • TalentWindowProductDetailParam / TalentWindowProductDetailResponse(含 ProductDetail 内部类)

服务层

  • 新增 WxTalentService 接口,声明 4 个方法:getOrderListgetOrderDetailgetWindowProductListgetWindowProductDetail
  • 新增 WxTalentServiceImpl 实现,沿用 shopService.post() + ResponseUtils.decode() 模式
  • WxChannelService 新增 getTalentService() 方法
  • BaseWxChannelServiceImpl 新增 talentService 字段及懒加载同步 getter

使用示例

WxTalentService talentService = channelService.getTalentService();

// 获取佣金单列表
TalentOrderListParam param = new TalentOrderListParam();
param.setCreateTimeStart(1700000000L);
param.setPageSize(20);
TalentOrderListResponse resp = talentService.getOrderList(param);

// 获取达人橱窗商品详情
TalentWindowProductDetailParam detailParam = new TalentWindowProductDetailParam();
detailParam.setProductId("xxx");
TalentWindowProductDetailResponse detail = talentService.getWindowProductDetail(detailParam);

Copilot AI changed the title [WIP] Add WeChat store assistant related APIs feat: 实现微信小店带货助手相关接口 May 31, 2026
Copilot AI requested a review from binarywang May 31, 2026 14:25
@binarywang binarywang marked this pull request as ready for review May 31, 2026 14:30
Copilot AI review requested due to automatic review settings May 31, 2026 14:30
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

缺少微信小店——带货助手相关接口

3 participants