添加 wx.getGroupEnterInfo 解密支持 #3761
Merged
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.
任务计划:为 wx.getGroupEnterInfo 添加支持
根据问题描述,需要为小程序SDK添加wx.getGroupEnterInfo的响应数据结构定义和方法支持。这是wx.getShareInfo的升级版本。
需要完成的工作清单:
1. 创建 WxMaGroupEnterInfo 类,包含以下字段:
2. 在 WxMaShareService 接口中添加 getGroupEnterInfo() 方法
3. 在 WxMaShareServiceImpl 实现类中实现 getGroupEnterInfo() 方法
4. 在测试文件中添加 getGroupEnterInfo 的测试用例
5. 运行 checkstyle 验证代码风格 ✅ 通过
6. 运行编译验证修改没有问题 ✅ 通过
7. 修正代码审查反馈:移除不正确的 @author 标注
已完成的修改:
新增文件:
WxMaGroupEnterInfo.java- 群入口信息的数据模型类,包含了微信官方文档中定义的所有字段修改文件:
WxMaShareService.java- 添加了getGroupEnterInfo()接口方法WxMaShareServiceImpl.java- 实现了getGroupEnterInfo()方法WxMaShareServiceImplTest.java- 添加了测试用例代码审查反馈修正:
WxMaGroupEnterInfo.java中移除了不正确的 @author 标注实现细节:
WxMaShareInfo相同的实现模式@SerializedName注解确保 JSON 字段名称与微信 API 返回的字段名称一致WxMaCryptUtils.decrypt()Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.