-
-
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
base: develop
Are you sure you want to change the base?
企业微信服务商代开发API封装 #3853
Conversation
Co-authored-by: binarywang <[email protected]>
Co-authored-by: binarywang <[email protected]>
Co-authored-by: binarywang <[email protected]>
🤖 Augment PR Summary变更概述:本 PR 为“企业微信第三方应用(服务商)代开发”能力补齐接口封装,覆盖应用模板列表与代开发应用详情查询。 主要变更:
备注:实现遵循现有 tp 模块调用惯例(URL 拼接 🤖 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.
实现企业微信服务商代开发API的完整封装(文档),支持获取应用模板列表和代开发应用详情。
新增API
getTemplateList()- 获取服务商的应用模板列表(模板ID、名称、Logo、描述、状态)getCustomizedAppDetail(authCorpId, agentId)- 获取授权企业的代开发应用详情,agentId为可选参数,不传时返回所有应用实现
Bean类
WxCpTpTemplateList- 应用模板列表响应WxCpTpCustomizedAppDetail- 代开发应用详情响应(包含企业信息、应用列表、可见范围)服务层
WxCpTpCustomizedService- 新增服务接口WxCpTpCustomizedServiceImpl- 实现,使用provider_access_token调用APIWxCpTpService主服务常量
GET_TEMPLATE_LIST = "/cgi-bin/service/get_template_list"GET_CUSTOMIZED_APP_DETAIL = "/cgi-bin/service/get_customized_app_detail"使用示例
测试: 3个单元测试覆盖主要场景(使用Mock,不依赖外部API)
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
developer.work.weixin.qq.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)open.work.weixin.qq.com/usr/bin/curl curl -s REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
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.