Skip to content

Conversation

xiaoyun461
Copy link
Contributor

  • 在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格式的完整发送流程
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_V2 constant to WxCpConsts for the new message type
  • Extended WxCpGroupRobotMessage to handle markdown_v2 message serialization
  • Implemented sendMarkdownV2 methods 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

@binarywang binarywang linked an issue Oct 3, 2025 that may be closed by this pull request
@binarywang binarywang added this to the 4.7.9 milestone Oct 3, 2025
@binarywang binarywang merged commit 10f7123 into binarywang:develop Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

希望增加 企业微信 消息类型 markdown_v2类型
2 participants