feat(channel): 新增店铺链接管理接口和收藏管理接口#4029
Open
Copilot wants to merge 2 commits into
Open
Conversation
- 在 WxChannelApiUrlConstants 中新增店铺H5链接、二维码、口令及收藏管理接口 URL 常量 - 新增 ShopH5UrlResponse、ShopQrCodeResponse、ShopTagLinkResponse 响应 Bean 类 - 新增 FavoriteCountResponse 收藏人数响应 Bean 类(含 5 个渠道维度字段) - WxChannelBasicService 新增 getShopH5Url()、getShopQrCode(int)、getShopTagLink() 方法 - WxChannelBasicServiceImpl 实现上述 3 个新方法 - 新增 WxChannelFavoriteService 接口及 WxChannelFavoriteServiceImpl 实现 - WxChannelService 新增 getFavoriteService() 方法 - BaseWxChannelServiceImpl 注册并懒加载 favoriteService - 新增单元测试:WxChannelShopLinkServiceImplTest、WxChannelFavoriteServiceImplTest
Copilot
AI
changed the title
[WIP] Add shop management and favorites management interfaces
feat(channel): 新增店铺链接管理接口和收藏管理接口
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 为视频号小店 SDK 补全店铺链接与收藏管理相关接口,扩展 WxChannelBasicService 并新增独立的 WxChannelFavoriteService,便于调用官方店铺 H5 链接、二维码、口令和收藏人数接口。
Changes:
- 新增店铺 H5 链接、二维码、口令响应 Bean 与 BasicService 方法实现。
- 新增收藏管理服务接口、实现、响应 Bean,并接入
WxChannelService懒加载入口。 - 增加对应 TestNG 测试类覆盖新增接口调用。
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
WxChannelShopLinkServiceImplTest.java |
新增店铺链接相关接口测试 |
WxChannelFavoriteServiceImplTest.java |
新增收藏人数接口测试 |
WxChannelApiUrlConstants.java |
增加店铺链接与收藏管理 API 地址常量 |
ShopTagLinkResponse.java |
新增店铺口令响应模型 |
ShopQrCodeResponse.java |
新增店铺二维码响应模型 |
ShopH5UrlResponse.java |
新增店铺 H5 链接响应模型 |
FavoriteCountResponse.java |
新增收藏人数响应模型 |
WxChannelService.java |
增加收藏管理服务访问入口 |
WxChannelFavoriteService.java |
新增收藏管理服务接口 |
WxChannelBasicService.java |
增加店铺链接管理方法声明 |
WxChannelFavoriteServiceImpl.java |
新增收藏管理服务实现 |
WxChannelBasicServiceImpl.java |
实现店铺链接管理接口 |
BaseWxChannelServiceImpl.java |
增加收藏管理服务懒加载实现 |
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.
WxChannelBasicService缺少店铺链接相关接口,WxChannelFavoriteService完全缺失。本次按照官方文档补全以上 4 个接口。店铺管理(新增至
WxChannelBasicService)3 个新方法,响应 Bean 字段名与官方文档完全一致:
getShopH5Url()/channels/ec/basics/shop/h5url/getshop_h5urlgetShopQrCode(int qrcodeType)/channels/ec/basics/shop/qrcode/getshop_qrcodegetShopTagLink()/channels/ec/basics/shop/taglink/getshop_taglink收藏管理(新增
WxChannelFavoriteService)新增独立服务,通过
channelService.getFavoriteService()获取,懒加载初始化:新增文件
bean/shop/ShopH5UrlResponse,ShopQrCodeResponse,ShopTagLinkResponsebean/favorite/FavoriteCountResponseapi/WxChannelFavoriteService+impl/WxChannelFavoriteServiceImplWxChannelShopLinkServiceImplTest,WxChannelFavoriteServiceImplTest