feat(cp): 新增markdown_v2消息类型支持#3727
Merged
binarywang merged 2 commits intobinarywang:developfrom Oct 3, 2025
Merged
Conversation
Contributor
xiaoyun461
commented
Sep 29, 2025
- 在WxCpConsts中添加MARKDOWN_V2常量
- WxCpGroupRobotMessage支持markdown_v2消息类型
- WxCpGroupRobotService新增sendMarkdownV2方法
- WxCpGroupRobotServiceImpl实现markdown_v2消息发送逻辑
- 在WxCpConsts中添加MARKDOWN_V2常量 - WxCpGroupRobotMessage支持markdown_v2消息类型 - WxCpGroupRobotService新增sendMarkdownV2方法 - WxCpGroupRobotServiceImpl实现markdown_v2消息发送逻辑
- 新增testSendMarkDownV2测试方法- 测试内容包含标题、字体、列表、引用、链接、分割线、代码和表格 - 验证Markdown V2格式的完整发送流程
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for the markdown_v2 message type to the WeChat Enterprise (WxCp) group robot messaging functionality, expanding upon the existing markdown support with enhanced formatting capabilities.
- Added
MARKDOWN_V2constant toWxCpConstsfor the new message type - Extended
WxCpGroupRobotMessageto handlemarkdown_v2message serialization - Implemented
sendMarkdownV2methods in both service interface and implementation
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
WxCpConsts.java |
Added MARKDOWN_V2 constant for the new message type |
WxCpGroupRobotMessage.java |
Added JSON serialization support for markdown_v2 messages |
WxCpGroupRobotService.java |
Added interface methods for sending markdown_v2 messages |
WxCpGroupRobotServiceImpl.java |
Implemented the sendMarkdownV2 methods |
WxCpGroupRobotServiceImplTest.java |
Added comprehensive test case with markdown_v2 formatting examples |
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.