Repository navigation
feat: 新增可选 DWS A2UI 卡片发送与更新(Java) - #5
Merged
Merged
Conversation
haofeng0705
marked this pull request as ready for review
October 7, 2026 07:38
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.
目前 Channel 只提供机器人 Markdown 流式卡片,业务代码没有发送 dingtalk-aicard A2UI 消息的入口。本 PR 为 Java 新增显式配置的 A2UI 发送和更新接口,以及可独立使用的 DWS 适配器,支持单聊、群聊与原卡片 FINISH。
发送按 dingtalk-aicard 的公开接入方式 调用 DWS,需预先安装、登录并选择固定 Profile,使用该 Profile 的身份。SDK 接受消息对象或 JSON 字符串数组,检查信封后序列化;组件和新卡结构由 dingtalk-aicard 校验。其他投递通道可通过 A2UIClient 接口注入。
返回完整回执并提取服务端 bizId,缺少标识时返回更新警告。执行采用 argv,拒绝多 Profile,只有明确成功回执才返回成功;失败或超时不会自动重试创建。提供中文接入文档、完整创建/完成增量和可运行示例。DWS 身份下的业务回调需要另行接入,机器人原生 App Token A2UI 发送不在本适配器内。
验证:
mvn -q test:44 项 PASS(本机 JDK 11,编译目标 Java 8)。git diff --check:PASS。