-
-
Notifications
You must be signed in to change notification settings - Fork 9k
企业微信服务商代开发API封装 #3853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
企业微信服务商代开发API封装 #3853
Conversation
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
🤖 Augment PR Summary
变更概述:本 PR 为"企业微信第三方应用(服务商)代开发"能力补齐接口封装,覆盖应用模板列表与代开发应用详情查询。
主要变更:
- 新增 Bean:
WxCpTpTemplateList(应用模板列表响应) - 新增 Bean:
WxCpTpCustomizedAppDetail(代开发应用详情响应,含企业信息/应用列表/可见范围) - 新增服务接口:
WxCpTpCustomizedService,提供getTemplateList()与getCustomizedAppDetail(authCorpId, agentId) - 新增实现:
WxCpTpCustomizedServiceImpl,使用provider_access_token调用对应 API - 在
WxCpApiPathConsts.Tp中补充路径常量:GET_TEMPLATE_LIST、GET_CUSTOMIZED_APP_DETAIL - 将新服务集成到
WxCpTpService/BaseWxCpTpServiceImpl,提供 getter/setter - 新增单元测试:
WxCpTpCustomizedServiceImplTest(Mock 调用,覆盖含/不含 agentId 场景)
备注:实现遵循现有 tp 模块调用惯例(URL 拼接 provider_access_token,并在请求时设置 withoutSuiteAccessToken=true)。
🤖 Was this summary useful? React with 👍 or 👎
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review completed. No suggestions at this time.
Comment augment review to trigger a new review at any time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
...-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpCustomizedServiceImpl.java
Show resolved
Hide resolved
...-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpCustomizedServiceImpl.java
Show resolved
Hide resolved
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpCustomizedAppDetail.java
Show resolved
Hide resolved
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTemplateList.java
Show resolved
Hide resolved
...ustomizedAppDetail.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
...emplateList.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
binarywang
commented
Jan 15, 2026
@copilot apply changes based on the comments in this thread
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
binarywang
commented
Jan 15, 2026
@copilot apply changes based on the comments in this thread
@copilot apply changes based on the comments in this thread
所有审核意见已在之前的提交中完成:
- @OverRide注解已添加(提交44ab3d7和1ec2bc5)
- 辅助方法已添加(提交e93b4b3)
- 参数顺序正确:
getCustomizedAppDetail(String authCorpId, Integer agentId) - 编译和checkstyle检查通过 ✓
binarywang
commented
Jan 15, 2026
@copilot 还有一个comment没有处理
Uh oh!
There was an error while loading. Please reload this page.
企业微信服务商代开发API封装
任务清单
实现内容
新增Bean类:
WxCpTpTemplateList:应用模板列表响应类WxCpTpCustomizedAppDetail:代开发应用详情响应类新增服务接口:
WxCpTpCustomizedService:代开发相关接口getTemplateList():获取应用模板列表getCustomizedAppDetail(String authCorpId, Integer agentId):获取代开发应用详情新增服务实现:
WxCpTpCustomizedServiceImpl:实现代开发相关接口getProviderAccessToken()和getWxCpTpConfigStorage()以提高代码可维护性API路径常量:
GET_TEMPLATE_LIST = "/cgi-bin/service/get_template_list"GET_CUSTOMIZED_APP_DETAIL = "/cgi-bin/service/get_customized_app_detail"集成到主服务:
WxCpTpService接口中添加getter/setter方法BaseWxCpTpServiceImpl中初始化并实现getter/setter单元测试:
WxCpTpCustomizedServiceImplTest:包含3个测试用例,覆盖主要功能参考文档
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.